The Ruby One-Binary Tool, Enhanced with Kompo
ahogappa
• Matsuyama, Ehime, Japan
• Japanese •
Talk
Date: April 18, 2025
Published: May 27, 2025
Announced: unknown
I want to introduce a Ruby one-binary conversion tool. I am developing a gem called Kompo. Kompo was developed to make one-binary Ruby game engines, which I can develop in Ruby as a hobby. Kompo is based on the concept of "easy to run anywhere reasonably fast." Now, a simple program with Sinatra + SQLite can be made one binary. However, Kompo cannot include anything besides Ruby scripts in the binary because it achieves one binary by overriding `require,` which is sufficient. If you want to make a Ruby on Rails app one-binary, you need to include YAML, etc., in the binary and also be able to read it via `IO.read`, etc. So, I have provided Kompo with a means for users to access binary data freely. This allows you to read the YAML files in the binary using `IO.read`, etc. In this session, I will describe the details of this implementation and demonstrate how Ruby can be run as one binary.
https://rubykaigi.org/2025/presentations/ahogappa.html
RubyKaigi 2025