4 ms·
It is as easy to achieve in so many languages (zero-dep, statically linked, single binary). I think this is part of the best practices more than the language it
by istvan__ 11y ago
It is as easy to achieve in so many languages (zero-dep, statically linked, single binary). I think this is part of the best practices more than the language itself.
- justincormack 11y agoIt doesn't seem that easy. How would you do that in Python or Ruby? Indeed, you can't easily do it with anything that links against glibc as it wont do static linking for some things, so even for C code it can be non trivial (install Musl libc).
- istvan__ 11y agoSince Go is compiled it would be fair to see the other compiled languages, but I guess even Python and Ruby has some level of support. OCaml -> http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual025.html http://caml.inria.fr/pub/docs/manual-ocaml-4.00/manual025.ht... Rust -> rustc -C link-args=-static-libgcc hello.rs C -> gcc -o foo main.o -static -lbaz -lbar Python -> http://www.py2exe.org/ http://www.py2exe.org/ Ruby -> https://github.com/larsch/ocra https://github.com/larsch/ocra