nowfound

Dev tools · March 1, 2026

Rust compiler in PHP emitting x86-64 executables

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.

Rust compiler in PHP emitting x86-64 executables launched on March 1, 2026 with 66 votes, #675 of 23,380 launches that month and more than 95% of that year's launches.

Visit github.com ↗Alternativestop 3% of March 2026

In plain words

This is a Rust compiler implementation written in PHP that generates x86-64 executable files. It is designed for developers who need to compile Rust code using a PHP-based toolchain. The project targets systems running on x86-64 architecture, making it suitable for those working with 64-bit processors. This approach combines two typically separate ecosystems, offering an alternative compilation pathway for Rust developers.

written from the facts on this page · September 2026

From the sources

A Rust compiler with ownership checking, written in PHP - mrconter1/rustc-php

A Rust compiler written in PHP that emits x86-64 Linux ELF binaries directly (no LLVM, no assembler, no linker). Implements ownership checking, borrow checking, type checking, move semantics, generics, traits, closures, and iterators. Useful if you need to compile Rust on a shared hosting server from 2008 where the only installed runtime is PHP. In order to execute Rust code you of course first need to install PHP. You can do this easily on Windows 11 by running: winget install PHP.PHP.8.4 This compiler outputs valid machine code for Linux, so the most practical approach if you're on Windows is to use WSL. Start by installing Ubuntu (if you haven't already): wsl --install After the install…from github.com

Does a similar job

all alternatives →
  • A terminal emulator in pure PHP2025 · github.com · ▲196

    A terminal renderer written in pure PHP. Contribute to soloterm/screen development by creating an account on GitHub.

  • I'm making a dynamic language in Rust2022 · github.com · ▲184

    An implementation of a dynamic programming language in Rust. Includes: Parser/Compiler, REPL, Virtual Machine, Bytecode Disassembler This started out as a learning project to teach myself Rust. It has grown into a decently substantial piece of software and I've learned quite a bit in the process! Some neat things: + A garbage collector that can store dynamically sized types without any double-indirection (i.e. I have my own Box implementation with manual alloc/dealloc) + The smart pointer used to reference GCed data is a thin pointer. The ptr metadata needed for DSTs is stored in…

  • How to compile C/C++ for WASM, pure Clang, no libs, no framework2022 · github.com · ▲217

    A little help for programmers, who wants to run C/C++ code in the browser. (This is my second attempt to show it, first time I got banned bcoz of my personal page domain, I don't really understand it why is is suspicious.)

  • A PHP parser written in PHP2012 · github.com · ▲77

    A PHP parser written in PHP. Contribute to nikic/PHP-Parser development by creating an account on GitHub.

  • A Rust macro that parses Java-like syntax and runs it as a Rust program2018 · gitlab.com · ▲195

    A Rust macro that parses Java-like syntax and runs it as a Rust program

  • Cattle2022 · cattle.sh · ▲87

    Platform to run and share code

More dev tools this month

the category →
  • /dev/null▲472

    a social network for devs

    Dev tools · 2d ago · dev-null.sh

  • open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.

    Dev tools · 27d ago · github.com

  • Contribute to reladraw/reladraw development by creating an account on GitHub.

    Dev tools · 25d ago · github.com

  • OpenBot▲362

    Grok Bot alternative: free, local, open-source, multiplayer

    Dev tools · 22d ago · openbot.run

  • Talanoa▲340

    Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…

    Dev tools · 20d ago · talanoa.email

  • CoreSpeed▲332

    One MCP for everything your agents need: apps, memory, tools

    Dev tools · 27d ago · corespeed.io

Source: Show HN post ↗

Launched alongside, March 2026

the whole month →
  • AI-native CRM that builds itself and does work for you

    AI · Mar 2026 · lightfield.app

  • Tobira.ai▲728

    A network where AI agents find deals for their humans

    AI · Mar 2026 · tobira.ai

  • Switch from ChatGPT to Claude with import memory feature

    AI · Mar 2026 · claude.com

  • Littlebird remembers everything across your meetings, messages, docs, and apps, then takes action so you can recall any detail and never lose context.

    AI · Mar 2026 · littlebird.ai

  • Your AI Coworker that proactively executes tasks

    AI · Mar 2026 · viktor.com

  • Jupid▲659

    File your taxes with Claude Code

    Commerce · Mar 2026 · jupid.com