Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So what does this mean? That I can finally ship portable Ruby executable without requiring the end user to install Ruby?


Yep! It works with any docker image!*

*: https://github.com/NilsIrl/dockerc/issues/6


You should also be able to do that with Cosmopolitan/APE.


I've tried to compile Libcello with cosmopolitan with little to no success, I don't think the Ruby runtime will be any easier sadly.

Could also be a skill issue.


Would you be able to expand on this, my impression is that these tools build a custom c program instead? Thanks


They provide a compiler and bundled userland that can be used to compile many C programs (even, for example, a slightly patched CPython) for a multi-OS binary distribution. Ruby shouldn't be that different.


You can already do this with these forks of ruby-packer and traveling-ruby:

https://github.com/ericbeland/ruby-packer https://github.com/YOU54F/traveling-ruby

ruby-packer is what I use to distribute a paid CLI, although on macOS only because my product is specifically for customers on macOS.

The advantage of ruby-packer is that it is much simpler, but you need to have access to each OS where you want to distribute your executable. OTOH, with traveling-ruby, you can build executables for all OSes from the same machine.


Had no idea about the actively maintained fork, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: