I'm trying to find a use case for this. A .NET to php decompiler may be more useful at this point in time.
Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
11–20 of 36 posts
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#12This is really about Peachpie, an open source PHP to .NET compiler. (Edit: the title has now been updated) From the comments on the article, here's a set of benchmarks showing Peachpie with a significant performance advantage over PHP 7 in a number of benchmarks: http://www.peachpie.io/benchmarks . That said, it's still hard to get excited about PHP.
We have a huge PHP codebase we may be interested to bring into the .NET world. I have looked at Peachpie but I wonder how well it works in the real world and what the long term prospects are. Has anybody used it? The PHP code is full of questionable code which somehow works in PHP but I am not sure if it's possible to map PHP's behavior into .NET..
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#13Earlier quoted context omitted.
They did get WordPress at least sort of running on it. That wasn't possible with the first releases of hhvm, so it says something.
It's says they actually get WordPress running before releasing it. Not that I want to undermine project achievements, but WordPress likely going to work even on PHP 5.2.x that almost 10 years old.
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#14Earlier quoted context omitted.
We have a huge PHP codebase we may be interested to bring into the .NET world. I have looked at Peachpie but I wonder how well it works in the real world and what the long term prospects are. Has anybody used it? The PHP code is full of questionable code which somehow works in PHP but I am not sure if it's possible to map PHP's behavior into .NET..
Disclaimer - Peachpie dev. Some of the weird PHP constructs will never work - by purpose. In such case it will be reported in compile-time or at least in run-time. However, there is always a way of slightly changing the original code to make it running on .NET.
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#15Earlier quoted context omitted.
We have a huge PHP codebase we may be interested to bring into the .NET world. I have looked at Peachpie but I wonder how well it works in the real world and what the long term prospects are. Has anybody used it? The PHP code is full of questionable code which somehow works in PHP but I am not sure if it's possible to map PHP's behavior into .NET..
Disclaimer - Peachpie dev. Some of the weird PHP constructs will never work - by purpose. In such case it will be reported in compile-time or at least in run-time. However, there is always a way of slightly changing the original code to make it running on .NET.
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#16Earlier quoted context omitted.
We have a huge PHP codebase we may be interested to bring into the .NET world. I have looked at Peachpie but I wonder how well it works in the real world and what the long term prospects are. Has anybody used it? The PHP code is full of questionable code which somehow works in PHP but I am not sure if it's possible to map PHP's behavior into .NET..
They did get WordPress at least sort of running on it. That wasn't possible with the first releases of hhvm, so it says something.
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#17This is really about Peachpie, an open source PHP to .NET compiler. (Edit: the title has now been updated) From the comments on the article, here's a set of benchmarks showing Peachpie with a significant performance advantage over PHP 7 in a number of benchmarks: http://www.peachpie.io/benchmarks . That said, it's still hard to get excited about PHP.
Disclaimer: PHP core dev. Be careful with microbenchmarks. From my experience, there tends to be very little correlation between performance improvements on microbenchmarks and real applications. If you improve performance on the microbench suite by a factor of two, you definitely will not get a factor of two on real applications -- more likely, it will be something like 2%. Basically, if the benchmark is not testing…
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#18This has nothing to do directly with this blog post, but just wanted to say that Scott Hanselman is probably the best that could have happened to .NET of all things. Better than Linq and async/await together. He's an amazing speaker and his blog is a great resource for everything around .NET. Can highly recommend to watch and follow this guy!
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#19Earlier quoted context omitted.
Disclaimer - Peachpie dev. Some of the weird PHP constructs will never work - by purpose. In such case it will be reported in compile-time or at least in run-time. However, there is always a way of slightly changing the original code to make it running on .NET.
What PHP version is Peachpie targeting?
https://github.com/peachpiecompiler/peachpie/wiki/Peachpie-R...
Looks like PHP 5.4 and 7.1 roadmap goals have been achieved.
Though http://www.peachpie.io/about references Phalanger as the inspiration which apparently got as far as PHP 5.6.
There's also compatibility page that looks useful:
https://github.com/peachpiecompiler/peachpie/wiki/Compatibil...
Re: Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
#20This has nothing to do directly with this blog post, but just wanted to say that Scott Hanselman is probably the best that could have happened to .NET of all things. Better than Linq and async/await together. He's an amazing speaker and his blog is a great resource for everything around .NET. Can highly recommend to watch and follow this guy!