30 ms·
Why would you compile to PHP when you could compile to native machine code, or run directly in a VM? This isn't the browser where we have a constrained environm
by AndyKelley 13y ago
Why would you compile to PHP when you could compile to native machine code, or run directly in a VM? This isn't the browser where we have a constrained environment.
- jamesbritt 13y agoI think the idea is you can target PHP so as to write code that is compatible with a particular Web development ecosystem while avoiding PHP syntax. For example, if I had Wordpress site running and needed to write a plugin or an extension I'd rather do it in something other than PHP. I've not used Mammouth so I don't know if plays out nicer than just plain PHP, but I like the idea.
- randartie 13y agoIf you already have a project that uses php and can't migrate it all to a more favorable language. You can use some language that compiles to php and just include this compile into your build step.