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

> It's not worth it, just learn C or C++.

And your productivity on your team plummets as a result.

Rust also has slow build times [0], but it didn't stop people from using it.

[0] https://pingcap.com/blog/rust-compilation-model-calamity




well.. certainly it has stopped 'some' people from using it though for many the compilation costs are worth it


> for many the compilation costs are worth it

If the rust syntax and borrow checker wasn't masochistic enough...


If compiling 7 lines of code in release mode takes few minutes in Rust, just like it does in Crystal (I don't know exactly how long, I got bored and gave up, so it's possibly more), then I wouldn't touch that language with a ten foot pole either. It's fine to make trade-offs, it's just not a trade-off I'm personally willing to make. As to the productivity thing, it's debatable I guess.


Minutes? Now way! I have a Crystal code base with 10s of thousands of lines and it takes like 10-30 seconds.

The solution is to start breaking up the monolith so you only compile sections at a time.


It doesn't, a few seconds in debug mode, maybe 10-15s for release. I actually have a couple scripts that use `crystal run` instead of a compiled binary.


> compiling 7 lines of code in release mode takes few minutes in Rust, just like it does in Crystal

So when did you start using a Nokia 3310 as your dev machine?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: