Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know if that's just aged noob in me speaking but so far, while Rust has "zero cost abstractions", Zig feels like it has "Zero abstractions".

Deallocating the wrong thing or the right thing too soon bit me in th ass so much already that I feel craving for destructors.



Rust is not zero cost abstractions, they make decision on case-by-case basis.


It's their tagline and it's how it feels. I cen freely abstract. Zig is kind of making me index into byte array all the time.


Rust may feel like this in general, but I seen multiple discussions when people spot cases where rust is much slower than C++, they start looking at them, and the finding is that Rust is not zero-cost abstraction, and induce penalty sometime, while C++ is always zero cost abstraction.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: