hook
hook copied to clipboard
Compile PHP to .NET using Phalanger
It would be :boom:AWESOME:bomb: to compile PHP to .NET using Phalanger.
Things to note:
- Phalanger doesn't support PHP Traits yet, there is an issue open here: https://github.com/DEVSENSE/Phalanger/issues/42
- Illuminate components uses Traits, removing it is not the best option.
- Since PHP code will be compiled, we should not rely in any configuration defined in them. Maybe every configuration should be defined through environment variables, via
web.config.
Probably there is more surprises ahead.
What will be the benefits of compiling to .NET? I see a lot of potentials issues (like the ones you mentioned) and I'm wondering if the gains are worth the cost.
If it's performance improvements maybe we can focus on keeping hook compatible with hhvm? (https://travis-ci.org/doubleleft/hook/jobs/43302119)
@Crash--
That's more of a business thing than performance itself, we have restrictions with some customers to run inside Windows / .NET. Allowing them to simply drag & drop files into IIS folder would be great, and will cause less troubles for our team.
Currently hook runs on Windows / IIS, but only with php.exe interpreter installed on it.