4 ms·
Do you realize "zero-cost" abstractions are not specific to Rust?
by p0nce 8y ago
Do you realize "zero-cost" abstractions are not specific to Rust?
- steveklabnik 8y agoYour parent didn't say that. Speaking about Rust in a thread about a Rust project seems to be very on-topic? (I would also disagree with that statement, but in a different way: Rust enables zero-cost abstractions, but nothing inherently means they have to be. I can also make quite costly ones, and they'll compile.)
- EugeneOZ 8y agoI would answer "you can write trash in any language, in Rust you need to find ways how to do it, when in other languages - how to avoid it". Looks like ycombinator now is the place when people just looking for negativity and what else ti disagree with.
- p0nce 8y ago> Your parent didn't say that. Yes and it's more disturbing. It says "In Rust abstractions are free" when an algorithm was discussed. Rust having "free" abstractions does not change the performance characteristics of an algorithm: this is what the grand-parent was talking about.
- steveklabnik 8y agoYes, I certainly agree with that distinction. If you'd have said that in the first place, I wouldn't have said anything :)
- EugeneOZ 8y agoWhat is results disturbing is that you are arguing just for the sake of arguing. "Algorithm" is a too wide term - everything is an algorithm, especially in programming. Talk was about abstractions, now you're trying to say it was about algorithms. We need "ignore" button here.