News for hackers. Stuff that matters.
Re:How I went about learning Rust by Jyaif on Friday July 15, 2022 @03:28AM (#32105646)
> slow to compile

In my experience it's the slowest language to compile ever, and the binaries generated are gargantuan.

I was super excited to learn Rust, but that excitement is now 100% gone.

Re:How I went about learning Rust by rcxdude on Friday July 15, 2022 @04:19AM (#32105966)
Binary size very much depends on your settings. Rust does not optimise for a small 'hello world' by default, but it's very possible to get small binaries from it if that's a priority for you (for example, the default debug build neither optimizes for size nor strips debug information, as well as statically linking the standard library). Compile times are more sticky problem and most ways to improve it basically involve avoiding certain language features and libraries.
Re:How I went about learning Rust by bbojan on Friday July 15, 2022 @03:55AM (#32105811)
I wonder what other languages you have experience with. C++ is obviously not one of them.
Re:How I went about learning Rust by gg2222 on Friday July 15, 2022 @05:59AM (#32106480)
Same. I was about to jump into learning Rust and make it my no.1 language for new projects instead of node.js + TypeScript, but once I learned about the slow compile times I stopped that thought immediately.
Re:How I went about learning Rust by ModernMech on Friday July 15, 2022 @10:58AM (#32108849)
For me it was a choice between slow compile times now when it’s safe, or unbounded time solving security and stability issues later when it’s critical.