Live data from Hacker News

WordPress on .NET

peachpie.io

101–110 of 174 posts

Re: WordPress on .NET

#101
post #10
post #9

Earlier quoted context omitted.

What's the benefit over running a standard PHP-Interpreter? Haven't used PHP or WordPress since 2010 so I might have missed something but to me this looks more like a tech demo then something one would use in a production environment.

I remember from the PHP on Java that there were huge performance benefits. So large PHP hosts should see benefits.

Tried the TechEmpower plaintext benchmark using Peachpie: Requests/sec: 305,612.35

https://github.com/benaadams/PeachpieBenchmarks

Re: WordPress on .NET

#103
post #82

I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.

I would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages

I think "better" in this case is relative.

Yes, there are objectively better languages than PHP in terms of design and consistency, but even I'll admit it's difficult to match the shear volume of FOSS libraries, applications, and the huge number of people who know it if you're targeting the web.

Besides, if Peachpie expands the .NET ecosystem to include PHP's, isn't that a win for developers who may be stuck with that platform? I'm not a .NET developer, so I'm sure to be missing something here.

Re: WordPress on .NET

#104
post #82

I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.

I would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages

Yet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.

Re: WordPress on .NET

#105
post #82

I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.

I would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages

Yet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.

Re: WordPress on .NET

#106
post #82

I work at a large company and we are starting to branch out into other languages. the problem is most of our infrastructure in .NET. Something like this would be really cool as it would allow us to utilize PHP while not asking too much of infrastructure team. I might put in an OSS approval request for this.

I would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages

Yet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.

Re: WordPress on .NET

#107
post #82

Earlier quoted context omitted.

I would suggest a number of other languages you could consider that are better languages than PHP. https://en.wikipedia.org/wiki/List_of_CLI_languages

Yet half the web runs PHP. Why? PHP offers good functionality out of the box. Unlike these languages where you will need a hundred-thousand dependencies to build a cms. That is also why porting PHP to .net is not as simple as porting any of these.

Even more than half. Over 80%: https://w3techs.com/technologies/history_overview/programmin...

Re: WordPress on .NET

#108
post #85

Earlier quoted context omitted.

While I do know that Azure is owned by Microsoft I'm not so sure on why it's such a valid argument. In the end it's not like they're actively trying to ruin languages other than C# on their servers? Especially since that would ruin it for a lot of customers?

I would guess that .NET is more optimised on Azure, whereas PHP is not. So you're comparing an optimised installation of .NET against an unoptimised installation of PHP. In general, a benchmark saying "compares various metrics" is pretty meaningless.

I know, but is there any proof of this? And how can we be sure that the .NET environment is better optimised than the PHP environment? I would find it weird for them to shoot themselves in the foot like that. Since if someone were to make a decent blog post that showed proof they'd only have C# programs on Azure...

This all being said they're pretty transparent with their benchmarks. They supply all the code that they've used and are even comparing it to another project which aims to do the same.

I guess I'm just a bit angry because people are just saying "It's unfair" while they can easily do the tests themselves and then call someone out for it.

Re: WordPress on .NET

#109
post #3

This seems to be built on an open-souce PHP->CLR compiler called Peachpie[1]. Interesting project. I don't have any PHP codebase that I still maintain but looking forward to trying it with some scripts I've written back in the days. I wonder if it would be faster than PHP 7 - which is already very fast (ok, just found these: http://www.peachpie.io/benchmarks ). [1]: http://www.peachpie.io/ [edit] If the author is loo…

Just noticed a similar comment below - the openssl library which PHP is strugling with with every update. Peachpie uses the one in OS through the .NET being updated e.g. by Windows Update. So maybe "most secure" is too strong, but it is definitely more secure.

Never had any problems with PHP and openssl. Did I miss something or is this specific to the windows platform? (It's been a while since I updated PHP on a Windows system the last time).

Re: WordPress on .NET

#110
post #85

Earlier quoted context omitted.

I would guess that .NET is more optimised on Azure, whereas PHP is not. So you're comparing an optimised installation of .NET against an unoptimised installation of PHP. In general, a benchmark saying "compares various metrics" is pretty meaningless.

I know, but is there any proof of this? And how can we be sure that the .NET environment is better optimised than the PHP environment? I would find it weird for them to shoot themselves in the foot like that. Since if someone were to make a decent blog post that showed proof they'd only have C# programs on Azure... This all being said they're pretty transparent with their benchmarks. They supply all the code that the…

It's less about being unfair, more about it lacking much value as a benchmark.

The context of the parent to which I originally replied was suggesting that .NET was 100x faster than PHP 7. So I'm pointing out that claim is rather like saying "I'm faster than Usain Bolt". You're right that I don't think the original article was making such a claim.

Post reply on HN