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
- Qwen 3.5 Distilled Model Suggests Cleaning Dust Bunnies — TinFoilHat_69 · 2026-08-24
- Robot long jump hits 7+ meters, just 1 meter shy of human world record — TinfoilTricorn · 2026-08-24
- 'Robots could do that decades ago, they're called cars': humanoid sprint debate — teortaxesTex · 2026-08-24
- OpenAI patches goodwill glitch; t3gg's Theo quietly deletes posts to dodge blame — ns123abc · 2026-08-24
- Developer haider makes his own LLM tier list after disagreeing with theo's rankings — haider1 · 2026-08-24
- AI video model fails to understand Jenga physics, creating absurd collapse — Sad_Coach_1433 · 2026-08-24