by pornel · 9y ago · 0 comments
I started it because I hoped it would speed up rewrites of projects from PHP to JS, but now that I've actually seen the results, I realised that bad PHP code makes only worse JS (and there's no point rewriting good PHP code).
Still, I think it could be useful for sharing some logic between client and the server, without replacing server-side with Node. This isn't a VM, so it has zero overhead at the cost of being loose with semantic edge cases.
And I find it funny that it now takes 1 line of config to make JS tools work with PHP syntax instead.
atm you have to add `<?php` at the beginning.