TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
RUBY MIGHT BE FASTER THAN YOU THINK
Summary from the TLDR newsletter
The crystalruby project allows writing and running Crystal methods inline inside a Ruby file, bringing significant performance improvements to code compared to their pure Ruby versions. However, the Ruby implementation the project uses contains a subtle mistake that causes significantly more work than it needs to. Fixing this mistake makes the Ruby code run faster than the 'crystalized' method. Future advancements in the Ruby JIT may make these small tweaks unnecessary.