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

As a rough high level overview:

Rust is what you might imagine if starting over from scratch with C++, with a big emphasis on memory and type safety.

Zig is more like starting over from scratch with C, with a moderate emphasis on safety (no garbage collection or borrow checker, but undefined behavior handled more sanely than C)



I had the impression Rust was more compatible with C than C++.


Well, every language is more compatible with C than C++, because C is a subset of C++†. Even C++ is more compatible with C than with C++ compiled with a different compiler :)

† I know it's not a subset, but near enough for our purposes.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: