It's me again. My Kubernetes devolver has reached the astral plane.

https://jlai.lu/post/33786080

It's me again. My Kubernetes devolver has reached the astral plane. - jlai.lu

Hey there, it’s me again with my cursed project. Last time is said “i basically reinvented Kubernetes”. But the voices won and I legit did. Last time it was a cursed novelty. A random script made by some autistic dude with too much time on its hand. Now it’s become its own project, with ecosystem and overpriced .io domain. For no reason other than : It’s cursed, but it works beautifully. Every Kind is handled by its distinct code. Everything is pluggable, nothing is hardcoded. The next layer of hell is for someone else to write Docker Swarm extensions. Won’t be me. I am, again, very sorry. Sorry for releasing this thing into the world as a complete, working, product. And sorry for keeping spamming it. I will stop, i promises (the voices will never)

okay the moment I saw Python I just closed it
Curious what you would use instead? I can only think of one wrong answer and that’s Jsonnet.
Would’ve written a Golang program and spit-out a binary for everyone to execute on any machine

You can create static binaries that bundle the python interpreter and dependencies.

It’s the onefile option in pyinstaller: pyinstaller.org/en/stable/usage.html#cmdoption-F

You can also do it with C. Or Csharp. Or many other programming languages. It’s not a feature unique to Go, it’s just that Go can only create static binaries.

Using PyInstaller — PyInstaller 6.19.0 documentation

not only, you can go ahead and run a Go program as is, without compiling as well 😆

TIL about the one file, 10x for sharing, can you guarantee that runs everywhere?

go run works by compiling the program to a temporary executable and then executing that.

can you guarantee that runs everywhere

It seems to depend on glibc versions, if that’s what you are asking. You can force it to be more static by using a static musl python or via other tools. Of course, a binary for Linux only runs on Linux and the same for Windows and Mac. But yeah.

Also it should be noted that go binaries that use C library dependencies are not truly standalone, often depending on glibc in similar ways. Of course, same as pyinstaller, you can use musl to make it more static.

You sweet summer child…