HN user

pchp

356 karma

Peachpie - the PHP compiler for .NET.

peachpie.io

Posts55
Comments33
View on HN
www.youtube.com 2y ago

Show HN: Analyzing and visualizing how US presidential candidates think [video]

pchp
2pts0
www.peachpie.io 5y ago

PHPUnit tests running on .NET 5, in Visual Studio

pchp
1pts0
www.peachpie.io 5y ago

Targeting a library for both PHP and .NET

pchp
2pts0
apps.peachpie.io 5y ago

Show HN: A catalog of PHP applications running on .NET Core

pchp
2pts0
apps.peachpie.io 5y ago

Catalog of PHP apps running on .NET

pchp
2pts0
youtu.be 5y ago

WordPress Ported to .NET

pchp
1pts1
www.peachpie.io 6y ago

How clean is the code that runs 80% of the Internet?

pchp
1pts0
www.peachpie.io 6y ago

Compiling PHP's Eval() to .NET

pchp
73pts9
www.peachpie.io 7y ago

Self-Contained PHP App on .Net Core

pchp
2pts0
wpdotnet.com 7y ago

Show HN: WordPress Running on .Net Core

pchp
12pts7
www.peachpie.io 7y ago

Using C# in PHP projects and vice versa

pchp
1pts0
www.peachpie.io 7y ago

Running PHP on an Android device

pchp
1pts0
www.peachpie.io 7y ago

The Ultimate WordPress Cache

pchp
2pts0
www.peachpie.io 8y ago

Running WordPress on .NET Core with Plugins

pchp
2pts0
www.peachpie.io 8y ago

Distributing PHP Applications as NuGets, DLLs or EXEs

pchp
1pts0
www.peachpie.io 8y ago

MediaWiki running on .NET Core

pchp
3pts2
try.peachpie.io 8y ago

Compile PHP to .NET online

pchp
19pts10
www.peachpie.io 8y ago

Benchmarking WordPress on PHP Vs.NET

pchp
2pts0
www.peachpie.io 8y ago

Writing a WordPress Plugin in C#

pchp
3pts0
www.hanselman.com 8y ago

Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core

pchp
86pts35
www.peachpie.io 9y ago

Optimize PHP applications with static type analysis

pchp
4pts0
www.peachpie.io 9y ago

PHP scripting in .NET

pchp
3pts0
www.peachpie.io 9y ago

WordPress on .NET

pchp
404pts164
twitter.com 9y ago

VSCode Extension to Compile PHP to .NET Core

pchp
1pts0
www.peachpie.io 9y ago

Interoperating between PHP and .NET

pchp
2pts0
www.peachpie.io 9y ago

Increase security by compiling PHP to .NET

pchp
2pts0
www.peachpie.io 9y ago

Peachpie PHP compiler to .NET 0.4.0-p

pchp
1pts0
www.peachpie.io 9y ago

How to use C# in PHP

pchp
2pts0
www.peachpie.io 9y ago

How to Continuously Test PHP and .NET Core on Linux

pchp
2pts0
www.peachpie.io 9y ago

Syntactic Sugar with a PHP Compiler

pchp
1pts0

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.

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.

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.

WordPress on .NET 9 years ago

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.

WordPress on .NET 9 years ago

We disabled issues for now, but thanks for pointing this out. Just added the license to the peachpie-wordpress repository.

WordPress on .NET 9 years ago

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" :)

WordPress on .NET 9 years ago

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.

WordPress on .NET 9 years ago

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.

WordPress on .NET 9 years ago

Hi, thanks for your comment. Please email us at info at iolevel dot com and we can take it from there.

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.

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.