Remix.run Logo
reactordev 3 hours ago

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 an hour ago | parent | next [-]

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 23 minutes ago | parent [-]

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 3 hours ago | parent | prev | next [-]

> 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 2 hours ago | parent | next [-]

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 3 hours ago | parent | prev [-]

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

croes 3 hours ago | parent | prev | next [-]

Does it have permission flags yet like deno has?

johncolanduoni 3 hours ago | parent [-]

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 2 hours ago | parent | prev [-]

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

reactordev 14 minutes ago | parent | next [-]

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

oheyadam 2 hours ago | parent | prev [-]

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