DEV Community

Aishanii
Aishanii

Posted on

Bun is breaking other package managers

A new javascript runtime is the central thing on the internet and I think it's time for new sticker on my laptop I code JS on.

But how is Bun so performant?⚡️

Built from scratch🧑‍🍳

Bun is not built on top of nodejs, rather they have used Zig over Webkit (for Safari) and internally optimised for performance by getting into the basics.

Caching and linking internally📁

Once installed, packages are needed to be called in node_modules and for that they have dedicatedly taken OS in consideration. While in linux syscalls help make internal calls faster, in macOS that is not available, hence they copy all the files that costs memory.

The APIs✍️

The APIs are in Native code and not in javasript which not only exposes them to machine level code but also gives them freedom to look into things at a deeper level.

There are many more good things which can be found here:
https://bun.sh/blog/bun-v1.0

The guy to follow to get updates is here: https://twitter.com/jarredsumner (literally the creator tweeting changes incoming)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay