Could we use JIT compilers of Ruby to protect Ruby source code for on-prem deployment?

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • crystal

    The Crystal Programming Language

  • Keep in mind that shipping "compiled" ruby can still be reverse engineered, but it will take time and be painful, so it's not really a protection but more like a due-diligence to deter lazy thieves. JRuby + Warbler is a good option, but JRuby is incompatible with C extensions, so you'll need to find pure-Ruby or JRuby-compatible alternatives or use FFI gem alternatives. If your app is small enough, you could possibly port it to Crystal which compiles to a native binary. If your app is really small, possibly try porting it to mruby, compile all of the source code to mrb bytecode, and embed that into a C program.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts