5 ms·
Agreed with everything, except this: > I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to ma
by johnfn 3y ago
Agreed with everything, except this:
> I really wish the Node, Typescript, Deno/Bun, and maybe some bundler people would come together and figure out how to make this easier for people.
Bun has solved this. Bun is straight-up magic; they've implemented tons of hacks and heuristics so everything just works. Bun can even handle ridiculous or otherwise invalid code, like having import and require in the same file.
- madeofpalk 3y agoMy point here is that Bun should go teach Node how to be pragmatic and build a good developer experience
- johnfn 3y agoOh, yeah, totally agreed then.
- yencabulator 3y ago> tons of hacks and heuristics So, business as usual in the Javascript space. That's how the ecosystem got here, and why nothing works reliably.
- johnfn 3y agoLike I said in my comment, Bun works just fine. You seem to have taken 5 words I said out of context to justify something that I didn't say. It's not true that "nothing works reliably". Bun works reliably.
- edgyquant 3y agoI’ve never heard of bun before today. Why is it so low key and what’s it main selling point?
- kristiandupont 3y agoWhat are your main sources of tech news? Bun has been quite a darling here for a while..
- phatskat 3y agoMy own primary news source these days is HN and I’ve missed anything about it, your comment isn’t really helpful.
- flockonus 3y agolet me HN it for you - https://hn.algolia.com/?dateRange=pastYear&page=0&prefix=true&query=%22bun%22&sort=byPopularity&type=story https://hn.algolia.com/?dateRange=pastYear&page=0&prefix=tru...
- johnfn 3y agoIt's a pretty recent development in the frontend landscape. Its main selling point is a fabulous developer experience. That and, like I said, combing over the ESM mess and basically Just Working (TM).
- kaliqt 3y agoHow hard would it be to migrate a node project to Bun though? I want to move, but I'm not sure.
- johnfn 3y agoShould be a drop-in replacement.
- AntonCTO 3y agoTL;DR: It is too buggy. I tried it and ran into many issues. For example: - Incompatibility of transpiled artifacts with the Node runtime (many bugs were fixed, but I haven't tried again). I don't trust bun as a runtime. - Broken monorepo support. - No direct react support; you still need react-scripts/webpack/whatever. They have documentation on transpiling react, but it isn't the same. - No type checking, as with many other tools. Also, filter their issue tracker for bugs: https://github.com/oven-sh/bun/issues?q=is%3Aissue+is%3Aopen+label%3Abug https://github.com/oven-sh/bun/issues?q=is%3Aissue+is%3Aopen...
- mardef 3y agoBun has solved this, unless you have developers on Windows.
- AntonCTO 3y agoUnfortunately, bun is unusable due to a myriad of bugs. I closely monitor every bun release, hoping it will function well beyond simple node use cases. The idea is amazing, and I would love to switch to bun, but looking at the issues - no, not yet. How can I trust bun to be a secure runtime with all these bugs?
- johnfn 3y agoWhich bugs are you referring to? Every runtime has bugs in the issue tracker; you'll have to be more specific than that.
- AntonCTO 3y agoI ran into all types of bugs, including segfaults and incompatibilities with node. After encountering bundler bugs like https://github.com/oven-sh/bun/issues/6168 https://github.com/oven-sh/bun/issues/6168 and https://github.com/oven-sh/bun/issues/4216 https://github.com/oven-sh/bun/issues/4216, I stopped finding workarounds to get bun working.