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?
Again, just to be clear, _you could_ have written better C++ by hand. That was the point of the monomorphization - what the compiler generates is not as good as if you have manually written what you wanted, because you can make better "commonization" tradeoffs.
-
-
"Zero cost" is literally just false. It's not true that it's zero cost over C++, and it's not true that it's zero cost over asm. It's just plain wrong. Things should just be called abstractions, never "zero cost" abstractions because they aren't, and that's that.
-
True. And it is not an "abstraction" either. It is a layer.
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.