moot✳A little more connected.
Join Moot

The first step is types.

We're adding a TypeScript-compatible type checker to Bun.

It’s the best shot ahead-of-time compiled TypeScript has at beating languages like Go on memory and speed.

JJarred Sumner@jarredsumner

JavaScript was never designed for the server. If that doesn't change soon, JavaScript on the server will be replaced by Rust.

The fix needs to happen in the engine. Sound types. Ahead-of-time compilation. Threads with shared objects.

View on X
#bun#typescript#type checking#runtime type checks#tooling
1
2 comments
2 comments

@jarredsumner You say type-checker but what I really hope for is runtime checks.

Any chance that's in the plan as well?

@iamelcharitas Already implemented :)

Explicitly specified types that don’t match throw a TypeError. This is probably the biggest breaking change - lying about types throws