Hacker News new | past | comments | ask | show | jobs | submit login

What big Rust projects do is split things up into crates which can be compiled as individual units. still bigger than a single file, but it helps.



What big c++ projects do is split things up into libs which can be linked as individual units. still bigger than a single file, but it helps.


I think being snarky is against the rules?

Also creating nested libs as separate compilation units is so difficult with cmake etc I rarely seen a large C++ project do this... it is much easier with Cargo.


Creating nested libs in cmake is trivial and is done all the time.

I'm sorry I was a bit snarky. But the thing is that the Rust evangelists don't understand the domains and types of large scale projects that C++ is used in and how those systems are built. Yet the they come along and keep pushing for Rust without understanding why C++ developers aren't switching and wave their hands at the issues we have with Rust.

Show me a successful multi million line Rust project. Maybe throw in a complex UI. Maybe some GPU computation.


I wouldn't call myself a rust evangelist. I prefer Java because it's productive and I can finish projects in it and not have to touch them for years.

FWIW Rust is great for high performance web services, not so much UI stuff. C++ would be better for that.


Yup! And I evaluated some different crate structures: https://quick-lint-js.com/blog/cpp-vs-rust-build-times/#opti...




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

Search: