A

A Rust compiler with ownership checking, written in PHP

Hacker News

A Rust compiler with ownership checking, written in PHP

Hi! I put together a Rust compiler written in PHP. It takes Rust source code and outputs x86-64 Linux binaries directly. No LLVM, no assembler, no linker. It has a working ownership checker, borrow checker, type checker, structs, functions, control flow, and mutable references. The test suite has 80+ cases. The whole thing is around 2,500 lines of PHP.

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
59%59% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
54%54% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
34%34% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: code · Missing: mac, agents, macos
30%30% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
19%19% predicted probability of success on BetaList, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Im
Implement a RubyVM Written in PHP63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Implement a RubyVM Written in PHP

Hacker News6
Ru
Rux, a hobbyist microkernel written in Rust66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Rux, a hobbyist microkernel written in Rust

Hacker News14
AV
AVR-VM – VM with JIT-compiler for ATMega32 written in Rust69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AVR-VM – VM with JIT-compiler for ATMega32 written in Rust

Hacker News78
Ca
Catfs – Cache AnyThing Filesystem Written in Rust79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Catfs – Cache AnyThing Filesystem Written in Rust

Hacker News7
En
Encrusted – A Zork Interpreter Written in Rust / WebAssembly78%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encrusted – A Zork Interpreter Written in Rust / WebAssembly

Hacker News6
To
Toy C Compiler written in Rust72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Toy C Compiler written in Rust

Hacker News4
Eo
Eole, a Lévy-optimal lambda calculus evaluator written in Rust57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Eole, a Lévy-optimal lambda calculus evaluator written in Rust

Hacker News106
Pu
Published Thanks-Dependencies written in Rust52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Published Thanks-Dependencies written in Rust

Hacker News3
By
Bytebeat written in Rust (bytebeat-rs)59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bytebeat written in Rust (bytebeat-rs)

Hacker News4
Mi
Mixed Boolean Arithmetic Expression Obfuscator Written in Rust63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Mixed Boolean Arithmetic Expression Obfuscator Written in Rust

Hacker News3