News for hackers. Stuff that matters.
Re:An Introduction to Crystal by shric on Sunday February 21, 2021 @04:30PM (#26217421)
> Crystal’s build times are reasonable. Compiling my project Azula takes ~16s with the release flag. Compiling our barebones project above takes ~8s.

8s to compile a hello world is "reasonable"? Am I missing something?

Re:An Introduction to Crystal by mhd on Sunday February 21, 2021 @05:20PM (#26217853)
> Am I missing something?

One of its main competitors hasn't exactly been up to Turbo Pascal levels with their own compiliation performance.

Re:An Introduction to Crystal by ilumanty on Sunday February 21, 2021 @06:32PM (#26218463)
It's not the Hello World that takes 8s to compile, it's the author's project Azula (https://github.com/azula-lang/azula)
Re:An Introduction to Crystal by oisina on Sunday February 21, 2021 @04:37PM (#26217490)
this is with the release flag! normal compiling is a good bit quicker - sorry, should've mentioned that!
Re:An Introduction to Crystal by viraptor on Monday February 22, 2021 @12:03AM (#26221055)
It's not an actual hello world. "puts "hello world"" compiles in 0.7s in debug mode. In release mode it takes 7s with cold cache and 0.6s with warm for me.
Re:An Introduction to Crystal by doomrobo on Sunday February 21, 2021 @05:29PM (#26217947)
Not to mention memory intensiveness. Compiling a medium sized project (https://github.com/iv-org/invidious) on a DigitalOcean $5/mo droplet will throw an out-of-memory error unless I give it a few gigs of swap space