I am not gonna write my thoughts of Bun in this blog post, instead I wanna quote from their official doc and give my response to that, these gonna be my future takeaway, they might be yours as well:
You gotta love this, and I agreed.
Ha, right on the spot, well done.
TypeScript and JSX support
import lodash from "lodash"; const _ = require("underscore");
Just by having
require work together in the same file, man that's amazing.
Even if you don't use Bun as a runtime, Bun's built-in package manager can speed up your development workflow. Gone are the days of staring at that npm spinner as your dependencies install.
Bun may look like the package managers you're used to —
bun install bun add <package> [--dev|--production|--peer] bun remove <package> bun update <package>
Ha, is the
pnpm shit finally over? I'd love that.
Honestly, at this point of my life, faster speed might be the last thing I care about as long as the speed is in an acceptable range. However, if faster speed comes with good developer experience, I think I am gonna by happy with that. So the takeaway is faster speed can't be the selling point by itself.
Does Safari really have billions of devices every day in usage? I doubt it.
I am not a fan of writing unit tests probably because I think it is useless, and has nothing rewarding as good as building a good product. Let's say I'd rather spend time on tweaking my UI better for the end-users, the result is that they are happy. But writing unit tests doesn't make me happy, doesn't make end-uers happy, doesn't make my team happy, I don't even know writing unit test makes WHO happy.
At least within Bun's test runner, it is built-in, it might change my mind, we will see.
I am excited to see what this can do as well.
It feels like what the Bun is doing is creating an all-in-one solution. Technically speaking, an all-in-one solution doesn't exist. If you want to make it happen, you've got to spend an enormous amount of effort and endless time on maintenance.
On the second thought
After reading more on the doc, I found this:
We shall see what happens next, for the meantime, I am gonna have a good time to feel the fastness of Bun.
Here is an update after using Bun full time for a couple of weeks. Jarred Sumner pointed out that one of the major reasons why Bun is so fast: they utilized tagged pointers. Another noteworthy aspect is that VC is involved in the entire development process, allowing Jarred Sumner and the Bun team to work on it without worrying about the cost.