News for hackers. Stuff that matters.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by kibwen on Wednesday December 09, 2020 @07:20PM (#25367646)
I think the belief that Go does no dynamic linking whatsoever is outdated; I seem to recall that they recanted this approach on Mac and Windows since these platforms only offer a stable system interface via dynamically-linked libraries, and trying to re-implement all of it ended up being a lot of work only to end up with broken code after system updates. On Linux I think Go still tries to link mostly statically, but if you use parts of the stdlib (e.g. `net`) you'll still end up dynamically linking to libc unless you instruct it otherwise. If anyone more knowledgeable could speak up I'd welcome it.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by loosescrews on Wednesday December 09, 2020 @09:38PM (#25368955)
Go supports dynamic linking and most Go binaries will be dynamically linked. On Linux, this is mostly due to optional features which can be easily disabled. The optional features are all related to supporting rare and unusual system configurations and do not affect normal operation. Note that cross compilation with Linux as the target does not support dynamic linking, so all Go Linux binaries compiled on a non-Linux OS will be statically linked.

Regardless of how we scope it, Go is still the only mainstream language capable of producing statically linked Linux binaries without libc while still allowing full use of the standard library.

Re:Deno 1.6 supports compiling TypeScript to a single execut... by pjmlp on Thursday December 10, 2020 @02:34AM (#25370916)
C with musl does just fine.
Re:Deno 1.6 supports compiling TypeScript to a single execut... by sim_card_map on Wednesday December 09, 2020 @08:17PM (#25368244)
This is correct.