Open imme64 opened 2 years ago
Hi @sstur,
I was able to create a version of the project which is 100% PHP: js2php-implemented-in-php.tar.gz, invocation: php js2php.php --test
This proves that js2php has the potential to be a fullblown JavaScript engine for PHP. Only problem is poor performance (around 75x slower than NodeJS). I'll open a new issue regarding performance.
Best,
Immanuel
As a Proof Of Concept we could use js2php to transpile itself (including its dependencies) to pure PHP so that it can be used even if no NodeJS is available.
This would
Achieving this would need some effort because we need to implement for example
require()
. But if we would succeed, we would push the project from a pure prototype to a really usable application.