News for hackers. Stuff that matters.
Re:Bun 1.1 by yolm on Monday April 01, 2024 @10:26PM (#39901779)
I used both Deno and Bun.

Bun is really nicely compatible with node.

Speed of course is excellent, but the main reason I use Bun and recommend it:

You replace node, npm, tsx, jest, nodemon and esbuild with one single integrated tool that's faster than all of the others.

Re:Bun 1.1 by bducycy on Monday April 01, 2024 @10:29PM (#39901798)
Nicely compatible, until it's not.

We banned all these forks at work.

The dev onboarding overhead is not worth the benefits.

Having all 1700 repos using the same build tooling is more important than slight increases in build performance.

Re:Bun 1.1 by triyambakam on Tuesday April 02, 2024 @12:20AM (#39902352)
Banned? Is that why you had to post this on a green text account? Because that sounds immature. If you really have so many repos it sounds annoying that there isn't room for team level experimentation.
Re:Bun 1.1 by yen223 on Tuesday April 02, 2024 @01:36AM (#39902706)
It's not immature, it's pragmatic. You do have to weigh the benefits of being able to use non-standard tools vs the cost of having not being able to reuse the same tooling, linters, compilers, and what-not for all projects.

When you have a lot of projects to support, it's rare for the benefits to outweight the costs

Re:Bun 1.1 by KronisLV on Tuesday April 02, 2024 @12:48AM (#39902487)
> If you really have so many repos it sounds annoying that there isn't room for team level experimentation.

For what it's worth, I'll say that I can understand such top down governance: you'd have an easier time around moving across projects that you work on within the org, there'd be less risk of a low bus factor, BOM and documentation/onboarding might become easier.

Same as how there are Java or .NET shops out there, that might also focus on a particular runtime (e.g. JDK vendor) or tooling (an IDE, or a particular CI solution, even if it's Jenkins).

On the other hand, if the whole org would use MySQL but you'd have a use case for which PostgreSQL might be a better fit, or vice versa, it'd kind of suck to be in that particular situation.

It's probably the same story for Node/Deno/Bun, React/Vue/Angular or anything else out there.

No reason why that mandated option couldn't eventually be Bun, though, for better or worse.

Re:Bun 1.1 by dimgl on Tuesday April 02, 2024 @12:37AM (#39902429)
Devil's advocate: Deno and Bun are not yet fully backwards compatible with Node. I myself have run into a _ton_ of pain trying to introduce Bun for my team.

This can become a big time sink on bigger teams. That time could be saved by just not allowing it until a full team initiative is agreed on.

Re:Bun 1.1 by tipiirai on Tuesday April 02, 2024 @01:28AM (#39902672)
Why do you have 1700 repos?
Re:Bun 1.1 by pjmlp on Tuesday April 02, 2024 @04:33AM (#39903508)
The wonders of JavaScript package dependencies, where basic CS stuff is a function exported as a package.
Re:Bun 1.1 by darylteo on Tuesday April 02, 2024 @06:18AM (#39904081)
Probably an agency environment, or a enterprise environment that insists on having private mirrors of all 3rd party code.