2 ms·
Worth noting that the GraalPython implementation does support creating a single binary. https://www.graalvm.org/latest/reference-manual/python/standalone-appli
by mike_hearn 2y ago
Worth 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.