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

It is weird to lump C++ and Rust together. I have used Rust code bases that compile in 2-3 minutes what a C++ compiler would take literally hours to compile.

I feel people who complain about rustc compile times must be new to using compiled languages…





There is a way to make C++ beat Rust though.

Make use of binary libraries, export templates, incremental compilation and linking with multiple cores, and if using VC++ or clang vLatest, modules.

It still isn't Delphi fast, but becomes more manageable.


If you use lto, rust compilation is far worse for comparable c++ code.



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

Search: