4 ms·
It's not quite what you're describing, but TruffleRuby is Ruby on GraalVM: https://github.com/oracle/truffleruby https://github.com/oracle/truffleruby Unlike
by lolinder 2y ago
It's not quite what you're describing, but TruffleRuby is Ruby on GraalVM:
https://github.com/oracle/truffleruby https://github.com/oracle/truffleruby
Unlike GraalVM Java, as far as I can tell TruffleRuby doesn't provide a bundler that can create a single executable out of everything, but in principle I don't see why it couldn't.
- kaba0 2y agoGraal can create an executable from a ruby program as well with TruffleRuby and native image (both part of the general graal project).
- mike_hearn 2y agoWorth noting that the GraalPython implementation does support creating a single binary. https://www.graalvm.org/latest/reference-manual/python/standalone-applications/ https://www.graalvm.org/latest/reference-manual/python/stand... I'm not sure I'd try replacing shell scripts with natively compiled Python binaries. That said, I use a Kotlin Scripting based bash replacement in my own work that has many useful features for shell scripting and is generally much more pleasant. You have to "install" it in the sense of having it extracted somewhere, but it runs on Win/Mac/Linux and can be used without root etc.
- derefr 2y agoI wasn't so much imagining each shell script being replaced with a binary, as I was imagining deploying a single static binary "sysadmin-DSL interpreter binary" — where that "interpreter" is just "Ruby with a custom prelude, all packed together" — such that I could then name that interpreter in the shebang line for my admin scripts written in that DSL.