PHP Next Generation
An anonymous reader writes "The PHP Group has put up a post about the future of PHP. They say, 'Over the last year, some research into the possibility of introducing JIT compilation capabilities to PHP has been conducted. During this research, the realization was made that in order to achieve optimal performance from PHP, some internal API's should be changed. This necessitated the birth of the phpng branch, initially authored by Dmitry Stogov, Xinchen Hui, and Nikita Popov. This branch does not include JIT capabilities, but rather seeks to solve those problems that prohibit the current, and any future implementation of a JIT capable executor achieving optimal performance by improving memory usage and cleaning up some core API's. By making these improvements, the phpng branch gives us a considerable performance gain in real world applications, for example a 20% increase in throughput for Wordpress. The door may well now be open for a JIT capable compiler that can perform as we expect, but it's necessary to say that these changes stand strong on their own, without requiring a JIT capable compiler in the future to validate them.'"
And moved to Python instead.
It should have been shot in the paddock.
Mind you at the other end of the spectrum we have the entry from academia "Haskell" that has already completed the course and is back in the stables. Unfortunately they haven't found a way to get it to interact with reality yet as that's an implementation issue.
Feel free to add an analogy to your language pet hate below.
A quick google search points me to one interesting project - "jphpcompiler" - https://github.com/jphp-compil... . PHP on the JVM would be interesting. By leveraging existing Java and other libraries which run on the JVM ( by virtue of running on the JVM ) , PHP could be an interesting choice in Java and/or JVM based frameworks like Play ( Clojure ) or Grails ( Groovy ) or Spring MVC.
https://twitter.com/i_error/status/471584795987021824
Dear php developers. Please tidy up the namespaces and introduce consistency to your naming of functions etc. Pick some rules and STICK TO THEM.
The current code base is a mess and looks really tatty when compared to .Net, Java etc. !
Thanks.
It's so fun reading anything related to PHP in Slashdot as the discussion resamples the late "fuck beta" postings. Full of hate and anger, usually from people who don't even use it (as they use any other language but PHP because they're better).
Java would be a Flying Carp. Invasive, taking over and destroying every ecosystem it gets into.
PHP is more like a Bluegill; a good place to start (fishing or programming) but most people move on to better things.
I've had the misery of suffering with maintaining a few PHP applications over the years. It is, bar none, THE WORST LANGUAGE I have ever used. Even COBOL does a better job of handling the humungous amount of copy-paste code that PHP requires. Even FORTRAN does a better job of error checking before run-time.
Sure, it's popular.
So is McDonald's.
That doesn't mean it's good or good for you.
I do not fail; I succeed at finding out what does not work.
...gets their interns or 3rd parties in the PHP dev team, I have no reason to use it.
. . .and the users would be all: "What're we supposed to do with this snot?"
Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
. . .what happens when bureaucrats and computer scientists procreate.
Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
Why not use Node.js that has already got the wheel (JIT) rather than drilling holes in PHP to fit an axle?
Despite all hatred - and let's face it, PHP is a really strange phenomenon - this is why PHP continues to thrive. The PHP community gets from A to B by the most bizar reroutes across Z, Mary Poppins and f(x)=x^2e^x-2. PHP is a fractal of bad design, but they always seem to focus on the next issue that's simply in the way of getting the next real world job done. I've written a post on that a few weeks ago.
Them checking the performance of Wordpress (one of the large popular CMSes out there, with a really shitty architecture ... like most of its kind) as a benchmark for the foundation of a VM show how 'fast result' oriented the PHP community is. The idea itself of testing like this would seem insane to any serious developer, AFAICT.
Point in case for PHPs insanity that always seems to work out in a strange way: ... sort of like line-numbers, but not quite ... its really crazy ...). If PHP is a fractal of bad design, Typo3 classic is that ^2. It's very difficult to describe, you have to experience it for yourself to fully understand. It's like taking the red and the blue pill at the same time. Seriously.
I've fought it for over 12 years, but now I've finally given in and am working myself into Typo3, a big-league player in the world of PHP Web CMSes. Let me tell you: If you think Wordpress, Drupal or Joomla have an architecture that was designed by chimpansees (I should now, I've deployed Drupal and Joomla professionally and was on the Joomla Bugsquad), Typo3s has one that was designed by amobeas. With TypoScript - the T3 template and config language - they've got the textbook example of an inner platform (think PHP but non-turing complete for configuration and with magic numbers
Anyway, I'm veering off. The point is: ... Although TypoScript is one of the strangest things I've seen in my 28 years of computing, I have to admit. Think of Typo3 as the Vi and Emacs of CMSes, all rolled into one. Yet there are over 2000 official Typo3 agencies here in Germany. Being an online agency basically means being a Typo3 agency over here. What do you say, it's what people want. T3 is a household brand, it has an official association, a neat website and the vibe of "big, complicated and professional" all over it. The customers want it, and they're willing to pay for deployment in T3. Who am I to complain?
Knowing Typo3 is basically job security galore for any web developer in Germany. Period. I've agreed to dive into T3 and am right now scoring more than 60Ã an hour. Being able to edit templates in the CMS Admin area isn't bad either.
PHP is bad, and nobody cares. Its barrier of entry is basically non-existant, security issues be damned, and they have a slew of pointy-clicky stuff for the peddlers to sell to end-customers. All for free. The most succesful FOSS projects are written in it and if the PHP crew are going to stick to their crazy "make it work, then make it beautiful" approach, it's probably going to stay that way for a long time.
My 2 cents.
We suffer more in our imagination than in reality. - Seneca
Despite all hatred - and let's face it, PHP is a really strange phenomenon - this is why PHP continues to thrive. The PHP community gets from A to B by the most bizar reroutes across Z, Mary Poppins and f(x)=x^2e^x-2. PHP is a fractal of bad design, but they always seem to focus on the next issue that's simply in the way of getting the next real world job done. I've written a post on that a few weeks ago.
Them checking the performance of Wordpress (one of the large popular CMSes out there, with a really shitty architecture ... like most of its kind) as a benchmark for the foundation of a VM show how 'fast result' oriented the PHP community is. The idea itself of testing like this would seem insane to any serious developer, AFAICT.
Point in case for PHPs insanity that always seems to work out in a strange way: ... sort of like line-numbers, but not quite ... its really crazy ...). If PHP is a fractal of bad design, Typo3 classic is that ^2. It's very difficult to describe, you have to experience it for yourself to fully understand. It's like taking the red and the blue pill at the same time. Seriously.
I've fought it for over 12 years, but now I've finally given in and am working myself into Typo3, a big-league player in the world of PHP Web CMSes. Let me tell you: If you think Wordpress, Drupal or Joomla have an architecture that was designed by chimpansees (I should now, I've deployed Drupal and Joomla professionally and was on the Joomla Bugsquad), Typo3s has one that was designed by amobeas. With TypoScript - the T3 template and config language - they've got the textbook example of an inner platform (think PHP but non-turing complete for configuration and with magic numbers
Anyway, I'm veering off. The point is: ... Although TypoScript is one of the strangest things I've seen in my 28 years of computing, I have to admit. Think of Typo3 as the Vi and Emacs of CMSes, all rolled into one. Yet there are over 2000 official Typo3 agencies here in Germany. Being an online agency basically means being a Typo3 agency over here. What do you say, it's what people want. T3 is a household brand, it has an official association, a neat website and the vibe of "big, complicated and professional" all over it. The customers want it, and they're willing to pay for deployment in T3. Who am I to complain?
Knowing Typo3 is basically job security galore for any web developer in Germany. Period. I've agreed to dive into T3 and am right now scoring more than 60 Euros an hour. Being able to edit templates in the CMS Admin area isn't bad either.
Bottom line:
PHP is bad, and nobody cares. Its barrier of entry is basically non-existant, security issues be damned, and they have a slew of pointy-clicky stuff for the peddlers to sell to end-customers. All for free. The most succesful FOSS projects are written in it and if the PHP crew are going to stick to their crazy "make it work, then make it beautiful" approach, it's probably going to stay that way for a long time.
My 2 cents.
We suffer more in our imagination than in reality. - Seneca
Everyone is always bashing PHP even when they don't have any good reason for that, it's kind of like it's trendy to bash on World of Warcraft or stuff. Well, I happen to like PHP, I use it in my own stuff all the time. Sure, I don't use any of the more advanced features nor do I maintain a 50k+ codebase, but for my own use it's been great.
See the double post? You can thank beta for that. Mod this one down or turn it off if you are an editor, the one below is the final version.
No more beta for me.
We suffer more in our imagination than in reality. - Seneca
I fail to see the point. Facebook already made HHVM and it's open source. http://hhvm.com/
What do the gain out of it. Why not contribute to HHVM instead?
How about Multi-Threading? I use to be able to do it, now I can't seem to get it to work?! :/
PHP has always been to me the Ikea of programming languages. At some point its not a lamp, you've used up all the pegs for holes that take screws instead but still fit, and your wifes import lamp was done hours ago despite your best efforts.
And if more than 10 people in a room want to enjoy your lamp, the chain comes loose and your cat comes down with the squirts.
Good people go to bed earlier.
Is that thing still around?
I read the title and immediately envisioned Data hacking PHP code on the Enterprise...
... it would be hard to make its APIs much worse.
That is all.
JS is NOT a big contender for PHP, because it isn't the functional equivalent of the double-clawed hammer.
The unwashed masses gravitate to PHP because it is very easy to get something running and imposes almost no restrictions on the developer. Thus, we get nightmares like phpBB and vBulletin.
Yeah, right.
Can't forget about Facebook's hack!!! http://hacklang.org/
(lol)
HHVM and Hack is more than the PHP team will produce even if they're given a decade. But rest assured they definitely won't use it and keep reinventing the wheel, poorly, because of NIH Syndrome.
... done in php. To any language/framework that allows what I've seen, I have only one wish: "Please curl in a corner and die."
I've seen some ads at the bottom of the page even with ads disabled. I think Dice is just working on the big fuck you to disabling ads.
Made me smile, to see the Rifleman's Creed adapted for new purposes.
This is my good code / This is my bug
One is for running / One makes me shrug.
-kgj
In a web application, each page view can run on a separate core.
The difference is that SQL's ternary operator (case when condition1 then value_if_truthy1 when condition2 then value_if_truthy2 else value_if_all_falsey end) has an unambiguous and far more predictable syntax that I find beautiful. Next best would be how ternary operators stack in Python (value_if_truthy1 if condition1 else value_if_truthy2 if condition2 else value_if_all_falsey).
If you're doing complex math with PHP you're doing something horribly wrong.
Then why does PEAR have a class specifically for complex math?
I just use PEAR, no need to reinvent the wheel again.
Speed up PHP? It already runs in a fraction of a second. The database queries, meanwhile, can take many times longer.