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.
HN user
pchp
Peachpie - the PHP compiler for .NET.
peachpie.io
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.
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.
That's an awesome idea. Will do!
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.
Which nightmare? Maybe we can fix it. To answer your second question - yes, that's exactly what we're planning :)
Thanks! Actually, we have this feature planned on our roadmap, it just hasn't been implemented yet.
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.
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.
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.
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.
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.
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.
We disabled issues for now, but thanks for pointing this out. Just added the license to the peachpie-wordpress repository.
Check out Ben Adams' benchmarks at https://github.com/benaadams/PeachpieBenchmarks
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" :)
Thanks for this, will fix asap.
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.
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.
Microsoft is doing quite a bit of supporting, can't complain there :)
Hi, thanks for your comment. Please email us at info at iolevel dot com and we can take it from there.
He does, he's just being humble.
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.
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.
Yes, but HHVM is a transpiler to C++, whereas Peachpie compiles into C#.
Computing Pi with Peachpie: blog.peachpie.io.
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 :)
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.
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.
This.