Hardcore Geek Project: A Rust Compiler Written Entirely in PHP
tom_doerr · x · 2026-08-14
A hardcore project named rustc-php has surfaced on GitHub: a Rust compiler written entirely in PHP.
Without relying on LLVM, assemblers, or linkers, it directly emits x86-64 Linux ELF binaries. Surprisingly, it implements not just basic code generation but also Rust's core features, including ownership checking, borrow checking, type checking, move semantics, generics, traits, closures, and iterators.
The developer jokingly notes that this is perfect for deploying on a 2008 shared hosting server—where PHP might be the only available runtime.
More from Fun
- Using Grok to Research a Family Tree Uncovers a Pitchfork-Attack Ancestor — Scobleizer · 2026-11-30
- AI-generated video homage to Kubrick's 2001: A Space Odyssey — kwikpedia · 2026-11-30
- 'Sir, I'm Talking About Tuesday': The Funniest p(doom) Timeline Exchange You'll See Today — mfckr_eth · 2026-11-30
- One phone video, three ways: developer turns his living room into a 3D scene for home robot sim — Scobleizer · 2026-11-30
- AI forecaster jokes his error bars are "bigger than the universe" — burny_tech · 2026-11-30
- Arcturus Vision Camera design nods to Star Trek's Geordi VISOR, and Scoble approves — Scobleizer · 2026-11-30