Live data from Hacker News

WordPress on .NET

peachpie.io

161–170 of 174 posts

Re: WordPress on .NET

#161
post #154

I can't file an issue on GitHub but the project is missing the license and the WordPress standard copy seems to have been removed.

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

Re: WordPress on .NET

#162
post #144
post #116

Earlier quoted context omitted.

PHP and the overall quality of average WP code?

How can that be any worse than the average quality of sharepoint code?

Static typing and C# disallow many of the typical PHP code patterns I have seen in the wild.

Re: WordPress on .NET

#164

Earlier quoted context omitted.

PDO is disabled by default, and was even on default installs of 5.6 last I checked.

Most Linux/BSD distributions seem to separate out "core" PHP extensions (those that are distributed with php source, not via peel) into individual packages. So while PDO may not be installed by a plain `apt-get install php5` or similar, I doubt the now deprecated `mysql` extension is installed by "default" in those scenarios either. Edit: this approach also means that the PDO extension in php.ini will be commented, b…

Yeah — 'mysql' wouldn't be installed either on FreeBSD if you just install php. So typically hosting providers install all the extensions.

Re: WordPress on .NET

#165
post #51

Earlier quoted context omitted.

The benchmarks http://www.peachpie.io/benchmarks show peachpie outperforming PHP7 easily by 100x.

Unfortunately those benchmarks don't compare against HHVM :/.

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.

Re: WordPress on .NET

#166
post #162
post #144

Earlier quoted context omitted.

How can that be any worse than the average quality of sharepoint code?

Static typing and C# disallow many of the typical PHP code patterns I have seen in the wild.

There are a lot of creative ways around strict typing in c#, I spend my days dealing with them. I just finished working on a section that managed to combine the speed of c# with the expressiveness of assembly...

Re: WordPress on .NET

#167

Earlier quoted context omitted.

They use something called HHVM, which is a PHP compiler. http://hhvm.com/

And Hack, their language for HHVM that's basically "static types bolted on to PHP". http://hacklang.org

Hack is more than that. Hack solves every little stupid mistake PHP has as a language. It is a good language developed by smart people, has rules to avoid pitfalls and rules to make things more certain. It retains only the syntax of PHP, but in strict mode, hack can be compared to any other good language.

Re: WordPress on .NET

#168

This is a great way for Microsoft to show the potential of and build awareness for .NET core, I hope they are helping these guys. The nuget thing is inefficient, MS should plot a path to make npm a first class citizen in all ms tools.

NPM is already supported by default for quite some time in VisualStudio.

Re: WordPress on .NET

#169

Earlier quoted context omitted.

He's quoting Jurassic Park. The idea is that the technology does something that would normally be considered highly unusual or even ridiculous to consider, like running a very complicated code base through a transpiler to make it run on another tech stack. Generally speaking, this kind of comment would be a compliment. Sort of along the lines of "wow, that's absolutely crazy, you did something no one would have thoug…

I don't care what he's quoting and to see this as 'light-hearted' (without any further elaboration on the part of the OP) is extrapolation. FWIW the comment in the movie is also a negative one. > John Hammond: I don't think you're giving us our due credit. Our scientists have done things which nobody's ever done before... > Dr. Ian Malcolm: Yeah, yeah, but your scientists were so preoccupied with whether or not they…

You are far too serious a person.

I actually stand by the sentiment. Wordpress is a virus, and like jQuery, it has negatively impacted the development scene of the language is lives in. PHP, on the cusp of becoming a more respectable language (I freely admit my love for PHP, to this day, even though I primarily work in Java and Python now), was taken over by WP "developers" who flooded the market and sell themselves as engineers when all they can do is copypasta a few wordpress idioms.

I don't hate on wordpress itself, its a fine, though early on troubled codebase. The predatory community it has created, the security issues it continues to create, and the low-barrier to entry that floods the market with a ton of really bad code isn't something I would want to bring into another language's world.

And here's where the light-hearted part comes in... I know that projects like these would NEVER actually cause that kind of effect on their language because nobody would take it seriously... but the analogy of what COULD happen (you know, fictional, like ridiculous unrealism of the base concept of the movie) was apt.

I fail to understand why in a world so caught up in negativity and rigidness, people chose to not allow themselves to enjoy or notice light-hearted humor, and actively defend their stance against it, as if somehow eliminating light hearted jest is a benefit to a world already buried in such negativity...

Re: WordPress on .NET

#170

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'm rewriting a legacy ASP application to PHP right now, and this isn't my first. Though the code is not .NET, .NET was the obvious upgrade path yet it was decided that moving to PHP was preferable for a variety of reasons. You already know the non-technical reasons (inexpensive Linux servers, easy to find devs, MySQL licensing vs MS SQL Server licensing, etc) but PHP 7 is extraordinarily performant and (as a VIM user I cannot believe that I'm saying this) with a good IDE such as PhpStorm it is an absolute pleasure to write and maintain.
Post reply on HN