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

What do you consider the difference in their core models.

Rust and C++ both use RAII, both have a strong emphasis on type safety, Rust just takes that to the extreme.

I would like to even hope both believe in 0 cost abstractions, which contrary to popular belief isn't no cost, but no cost over doing the same thing yourself.

In many cases it's not even 0 cost, it's negative cost since using declarative programming can allow the compiler to optimise in ways you don't know about.




Rust is basically what you get if you start with ML and then do enough to avoid having garbage collection.


This seems not correct at all. There are very useful ML patterns that don't exist at all.

Rust feels like taking an imperative language and adding ML features till you cannot anymore.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: