logoalt Hacker News

throwaway27448today at 5:14 AM3 repliesview on HN

> Think node.js but fast

Color me extremely sceptical. Surely if you could make javascript fast google would have tried a decade ago....


Replies

leonflexotoday at 5:38 AM

Bun uses JSC (JavaScriptCore) instead of V8. From what I understand, whereas Node/V8 has a higher tier 4 "top speed", JSC is more optimized for memory and is faster to tier up early/less overhead. Good for serverless. Great for agents -> Anthropic purchase.

show 1 reply
rererereferredtoday at 6:48 AM

The actual JS code is in the same ballpark as nodejs. They get fast by specializing to each platform's fastest APIs instead of using generic ones, reimplementing JS libraries in Zig (for example npm or jest) and using faster libraries (for example they use the oniguruma regex engine). Also you don't need an extra transpiling step when using TypeScript.

undevelopertoday at 5:57 AM

they have, v8 is a pretty fast engine and an engineering marvel. bun is faster at cost of having worse jit and less correctness