I agree with you (and C++ lambdas are quite fast as well). @Jonathan_Blow I think your point is important and generally correct, but some abstractions really are "zero cost" if implemented well. (I realize that mainstream languages do not often accomplish this.)
-
-
Many (all?) the things they think are free actually aren't free at all.
-
I don't have experience actually writing assembly, but I can imagine there being cases where a human can hand-optimize register allocation better than some specific compiler, sure. So, to take a different example: what about generic monomorphization? Isn't that "free" at runtime?
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.