3 ms·
AFAIK, no one has even meant "zero cost" to mean "zero compile-time cost".
by paulddraper 8y ago
AFAIK, no one has even meant "zero cost" to mean "zero compile-time cost".
- jampekka 8y agoNot with that very term, but it seems that an important criteria for the Oberon compiler was that any optimization should not make compilation of the compiler slower. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.90.7173&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.90....
- adrianratnapala 8y agoAnd yet it is called zero cost. Not "zero cost along one particular dimension that we won't name and only sometimes matters."
- steveklabnik 8y agoWe took it from C++ which has a long history with the term; take it up with Bjarne.
- harry8 8y agoSure he could. And he could take it up with anyone who copies it on a greenfields project too, right? It's a crap name. So what, computing is full of them, assembly language is full of them, C is full of them, C++ is full of them. Sometimes we make a break and don't use one and invent something better. Sometimes... mov [memory], %register memove(dst, src, size); dst = std::move(src); eg RAII, SFINAE these are not great names to be copied, I'd be surprised if rust did.
- harry8 8y agowoo, construed as a rust criticism. Rust is perfect. My apologies... I recant utterly. :s