Piped

Great watch but to summarize:

  • Bun beats Node/Yarn for package installation

  • Somewhat better API/DX in some ways.

  • Loses poorly in testing performance

  • Tons of incompatibility issues/performance issues in other areas.

General summary: Just don’t use Bun yet, seems like it needs some more time in the oven.

You are viewing a single thread.
View all comments
12 points

I guess I don’t understand this obsession with speed? I work in development but I have never ran into a build that’s so slow that it impacts my work. Why is Node considered so bad that everyone wants to make is faster?

permalink
report
reply
12 points

You’ve never had an issue with how slow npm installs?

permalink
report
parent
reply
8 points
*

I’m with the parent poster. How often is it hindering your work?

It’s at tops, a 15-30 second wait, usually done at the start of the project.

I’m a unique use ase, where I have about 10 projects (because microservices) that I’d have to npm install, and it’s still not a pain to install them.

Are people running npm install dozens of times a week on the same project? Because why?

I’m not shitting on Bun. I’m actually supporting it’s growth. But until it solves some real performance bottlenecks, (switching from gulp/webpack to vite changed our compiling time from 18 seconds to 2 seconds), I can’t see any reason for people to change their workflow.

permalink
report
parent
reply
5 points

It’s at tops, a 15-30 second wait

First: it can be a lot longer than 15-30s. One project I work on takes around 90s for a fresh install. This used to be worse in older versions of npm, and it’s worse on Windows.

Second: it also affects things like CI/CD. I prefer using Yarn 2+ for that reason (all dependencies are stored as part of your repo). It might not sound like much, but 30 extra seconds does decrease your productivity more than you might think if you have to wait for it every single time.

permalink
report
parent
reply
3 points

Hmm, npm can take up to five minutes for me. I usually just leave it alone and go do other stuff. And I have fiber internet, so it’s not download speed that’s the problem.

permalink
report
parent
reply
1 point

Webpack takes 10 minutes to build the release bundle in a project at work…

permalink
report
parent
reply
1 point

because speed = your page loading fast = more clients = more satisfied clients = less environmental impact = less build time = less time downloading and lock-ing modules = more time for you … the list goes on.

I dont understand why is it so hard to understand that … guys … speed … does … matter? Our time matters? Our anything matters? And if you dont care, I do.

permalink
report
parent
reply
3 points

I don’t understand it either.

I’ve only had issues with npm speeds when the projects were stored in a HDD, and that’s not node’s fault.

permalink
report
parent
reply
6 points

Build times in nodejs are not so great in even medium size projects if you make heavy usage of advanced typescript features - either yourself or through libraries like zod. So if something makes the nodejs runtime faster, it could potentially make ts compiler faster too - for which I’d be very grateful.

permalink
report
parent
reply
2 points

I guess I don’t understand this obsession with speed?

for me it hasn’t been build speed but rather execution

I’ve run into problems with dayjs slowing down requests where I need to do a lot of processing. There are arguments to be made about replacing dayjs with datefns and how I should’ve been doing it differently anyway, but fact is that if the whole execution environment was twice as fast, it probably wouldn’t have been much of a problem at all

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.2K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments