Re:Show HN: A Markdown based alternative to package.json scr...
by thangngoc89 on Wednesday October 16, 2024 @10:52AM
(#41859748)
> single binary
> Which language you would suggest?
Golang
Re:Show HN: A Markdown based alternative to package.json scr...
by akavel on Wednesday October 16, 2024 @11:07AM
(#41859948)
Or also Rust, Zig, or Nim.
Re:Show HN: A Markdown based alternative to package.json scr...
by thangngoc89 on Wednesday October 16, 2024 @11:42AM
(#41860393)
How 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.
Re:Show HN: A Markdown based alternative to package.json scr...
by yellowapple on Wednesday October 16, 2024 @10:59PM
(#41866034)
Zig 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.
Re:Show HN: A Markdown based alternative to package.json scr...
by tjhasdufwasd on Wednesday October 16, 2024 @02:28PM
(#41862156)
Go with CGO_ENABLED=0 gives you freestanding binaries
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?