News for hackers. Stuff that matters.
Re:Bun 1.2 Is Released by shubhamjain on Thursday January 23, 2025 @04:35AM (#42802377)
Quite a lot of people have told Jared (Bun’s Author) the same thing, but his opinion is that Bun should have everything a basic project might need. Keeping it in core he can make it more optimized than it would be as third-party library.

It’s a misguided approach according to me. And I feel Jared has become way too ambitious. But what can I say, it’s his passion project.

Re:Bun 1.2 Is Released by animuchan on Thursday January 23, 2025 @05:03AM (#42802520)
I can understand this vision: it's neat to be able to just open a file and start making a program, without having to choose one of the 20 relatively popular Postgres client libraries available on npm.

From the engineering standpoint, sure, it's a disaster.

But it's also the lost magic of TurboPascal and friends, where you could just be immediately productive, with no dependencies, no external tooling, on an old computer gathering dust in the school library.

Re:Bun 1.2 Is Released by Raed667 on Thursday January 23, 2025 @08:39AM (#42803875)
> without having to choose one of the 20 relatively popular Postgres client libraries

They can easily provide official extensions/packages clearly namespaced and avoid all this mess. But I fear that they're more focused on a "headline-driven-development" approach, the more different from the status quo, the better

Re:Bun 1.2 Is Released by animuchan on Thursday January 23, 2025 @09:51AM (#42804592)
And it's successful! I've unironically learned about Bun on YouTube, and now am a happy user. :)

A set of "blessed" known good packages would be wonderful to have in any language, I wonder why it's not a thing.

Re:Bun 1.2 Is Released by Raed667 on Thursday January 23, 2025 @11:32AM (#42805469)
I'm wondering what made you switch ? I find the ubiquity of node very comforting, maybe I'm not seeing the argument that will convert me over ?
Re:Bun 1.2 Is Released by morcus on Thursday January 23, 2025 @11:56AM (#42805660)
Not the original commenter -

It has just been a pretty low effort drop in replacement for me. It's definitely not a complete game changer, but quick iteration is just that bit more convenient since it's faster and I don't need to remember all the flags I normally have for my setup (Typescript, .env file, etc...)

Re:Bun 1.2 Is Released by animuchan on Sunday January 26, 2025 @05:30AM (#42829208)
Not entirely switch, but so far I've been using bun for small side projects and it's been rewarding. There's a lot less project managing, some scripts can be just a single file with no dependencies, no package.json and no build chain.

Of the "batteries included" features, the `Bun.serve` web server and the `HTMLRewriter` HTML5 SAX API thing are very powerful, saving a lot of node_modules space.

Running TypeScript without a build step is neat. (I know there's `node --experimental-transform-types`, and it's great to see this feature propagated "upstream")

That said, for large established Node.js projects, I don't really see the pull to switch over to Bun. There's cost associated with it (for one, the built-in test runner works a bit differently, so if you're using `node --test` it'll require some fiddling)

Re:Bun 1.2 Is Released by wiseowise on Thursday January 23, 2025 @06:47PM (#42809229)
No, thanks. That’s what Kotlin does and it’s an absolute shitshow. I want ‘editor index.ts’ and start working instead of going shopping for something that should’ve been part of std.
Re:Bun 1.2 Is Released by meiraleal on Thursday January 23, 2025 @06:32AM (#42802997)
Being misguided or not, it is good to have different approaches, including the ones that doesn't work.
Re:Bun 1.2 Is Released by lioeters on Thursday January 23, 2025 @07:54AM (#42803502)
Bravo, let a hundred flowers bloom. May the best ones win, or at least prove themselves to be "worse is better".
Re:Bun 1.2 Is Released by gardenhedge on Thursday January 23, 2025 @06:09AM (#42802867)
I think it's great. There are already alternatives so makes sense for Bun to do its own thing
Re:Bun 1.2 Is Released by mythz on Thursday January 23, 2025 @12:01PM (#42805704)
It's one of the things I love about Bun, I now write any non-trivial stand-alone scripts with TypeScript which is capable of a lot of functionality without needing any config or to install any external packages.
Re:Bun 1.2 Is Released by bilater on Thursday January 23, 2025 @12:20PM (#42805887)
I like the batteries included option and would likely use it a lot. But not sure why they simply did not make a "batteries" package you could install on top of core and avoid the inevitable push back they knew they would get from this.
Re:Bun 1.2 Is Released by 8n4vidtmkvmk on Thursday January 23, 2025 @08:32PM (#42809744)
Deno is doing this. I'm not sure if it's good or not tbh. Now I have to worry about std package version on top of deno ver. And if I'm going to install a random package, how am I sure std deno is the best? Maybe I should choose something else. Back to decision fatigue