Java to PHP Compiler
I had this crazy idea like some years ago.. I wasn't expecting it be factible, and there's still some semantic problems with this approach Anyways, the whole idea was to take some java source, generate an AST, and output it back as syntactically correct PHP. why? 50% fun + 50% exploration So I have this really basic compiler, which can roughly output its own code; what's still missing? - static vs instance detection (-> vs ::) - class' properties - method visibility - enums - inner types - annonymous classes - dealing with method overriding There's a huge gap in the semantic area (eg:…
Java to PHP Compiler launched on December 12, 2014 with 7 votes and more than 50% of that year's launches.
What it does
In the maker’s words, at launch
I had this crazy idea like some years ago.. I wasn't expecting it be factible, and there's still some semantic problems with this approach Anyways, the whole idea was to take some java source, generate an AST, and output it back as syntactically correct PHP. why? 50% fun + 50% exploration So I have this really basic…
Does a similar job
all alternatives →
Standalone Jdk.compiler, Java Compiler Framework and Tree API2023 · github.com · ▲69With this standalone compiler, you can rely on all Java 11 javac features to be available, even when using newer Java versions. Specifically, this allows you to: - compile code even if your Java environment isn't a full JDK (Java JRE, for example!) - target Java 1.7 for compilation without any warnings or restrictions. - use the Compiler Tree API without resorting to --add-opens trickery that may eventually fail in newer Java releases - build a modified compiler with additional features or custom tweaks I made this after finding that the otherwise superb "jsweet" Java-to-JavaScript…
How to write a tiny compiler2017 · blog.klipse.tech · ▲224Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.
Rust compiler in PHP emitting x86-64 executablesMar 2026 · github.com · ▲66Hi! 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.
My C compiler compiled itself2024 · github.com · ▲275One of the most challenging projects of my life :)
- MTMy Turbo Pascal compiler in JavaScript2013 · teamten.com · ▲101
Joy – a Go to JavaScript compiler2017 · mat.tm · ▲201Matt Mueller's personal website for sharing what I've learned about programming, design, entrepreneurship and life.
More dev tools this month
the category →

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▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 22d ago · openbot.run
Talanoa▲340Hi 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▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 27d ago · corespeed.io
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, December 2014
the whole month →




Clear, effective, mistake-free writing everywhere you type.
Work · 2014 · grammarly.com
