🔧 Programmierung 🕛 vor 3 Monaten 2 Min Lesezeit
0

I built a programming language from raw assembly — and it beats C by 6.6 on LZ77

↗ Quelle (dev.to)
🗣️ Stimme:

So I had a slightly unreasonable idea two years ago:



What if I built a programming language without depending on C, LLVM, or any existing toolchain?



The result is Jda — a high-performance systems language bootstrapped from raw x86-64 assembly. The compiler now compiles itself. No GC. No runtime. Single static binaries.



And on real benchmarks, it’s doing things I genuinely didn’t expect.



The numbers that made me double-check



I ran a 6-language benchmark suite (C, Rust, Go, Jda, Python, Ruby) on real algorithms — not microbenchmarks.




CODE
• Sudoku (500 puzzles): C 62ms, Rust 62ms, Go 66ms, Jda 41ms
• LZ77 (1 MB compress): C 1,830ms, Rust 2,185ms, Go 2,721ms, Jda 277ms




That’s 1.5× faster than C on Sudoku and 6.6× faster than C on LZ77. Running via Rosetta 2, no less — C/Rust/Go were native ARM64, Jda was x86-64 emulated.



How? Source-level optimizations the C compiler can’t easily do: MOD→AND strength reduction, hash-chain hoisting, aggressive DCE.



Compile times are kinda absurd too



33× faster compilation than Rust, 16× faster than Go. Skipping LLVM saves a lot of time.



A taste of the syntax

fn search_file(path: &i8, pattern: &i8) -> i64 {

let fd = file_open(path, 0)

let buf = file_read_all(fd)

let matches = 0

for i in range(str_len(buf)) {

if substr_match(buf, i, pattern) {

matches += 1

}

}

ret matches

}



A real ripgrep-style search tool, ~400 lines total, compiles to a 1 MB static binary with zero dependencies.



What’s in the box




CODE
• Self-hosted compiler — byte-identical fixed point reached April 2026
• 117 stdlib packages — HTTP, JSON, crypto, tensors, neural networks
• Built-in concurrency — goroutine-style green threads, no GC
• 388 conformance tests passing
• Native installers for Windows, macOS, Linux




Try it



Repo: https://www.github.com/jdalang/jda-lang



Happy to answer questions about the bootstrap process, the codegen, or why on earth I did this in the comments.

Vollständiger Original-Artikel
Den kompletten Beitrag mit allen Details direkt auf dev.to lesen.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
How did I not know that Call of Duty: Modern Warfare 3 Zombies was this much fun?
1 Quelle
Here are all the new Xbox games shown at Tokyo Game Show 2026, with updates for titles releasing in 2027 and beyond
1 Quelle
Samsung Galaxy Watch 9 zum Tiefstpreis: Neue Smartwatch fällt überraschend stark im Preis bei Amazon
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a programming language from raw assembly — and it beats C by 6.6 on LZ77

Thematisch verwandte Begriffe: built, programming, language, from · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...