HNHacker News
TopNewBestAskShowJobs

pchp

356 karma · joined March 6, 2016

Peachpie - the PHP compiler for .NET.

peachpie.io

submissionscomments
pchp··on Show HN: WordPress Running on .Net Core
Yes, themes are almost certainly working, but some plugins might not if they use functions not yet implemented. Sometimes there are also bugs in the compiler still, it's only in version 0.9.
pchp··on Show HN: WordPress Running on .Net Core
There are plugins that can't be compiled yet, but otherwise no limitations, unless a plugin requires you to change the PHP source code while the site is live. This isn't allowed in wpdotnet due to security reasons.

Laravel is quite close to being run, Symfony should follow soon after. Mediawiki is already tested and runs.

pchp··on Show HN: WordPress Running on .Net Core
Maybe it should be rephrased, but if you just want to setup WordPress on your server, the sources to WordPress and all plugins are still available in the original format somewhere, but they're not sitting on your server.
pchp··on The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie
That's an awesome idea. Will do!
pchp··on The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie
PeachPie doesn't allow this. We will enable the option once on-the-fly compilation will be implemented, but this is really really poor practice and we highly discourage the use of it.
pchp··on The Whole of WordPress Compiled to .NET Core and a NuGet Package with PeachPie
Which nightmare? Maybe we can fix it. To answer your second question - yes, that's exactly what we're planning :)
pchp··on MediaWiki running on .NET Core
Thanks! Actually, we have this feature planned on our roadmap, it just hasn't been implemented yet.
pchp··on Compile PHP to .NET online
Not disagreeing with you. Somebody posted the usecases below (https:/www.peachpie.io/usecases). The most common usecase is basically a legacy site in PHP that wants to/has to migrate to .NET. Reasons can include connecting PHP to .NET modules, performance enhancements, security issues that .NET doesn't have to worry about. There are other possible usecases though, like producing/consuming NuGets from PHP codes, distributing PHP apps sourcelessly, being able to run PHP apps on any platform or OS, extending massive PHP frameworks with C# modules, for instance. And then some funky exotic ones like crating games/apps/IoT software in PHP.

For most people (not saying it's your case) it's just a matter of not being that close minded and understanding that different companies or devs might have different language preferences. Or just to look outside their current box of thinking and see that any of the above might be useful for someone.

pchp··on Compile PHP to .NET online
Depends if you mean this tool or the compiler in general. I'd recommend distancing yourself from your possible prejudices against either language, taking a step back and looking at it objectively. You won't be able to argue against the fact that a massive chunk of the internet is written in PHP. You'd also be hard pressed to disagree that .NET is an architecturally superior and highly robust language with a very good tooling and service ecosystem. You can make the connection.
pchp··on Compile PHP to .NET online
Like someone below already answered, it's actually compiled to MSIL and what you're looking at is decompiled C#. All PHP functions have been reimplemented in .NET.
pchp··on Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
It was running with modifications at the time, but now runs unmodified. I suggest to get in touch with the team to discuss your specific case at info at iolevel dot com.
pchp··on Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core
The previous version of Peachpie, Phalanger, had several clients with huge codebases who successfully used it to migrate their apps or interoperate with C#. Peachpie works the same way.
pchp··on WordPress on .NET
We will produce these benchmarks soon, but HHVM is pretty difficult to configure and we have not focused on optimizing our compiler much yet, so the performance is likely to change drastically over the coming months.
pchp··on WordPress on .NET
We disabled issues for now, but thanks for pointing this out. Just added the license to the peachpie-wordpress repository.
pchp··on WordPress on .NET
Check out Ben Adams' benchmarks at https://github.com/benaadams/PeachpieBenchmarks
pchp··on WordPress on .NET
Hard to say. We want to test it thoroughly before releasing version 1.0. Also, we are still missing a few key functions/constructs of PHP, such as eval() or PDO. A rough timeline would be "a few months" :)
pchp··on WordPress on .NET
Thanks for this, will fix asap.
pchp··on WordPress on .NET
We haven't benchmarked WordPress yet, as we haven't even started doing any optimization work. It's faster than expected though, but we'll produce a proper benchmark soon.
pchp··on WordPress on .NET
We made two appearances on the Channel 9 show "On .NET" and one on DotNet Rocks. They also mentioned it a few times on some blogs.
pchp··on WordPress on .NET
Microsoft is doing quite a bit of supporting, can't complain there :)
pchp··on WordPress on .NET
Hi, thanks for your comment. Please email us at info at iolevel dot com and we can take it from there.
pchp··on Running PHP in .NET with Peachpie
He does, he's just being humble.
pchp··on Peachpie vs. PHP microbenchmark - Computing Pi
Thanks for your comment. You are right about the fact that we obviously heavily optimized specifically for this microbenchmark. However, Peachpie's architecture is designed in such a way that enables us to optimize most processes and features fairly easily. It would be quite surprising if entire applications ran 6x as fast as they would using regular PHP, but it is not inconceivable.
pchp··on Computing Pi with Peachpie (PHP Compiler to .NET)
Depends, parts of the code are based on MS Roslyn, parts on Phalanger. It's been a few years in the making, let's put it that way.
pchp··on Computing Pi with Peachpie (PHP Compiler to .NET)
Yes, but HHVM is a transpiler to C++, whereas Peachpie compiles into C#.
pchp··on Peachpie – PHP Compiler to .NET, Part 2
Computing Pi with Peachpie: blog.peachpie.io.
pchp··on Peachpie – PHP Compiler to .NET, Part 2
Well. PHP 7 has a completely reworked opcode cache and many other tweaks that increase its performance across pretty much all applications tested (including the Zend framework itself according to Zend). With that said, however, as we mentioned earlier, we will not shy away from the comparison. We are working towards a performance benchmark that will compare Peachpie and PHP 7. But as we haven't focused on performance optimization yet at all, we don't expect Peachpie to outdo PHP 7 quite yet. Give us a few days/weeks and we'll publish the first benchmarks. We're curious as well :)
pchp··on Peachpie – PHP Compiler to .NET, Part 2
It doesn't make much sense actually. Comparing Peachpie-powered PHP5 and PHP7 doesn't have all that much value. With that said we are going to do it anyway in the next week or so, but we expect PHP7 to be faster. The real value comes from comparing PHP7 with Peachpie-powered PHP7.
pchp··on Peachpie – PHP Compiler to .NET, Part 2
Absolutely no worries. You can try out whatever you want for free. Several large projects have been built using Phalanger over the years, including Wordpress for instance.
pchp··on Peachpie – PHP Compiler to .NET, Part 2
This.
Page 1 of 2Next →