7 ms·
Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
- dustinmoris 9y agoThis 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!
- darylfritz 9y agoHe also comes across as very humble on his Hanselminutes podcast. Great guy.
- danesparza 9y agoAgreed. He and Scott Guthrie used to make an amazing 1-2 punch when they were both working in the ASP.NET area of Microsoft.
- sebazzz 9y agoUnfortunately Scott is all cloud and Azure these days and very little programming spirit is left.
- dhd415 9y agoThis 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 http://www.peachpie.io/benchmarks. That said, it's still hard to get excited about PHP.
- maxxxxx 9y agoWe 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..
- tyingq 9y agoThey did get WordPress at least sort of running on it. That wasn't possible with the first releases of hhvm, so it says something.
- SXX 9y agoIt'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.
- tyingq 9y agoMy point was that WordPress is a large codebase and exercises a fair amount of php syntax and built-ins.
- TazeTSchnitzel 9y ago5.2.x is old, but that doesn't mean it's simple or easier to implement.
- jakubmisek 9y agoYou're right, 7.0 for example deprecates/removes some dirty practices that are hard to implement in .NET
- maxxxxx 9y ago'Sort of running' and stable enough to deploy into production are different things. I really want this to work but I am a little nervous about committing to it.
- wolco 9y agoI'm trying to find a use case for this. A .NET to php decompiler may be more useful at this point in time.
- dbattaglia 9y agoTo me it seems similar to running Ruby on the JVM (JRuby). Perhaps you like php but have a lot of .net code to interop with. I bet writing business logic in C# and web tier code in php could possibly be a satisfying experience.
- frik 9y agoA dotNet asp.net (Webforms, etc) to PHP compiler would be more useful. Now that asp.net is end of life, these sad people are looking for ways to migrate their aging asp and asp.net code base to elsewhere. The only supported option is the incompatible new asp.net core on dotNet core - out of the jungle into the jungle.
- j_s 9y ago> asp.net is end of life Even Silverlight is not officially dead until 2021 so I'm not sure I'm clear on your terminology (vs. https://support.microsoft.com/help/17455 https://support.microsoft.com/help/17455 ). Just for fun I dug up the "Mainstream Support End Date" for ASP.NET on .NET 4.5.2: 10/9/2018. -- Starting from https://www.asp.net/support https://www.asp.net/support Many parts of ASP.NET are a part of the Microsoft .NET Framework, these include ASP.NET Web Forms, Controls, Modules, Handlers and more. For more information see .NET Platform Support. Then at https://www.microsoft.com/net/support https://www.microsoft.com/net/support The Support Lifecycle information for all versions of .NET Framework can be seen on the Microsoft Product Lifecycle site. Then at https://support.microsoft.com/en-us/lifecycle/search?alpha=.net%20framework https://support.microsoft.com/en-us/lifecycle/search?alpha=.... For more information, please visit the .NET Framework Support Lifecycle Policy FAQ. Then at https://support.microsoft.com/help/17455 https://support.microsoft.com/help/17455 Support for .NET 4.5.2 follows the lifecycle policy of the parent operating system. It is supported as a Windows component on the latest required operating system update for Windows Vista SP2, Windows 7 SP1, Windows Server 2008 SP2, Windows Server 2008 R2 SP1, Windows 8.1 Update, Windows Server 2012, and Windows Server 2012 R2. Then at https://support.microsoft.com/en-us/lifecycle/search?alpha=Windows%20Server%202012%20R2%20Standard https://support.microsoft.com/en-us/lifecycle/search?alpha=W... Products Released: Windows Server 2012 R2 Standard Lifecycle Start Date: 11/25/2013 Mainstream Support End Date: 10/9/2018 Extended Support End Date: 10/10/2023 Service Pack Support End Date: [empty] Notes: Mainstream and Extended support for this product has been extended to provide customers with the standard lifecycle transition timeline. For up to 6 years of additional support beyond Extended Support, please see the Premium Assurance website.
- velmu 9y agoAnother interesting option is TaguaVM, whose lead developer is now employed by Automattic (the company behind WordPress). More information here: https://symfony.fi/entry/exotic-php-implementations-hippyvm-jphp-tagua-vm-peachpie https://symfony.fi/entry/exotic-php-implementations-hippyvm-...
- j_s 9y agoGlad Scott noticed this. It's definitely appealing (at least in theory) for people worried about self-hosted WordPress security. Most recent HN discussion dug into the tech and also the rationale behind transitioning in either direction: https://news.ycombinator.com/item?id=13753445 https://news.ycombinator.com/item?id=13753445 (404 points/164 comments/Feb 2017)
- gator-io 9y agoI believe the edge cases in this would make you wish you never heard of it.