Ja

Java to PHP Compiler

Hacker News

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: String.format vs sprintf ) that is way out of scope for this hack. Source: https://gist.github.com/eridal/a850a8a665a255b74d2c

Share card

Actual performance

7points
3comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
72%72% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
42%42% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
39%39% 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
28%28% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

It
Iterated Prisoner's Dilemma (in PHP)38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Iterated Prisoner's Dilemma (in PHP)

Hacker News3
I
I wrote a SCSS compiler in PHP53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a SCSS compiler in PHP

Hacker News4
PH
PHP lib for Buffer - bufferapp-php33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PHP lib for Buffer - bufferapp-php

Hacker News3
My
My standalone PHP Debugger68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My standalone PHP Debugger

Hacker News12
Bo
Bootstrap 3 and PHP put together44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Bootstrap 3 and PHP put together

Hacker News1
Ex
Expressjs implemented in PHP50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Expressjs implemented in PHP

Hacker News2
Me
Metaprogramming in PHP without eval. Still evil? Hells yeah it is.47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Metaprogramming in PHP without eval. Still evil? Hells yeah it is.

Hacker News2
AS
AST for PCRE Regex in PHP36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AST for PCRE Regex in PHP

Hacker News2
Me
Method hooking in PHP26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Method hooking in PHP

Hacker News3
Co
Concurrent BDD in PHP57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Concurrent BDD in PHP

Hacker News7