6 ms·
I see, good point. Currently I implemented it in python for portability reasons, since it is available on most POSIX systems by default. The stripped Docker co
by timz 2y ago
I see, good point.
Currently I implemented it in python for portability reasons, since it is available on most POSIX systems by default.
The stripped Docker containers are used mostly for runtime to my understanding, building is done in a different container where more build tools are available.
In case of single binary (now it is single python file), what would be the best way to distribute it to users, since pypi and npm cannot be used?
Which language you would suggest?
- thangngoc89 2y ago> single binary > Which language you would suggest? Golang
- akavel 2y agoOr also Rust, Zig, or Nim.
- thangngoc89 2y agoHow is the cross-compilation of these 3 languages compared to Golang? I suggested Golang because it’s super easy, just set the correct GOARCH and you’re good to go.
- yellowapple 2y agoZig is also super easy; just use the -target flag and you're good to go. Pretty sure Rust is only slightly less easy. No idea about Nim.
- tjhasdufwasd 2y agoGo with CGO_ENABLED=0 gives you freestanding binaries
- igk_ 2y agohttps://docs.python.org/3.12/library/zipapp.html https://docs.python.org/3.12/library/zipapp.html