Hacker News new | ask | show | jobs
by pjmlp 19 days ago
Yes, but no one needs to use C++23 to the full extent to stress test the compiler in -O3, or go crazy with compile time execution.

While I could comfortably still develop C++ in a Asus 1215B netbook with 8 GB and SSD, thanks to all the native libraries I could install, and make use via pkgconfig, the same could not be said to play around with Rust on the same netbook.

This matters, because not everyone can afford top of the line desktops, especially in 2nd and 3rd level countries, which then plays a role in language adoption.

Some even make do with what they can run on tablets.

1 comments

I don't think I really agree with that. You can make do with less powerful machines in Rust too. Until this year I was using a 12 year old quad core machine that was only a bit faster than a RPi 5.

I think the biggest issue is actually disk space. C++ isn't exactly efficient with disk space but Rust is on another level. You're going to run out of disk space on that netbook it you have any more than like 2 Rust projects built.

On that netbook, this tiny Gtk Rust application took about 10 minutes from a git clone.

https://github.com/pjmlp/gwc-rs

The original C++ versions was done in 2 minutes, because it spent zero minutes compiling all dependencies.

Needlees to say that first compilation had an impact on battery charge as well.

Naturally on such a beefy machine it will fly given how fast Bevy gets compiled.