Hacker News new | past | comments | ask | show | jobs | submit login
Bun v1.1.22 (bun.sh)
51 points by ode 47 days ago | hide | past | favorite | 11 comments



I work on Bun. Happy to answer any questions


What's the long-term plan for a business model? The only hesitation I have for buying into Bun is not knowing whether it's on a long-term track (i.e., is there a post-funding reality for Bun or is that TBD).


Bun is great!

What is Bun team next big goal? I mean, what is the team cooking up?


No question, just want to say Bun is awesome and thank you.

(minor nit: release article says "Uint8Array.prototype.fromBase64()" when it's actually "Uint8Array.fromBase64()" per the code sample. Same for .fromHex)


What would a Bun v2 look like in your view?


when will bun officially catch up to node?


I’ve been using bun with NextJS 14 and it’s worked really well the last few months.

So well in fact that I forgot that the lack of stack traces was due to Bun. I forgot NextJS even gives you stack traces in the browser, it’s been that long.

I’m going to upgrade ASAP just for that feature.

I still have to run npm run build for nextjs to ensure it’ll work in Vercel because there are the occasional errors that were only caught during a deploy.


Thank you for bun! Makes it much easier to add small focused typescript tools to a production monorepo, because there’s no dance and shake to start developing. Phenomenal!


[flagged]


No, it's a JS runtime based on WebKit's JavaScriptCore JS engine. Performance claims should be taken with a grain of salt and are less likely to be the result of the JS engine itself and more likely to be with some specific architectural choices (e.g. implementing certain things in native code instead of JS, better parallelism, more efficient event loop, etc etc).

JS Platform = all the bits that make up the capabilities the JS code can access when it calls various APIs provided by the "platform" that connects to the OS.

JS engine = the thing that implements parsing & executing the JS code as defined by various standards (e.g. ECMA2022) and implements a very small subset of APIs those standards define (e.g. how String and ByteArray work).


Bun is a JavaScript runtime, bundler, transpiler, npm package manager, and test runner all-in-one.

It isn't accurate to say Bun is a JavaScript engine. We use JavaScriptCore as the engine, which is the same engine used by Safari (WebKit). The engine is responsible for running the code and a number of language APIs (Array, Object, Number, RegExp, etc). The runtime is responsible for things like I/O, filesystem access, the event loop, and implementing a very large number of non-language APIs and modules


Note Bun is a runtime environment using the JavaScriptCore engine from WebKit/Safari. Node uses V8 (chrome) which was a little faster in benchmarks last I checked. Where Bun claims performance is in all the system APIs like reading a file, running a http server, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: