from Hacker News

Bun v0.5

by cyclecity on 1/18/23, 6:09 PM with 153 comments

  • by Jarred on 1/18/23, 6:56 PM

    I work on Bun. Happy to answer any questions or feedback
  • by xg15 on 1/18/23, 10:20 PM

    Really appreciating bun's ability to set custom WebSocket headers.

    Incidentally, what's up with the resistance against this from the standards maintainers? [1]

    The request exists since 2017, there are tons of use cases and developer interest, but Chrome refuses implementation on technicalities. What gives?

    [1] https://github.com/whatwg/websockets/issues/16

  • by wdb on 1/18/23, 7:58 PM

    Starting to look promising. Work projects not working yet due to the need of `dgram` and `async_hooks`.

    Would leveraging `async_hooks` be possible in the future with the used non-v8 engine or would there be some alternative?

  • by Alifatisk on 1/18/23, 7:49 PM

    Makes me happy seeing newer alternatives to Node, it’s exciting!
  • by muhammadusman on 1/18/23, 7:23 PM

    As is with all things in the JS world, I usually ignore new things until they have some traction.

    Is Bun ready to be used for production projects?

  • by 1vuio0pswjnm7 on 1/18/23, 7:11 PM

  • by maherbeg on 1/18/23, 7:06 PM

    Is there a roadmap to getting to a 1.0 stable release?
  • by msoad on 1/18/23, 8:48 PM

    Does Bun also generate standalone executables? I'm interested in using it for CLI apps.
  • by thiago_fm on 1/18/23, 7:52 PM

    Anybody care to explain on how it achieve such numbers in comparison to node and deno?

    Why would anybody not use Bun, other than the cost of migration, given the performance improvement?

    Nevertheless, amazing performance. Feels refreshing to see more improvements to the JS/TS community.

  • by gmaster1440 on 1/18/23, 8:36 PM

    Seeing the perf benchmarks for `vite build` with and without bun will be the ultimate practical test of bun for me, excited for the next release where we'll hopefully see that support.
  • by mmmeff on 1/18/23, 6:49 PM

    Awesome to see workspaces get some love, but kinda odd they shipped it without support for globs. Guess I'll keep waiting to try it out on my projects.
  • by viksit on 1/18/23, 8:40 PM

    as a newbie to bun, is there a reason to use it beyond it being an alt to node/deno?

    i mean, i don’t know how many people even use deno, let alone bun.

  • by rcarmo on 1/19/23, 7:14 AM

    Still can’t run Node-RED, which would be a key use case for me.
  • by gardenhedge on 1/18/23, 9:50 PM

    I see Oven (creator's of Bun) are hiring. I imagine the pool of javascript developers that they could hire from is tiny. Add in Zig and it's even smaller.
  • by cdelsolar on 1/18/23, 11:13 PM

    can bun be used for front-end? i.e. to replace create-react-app + Webpack + etc
  • by serverholic on 1/19/23, 1:09 AM

    I wish I could support Bun but I honestly can't ethically support someone who explicitly wants to hire people to work insane hours, and has right-wing billionaire bootlicker tendencies.

    I mean he's a Thiel Fellow, which should give you an idea of what I'm talking about.

  • by pictur on 1/18/23, 7:54 PM

    why is this project constantly benchmarking against deno and node? it seems to attract good attention this way but I wonder what else it offers besides performance.