You can write a native extension for Ruby using Rust through Helix. With Helix your code will be screaming fast, while ensuring thread and memory safety and preventing segfaults. Fast, reliable, and productive. Come learn how we can have our cake and eat it too!
Writing Faster Ruby: https://speakerdeck.com/sferik/writing-fast-ruby