Introducing Script: JavaScript That Runs Like Rust
docs.script-lang.org·23h·
Preview
Report Post

After years of starting, killing, restarting, and refining, I finally realised a dream: operating JavaScript at the low level. And I’m giving it to the world!

Script compiles JavaScript and TypeScript to native machine code, without garbage collection, featuring:

  • Rust-inspired ownership & borrow checking
  • Native compilation via LLVM & Cranelift
  • Full TypeScript syntax with type inference
  • Zero-overhead abstractions & standalone binaries

It compiles down to SSA-based IR and produces self-contained executables that run with native performance. As a result, we finally have a language that writes like JS but runs like Rust!

The Journey

I’ve been amazed by the performance of languages like Rust and Go, which I’ve been working on the…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help