Comment by reactordev

Comment by reactordev 17 hours ago

10 replies

Bun is such a great runtime. If you haven't tried it, try it. It's got bells and whistles.

This will make sure Bun is around for many, many, years to come. Thanks Anthropic.

Why Bun?

Easy to setup and go. bun run <something.ts>

Bells and whistles. (SQL, Router, SPA, JSX, Bundling, Binaries, Streams, Sockets, S3)

Typescript Supported. (No need to tsc, bun can transpile for you)

Binary builds. (single executables for easy deployment)

Full Node.js Support. (The whole API)

Full NPM Support. (All the packages)

Native modules. (90% and getting better thanks to Zig's interop)

S3 File / SQL Builtin. (Blazingly Fast!)

You should try it. Yes, others do these things too, but we're talking about Bun.

tpetry 15 hours ago

Its not 100% nodejs compatible. I see enough non-green dots in their own official report https://bun.com/docs/runtime/nodejs-compat

And even in packages with full support you can find many github issues that bun behaves directly which leads to some bugs.

  • reactordev 14 hours ago

    Not saying it’s 100%, there’s still the repl missing but all of node’s API is available in the sense that it’s ABI compatible (or will be very near term).

dawnerd 17 hours ago

> This will make sure Bun is around for many, many, years to come.

Well, until the bubble bursts and Anthropic fizzles out or gets acquired themselves.

  • holysoles 16 hours ago

    If they keep it MIT licensed, if/when things come crashing down, I think its reasonable to think Bun would continue on in some form, even if development slows pace without paid contributors.

  • reddalo 16 hours ago

    ...and then it's going to be time for an "incredible journey" post.

croes 17 hours ago

Does it have permission flags yet like deno has?

  • johncolanduoni 16 hours ago

    I’ve never understood the security utility of the Deno flags. What practical attack would they protect you from? Supply chain seems to be the idea, but how many npm packages do people use that neither:

    * Get run by devs with filesystem permissions

    * Get bundled into production

mtoner23 16 hours ago

It'll be around until they realize it makes 0$, and costs them millions per year in salaries/stock. then it will quietly die

  • oheyadam 15 hours ago

    You think they wouldn't have done that napkin math before deciding to acquire it?

  • reactordev 14 hours ago

    Anthropic uses a lot of bun. In fact, they bet the farm on it.