News for hackers. Stuff that matters.
Re:Why Wasn't Ruby 3 Faster? by yannoninator on Wednesday February 10, 2021 @08:42PM (#26097246)
> 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

Re:Why Wasn't Ruby 3 Faster? by metreo on Wednesday February 10, 2021 @09:05PM (#26097402)
well.. certainly it has stopped 'some' people from using it though for many the compilation costs are worth it
Re:Why Wasn't Ruby 3 Faster? by yannoninator on Wednesday February 10, 2021 @09:21PM (#26097507)
> for many the compilation costs are worth it

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

Re:Why Wasn't Ruby 3 Faster? by ttt0 on Wednesday February 10, 2021 @09:29PM (#26097545)
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.
Re:Why Wasn't Ruby 3 Faster? by natchy on Wednesday February 10, 2021 @09:43PM (#26097647)
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.

Re:Why Wasn't Ruby 3 Faster? by ricardobeat on Wednesday February 10, 2021 @09:38PM (#26097615)
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.
Re:Why Wasn't Ruby 3 Faster? by Toutouxc on Thursday February 11, 2021 @02:37AM (#26099180)
> 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?