Crystalruby is a gem that allows you to write Crystal code within Ruby. By making simple changes to your methods, you can see a significant increase in performance for some Ruby code. You can call embedded Crystal code from within other embedded Crystal code easily. The library supports various types and validations, including complex nested structures using JSON serialization. You can also wrap Crystal methods in Ruby for added flexibility. Crystalruby is designed to provide ergonomic access to Crystal from Ruby without requiring advanced Crystal knowledge. While the library is still in its early stages, planned additions include more advanced functionality.
https://github.com/wouterken/crystalruby