How big are the bundles (edit: I meant self-contained executables) and do they depend on glibc? Edit: just saw a comment from the author indicating glibc is required.
Doing it without glibc is not practical
Bun 0.6
131–140 of 243 posts
Re: Bun 0.6
#132Re: Bun 0.6
#133Earlier quoted context omitted.
And NodeJS too https://nodejs.org/api/single-executable-applications.html
There is also https://github.com/vercel/pkg
Still not small, but I'm not sure what Bun's doing to come out 20 MB larger than an app with actual functionality and dependencies (this one has express, sqlite, passport, bcrypt, and a bunch of others-- essentially everything you'd need for a web service).
Re: Bun 0.6
#134Earlier quoted context omitted.
Is 90MB really that big when compared against the other types of binaries that would get deployed: containers and VM images? How big is the platform (k8s, docker, etc) you need installed to run your app? Probably more than 90MB.
Depends. Doesn't seem much for a server but if you want to distribute an executable to your users then 90MB seems huge. IIRC a hello world Go binary is like 2MB.
Re: Bun 0.6
#135Re: Bun 0.6
#136Anybody using Bun in production yet? What's your experience been like?
Re: Bun 0.6
#137Anybody using Bun in production yet? What's your experience been like?
I deployed a small non critical service with bun. So far constant (but slow) memory leaks and an 80% chance of segfault when starting up. Will try a few more versions of bun then move it to node for a while until bun matures a bit.
i'm sorry
can you file an issue with some code that reproduces it? will take a look
Re: Bun 0.6
#138Earlier quoted context omitted.
Apparently a hello world is like 90MB. https://twitter.com/jarredsumner/status/1657765876085690368
Is 90MB really that big when compared against the other types of binaries that would get deployed: containers and VM images? How big is the platform (k8s, docker, etc) you need installed to run your app? Probably more than 90MB.
1. https://sergiomartinrubio.com/articles/getting-started-with-...
Re: Bun 0.6
#139> Standalone executables. You can now create standalone executables with bun build. > bun build --compile ./foo.ts > This lets you distribute your app as a single executable file, without requiring users to install Bun. > ./foo This is big! Part of Go's popularity is due to how easy it is to produce self-contained executables. And it seems to support amd64 and arm according too: https://twitter.com/jarredsumner/statu…
Apparently a hello world is like 90MB. https://twitter.com/jarredsumner/status/1657765876085690368
Re: Bun 0.6
#140Earlier quoted context omitted.
Is 90MB really that big when compared against the other types of binaries that would get deployed: containers and VM images? How big is the platform (k8s, docker, etc) you need installed to run your app? Probably more than 90MB.
A native Java "Hello World" can be around 8MB in size.[1] So, yes, 90MB is too much. 1. https://sergiomartinrubio.com/articles/getting-started-with-...
I assume this is a typo and they mean “does NOT”?