How does Bun’s GC work?
I have a CLI ghat does some processing and Bun used all the memory and pushed me deep into swap on a 64gb ram machine. I added some Bun.sleep(1) in the some loops to give the GC more time but that didn’t help much.
It would help to say a few words in the submission about what bun is supposed to be and why anyone should care. The name sounds like a recipe app or something for my culinary experience.
From the docs [1], "Bun is an all-in-one toolkit for JavaScript and TypeScript apps. It ships as a single executable called bun ."
Is it expected to work in the real world? I don't think so
% bun test bun test v0.5.7 (5929daee)
17 | expect([...] ^ error: Not implemented
error: Unexpected ? ?PNG ^ [...]/a.png:1:1 0
zsh: segmentation fault bun test
I've been trying to get bundling working with bun without success using `bun bun`. It just crashes or hangs. Is there an way to get bun to work like `esbuild --bundle` ?
Any news on musl support?
Jarred previously mentioned it was worth a look: https://news.ycombinator.com/item?id=34431432
How does Bun compare to Deno? I guess that's their main competition?
Also, bun has docs now: https://bun.sh/docs
I'm concerned with how much debt they have and if they don't pay it back. Deno seems safer.
no Windows:
I was really excited about Bun when it first launched and even joined the early beta and it blows the doors off most other options (webpack) for sure.
However, I've discovered Vite since then, and I know it's not a 1:1 comparison, but Vite is much more mature, and does everything I need and is incredibly user friendly and plenty fast enough for me. I kinda feel like Bun missed its moment already. Someone convince me otherwise please. I'm loving Vite it's a huge step up from Webpack, and isn't leaving me wanting for anything more.
I work on Bun. Happy to answer questions