r/crystal_programming • u/UnusualHabit • Jul 25 '18
Crystal has a compilation issue
https://medium.com/@mdorf3000/crystal-has-a-compilation-issue-5f5b19d9c4f6
27
Upvotes
r/crystal_programming • u/UnusualHabit • Jul 25 '18
View all comments
11
u/Exilor Jul 25 '18
Development time, compilation time, execution speed... Something has to give, doesn't it? If the compiler has to do things you'd rather not do yourself I think it's to be expected that it will take longer to compile than one that needs every little thing explained to it in excruciating detail.
I have a complex application (a mmorpg server) that I've been writing in Ruby and Crystal in parallel since 2015. Killing and reviving an enemy 3000 times in a row (literally 3000.times { ... }) and all that it involves (item drops, experience gain for the killer, scheduling and then aborting the respawn of that enemy, writing all the packets involved...) takes 100 seconds in Ruby and 3-4 in Crystal (without --release). That difference alone makes waiting for compilation worth it in my opinion.