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.)
-
-
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?
-
(...since it happens at compile time?) I.e., a monomorphized function call is equivalent to a non-polymorphic function call. So that seems truly zero-cost.
End of conversation
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.