News for hackers. Stuff that matters.
Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by kitd on Tuesday May 16, 2023 @02:36PM (#35965829)
Congrats on the release!

How standalone are the standalone executables produced by `bun build`? Is a libc or equivalent expected to be present?

Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by Jarred on Tuesday May 16, 2023 @02:50PM (#35966007)
Bun does need glibc, but older glibc versions should work okay because of this: https://github.com/oven-sh/bun/blob/78229da76048e72aa4d92516...

We haven't implemented polyfills for everything yet though, like Bun uses posix_spawn and doesn't have an exec + fork fallback

Bun's dependencies otherwise are statically linked

Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by codethief on Tuesday May 16, 2023 @02:57PM (#35966107)
> Bun does need glibc

Wait, are we talking about what Bun needs to run or what standalone executables produced by bun build need in order to run?

Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by hiccuphippo on Tuesday May 16, 2023 @04:59PM (#35967690)
Both, the executables produced by bun are the bun binary concatenated to your script at the end. Try building a hello world and run `tail -c200 hello | xxd` to see your script at the end of the file.
Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by codethief on Wednesday May 17, 2023 @06:36AM (#35973481)
Thanks!
Re:Bun v0.6.0 – Bun's new JavaScript bundler and minifier by 10000truths on Tuesday May 16, 2023 @03:08PM (#35966249)
Is there any plan to allow for statically linking with musl to get completely shared-lib-dependency-free executables?