Remix.run Logo
throwaway27448 6 hours ago

For those like me who have never heard of this software: Bun, some sort of package management service for javascript. https://en.wikipedia.org/wiki/Bun_(software)

beoberha 6 hours ago | parent [-]

Bun is a full fledged JavaScript runtime! Think node.js but fast

throwaway27448 5 hours ago | parent [-]

> Think node.js but fast

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

leonflexo 5 hours ago | parent | next [-]

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.

throwaway27448 4 hours ago | parent [-]

> Good for serverless. Great for agents -> Anthropic purchase.

Surely nobody would use javascript for either yea? The weaknesses of the language are amplified in constrained environments: low certainty, high memory pressure, high startup costs.

leonflexo 4 hours ago | parent | next [-]

I think Bun helps with the memory pressure, granted this is relative to V8. I'd pushback on the certainty with the reality that TS provides a significant drop in entropy while benefiting from what is a sweet spot between massive corpus size and low barrier for typical problem/use-case complexity. You'll never have the fastest product with JS, but you will always have good speed to market and be able to move quickly.

dtj1123 4 hours ago | parent | prev | next [-]

Claude CLI is based on bun. The dependency is so complete that Bun have now joined Anthropic.

throwaway27448 4 hours ago | parent [-]

Claude CLI is not exactly a reference of usable software

messe 4 hours ago | parent | prev [-]

> Surely nobody would use javascript for either yea?

It's probably the most popular language for serverless.

throwaway27448 4 hours ago | parent | next [-]

I can't vouch for this behavior but obviously you can have a better serverless experience than writing lisp with the shittiest syntax invented by man

pjmlp 4 hours ago | parent | prev [-]

Only because the likes of Vercel and Netlify barely offer anything else on their free tiers.

When people go AWS, Azure, GCP,... other languages take the reigns.

rererereferred 4 hours ago | parent | prev | next [-]

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.

undeveloper 4 hours ago | parent | prev [-]

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