Re:Why Wasn't Ruby 3 Faster?
by ttt0 on Wednesday February 10, 2021 @08:35PM
(#26097208)
I tried it out at some point, and it's a nice language I guess, but man, the compile times. It's not worth it, just learn C or C++.
[ Parent
| on HN ]
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
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...
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.
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.