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

why is rust 'faster' then c++? I can understand it might be safer, but I think c++ never had a bad reputation for execution speed.


I believe it has to do with garbage collection. C++ garbage collection is a bit of a mess (and that's an understatement although I won't disrespect the language). Rust doesn't use GC as a general measure - memory is freed as variables go out of scope. Also if you want to GC, it has the provision to do so.




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

Search: