Live data from Hacker News

WordPress on .NET

peachpie.io

21–30 of 174 posts

Re: WordPress on .NET

#21
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.

Re: WordPress on .NET

#22
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.

Re: WordPress on .NET

#23

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 think you might be the first case I've heard of of someone wanting to go from .NET to PHP.

Re: WordPress on .NET

#24
post #11

I don't care about performance, show me if security has improved! (which in the case of Wordpress can't be that hard)

WordPress security is complex.

The core code is OK, security wise. Comparible to similar projects, I guess.

The two major issues are that typically PHP runs with permission to modify the WordPress directory, which is useful for automatic upgrades, but means any exploit in any plugin, theme, etc. instantly becomes, "can replace WordPress".

The other is that all themes and plugins are completely unsandboxed, and the quality is extremely variable.

The permissions thing can be fixed, by running a very stripped down wp-php user with only read access to the code, and only write access to wp-contents/uploads (and a logging dir). Then you do automatic upgrades with wp-cli and (real) cron from a user with write access.

The quality of plugins and themes is not easily fixed.

The API for writing plugins and themes doesn't help. It's archaic, spaghetti, and doesn't have any kind of coherenc. Global functions like wp_is_home(), the_loop(), get_sitename(), etc.

I've come across themes which bundle joomla inside them as they're really joomla themes with a shim.

Re: WordPress on .NET

#25

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.

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

Re: WordPress on .NET

#26

I've been following the peachpie project for a while. The effort they put in is very impressive. They choose to heavily modify the C#/VB compiler (Roslyn) to handle php syntax. Microsoft should be investing time into helping them succeed, it would be great to see the Roslyn compiler platform become more broadly used.

Microsoft is doing quite a bit of supporting, can't complain there :)

Re: WordPress on .NET

#27
post #14

Earlier quoted context omitted.

From their benchmarks page (which looks remarkable) http://www.peachpie.io/benchmarks

Remarkable, but as bleeding-edge tech I think it's disingenuous to include PHP5.6, which is now only on security support. I know many PHP sites run this version and even older ones, but I think the audience for a project like this are PHP7 developers. That said, I was really impressed by the improvement on require performance. The requests/sec also seem to have big gains. I also wonder what security improvements othe…

CLR imposes lot of requirements for an assembly to run, that would definitely improve security esp. when comparing it to a interpreted language.

Re: WordPress on .NET

#28

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 think you might be the first case I've heard of of someone wanting to go from .NET to PHP.

I laughed at that. As much as I still shun MS platforms, I have never heard anything good about PHP as a language other than "it worked and was available at the time". Why someone would migrate in this direction is beyond me ;-) but that's just my opinion of course.

Re: WordPress on .NET

#29
This is amazing and from the comments I've heard that Microsoft is around supporting the development of this? Is there any MS material mentioning this effort? I'm really impressed by your work
Post reply on HN