A Rust compiler with ownership checking, written in PHP
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 cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Implement a RubyVM Written in PHP
Rux, a hobbyist microkernel written in Rust
AVR-VM – VM with JIT-compiler for ATMega32 written in Rust
Catfs – Cache AnyThing Filesystem Written in Rust
Encrusted – A Zork Interpreter Written in Rust / WebAssembly
Toy C Compiler written in Rust
Eole, a Lévy-optimal lambda calculus evaluator written in Rust
Published Thanks-Dependencies written in Rust
Bytebeat written in Rust (bytebeat-rs)
Mixed Boolean Arithmetic Expression Obfuscator Written in Rust