PHP 7.0 Nearing Release, Performance Almost As Good As HHVM 158
An anonymous reader writes: PHP 7.0 RC2 was released on Friday. In addition to the new language features, PHP 7.0 is advertised as having twice the performance of PHP 5. Benchmarks of PHP 7.0 RC2 show that these performance claims are indeed accurate, and just not for popular PHP programs like WordPress. In tests done by Phoronix, the PHP performance was 2~2.5x faster all while consuming less memory than PHP 5.3~5.6. Facebook's HHVM implementation meanwhile still held a small performance lead, though it was consuming much more memory. PHP 7.0 is scheduled to be released in November.
Relevance? (Score:1, Insightful)
Is php even relevant any more?
It seems to be exclusively In the domain of non programmer - the kinds who constantly pump out insecure code.
And boy there is a lot of insecure web apps. I don't run php on a public facing server. For me it's the server version of flash on the desktop. You just know there's another joke just around the corner.
Re: (Score:3, Interesting)
My take on your post is that 1) you caught a glimpse of one or two tiresome platitudes regarding PHP and decided to try play the solidarity card, but 2) you don't do any developing at all because you don't know programming, and 3) you don't do any hosting of any kind, because you don't know anything about that either.
Re: (Score:1)
Shh! Nobody is supposed to know that.
Re: (Score:2, Insightful)
No, it's pretty much a garbage language. Inconsistent, full of insecure pitfalls, goofy syntax and overall completely horrendous. I had the misfortune of dealing with it for years. Never again.
Re: (Score:2)
It gets the job done and makes me money every single day, so honestly, I don't care how inconsistent it is or how silly the syntax seems. I make my house payment with PHP every month and that's the bottom line.
Re: (Score:2, Interesting)
http://githut.info/
Nope. Not relevant at all.
Re: (Score:2, Informative)
Oh please. I work for a VC firm and do due diligence. While the guys doing server-side Java and C# are still talking about frameworks, the PHP guys are typically already supporting thousands or even millions of users. Yes, getting a good, bug-free v2 out the door is a challenge with PHP, most startups fail before even finishing a good v1. You can't get to v2 if you don't finish v1! I don't think the usual estimate that PHP is ten times as productive is far from the truth. For good, solid server-side c
Re: (Score:3)
I would say that nodejs is now a better choice for anything that would be otherwise done with php.
Re:Relevance? (Score:5, Insightful)
I would say that nodejs is now a better choice for anything that would be otherwise done with php.
You know a language really sucks when switching to JavaScript is considered an improvement.
Re: (Score:2)
You know a language really sucks when switching to JavaScript is considered an improvement by one random guy on the internet.
FTFY.
Cost of deployment of Node.js (Score:3)
I would say that nodejs is now a better choice for anything that would be otherwise done with php.
Including cost of deployment, especially on a small slice of a leased server? PHP has long had a deployment cost advantage. It also has some very widely used applications. What Node.js based forum software is better than phpBB? What Node.js based wiki software is better than MediaWiki? And what Node.js based blog software is any good?
Re: (Score:1)
none. node.js is not reliable enough in a production server environment.
Its ok for proof of concept and testing out ideas, but garbage for infrastucture.
I've pulled all our code out of node.js now for our product, just to get something I don't have to watch like a hawk.
PHP is reliable at least.
Re: (Score:2)
As for not being production ready, the Joyent IaaS solution SmartDataCenter [github.com] heavily uses Node.js
It is used on many public / private cloud including Joyent public one..
Re: (Score:2)
What Node.js based forum software is better than phpBB? What Node.js based wiki software is better than MediaWiki? And what Node.js based blog software is any good?
1) None.
2) None.
3) None.
They don't exist because writing these applications in Hode.js would be stupid and pointless.
(I personally prefer SMF to phpBB, but both of them are pretty capable forum systems.)
Re: (Score:2)
Node.js forum software => NodeBB [nodebb.org]
I use it and IMHO it is pretty decent
Node.js blog software => Ghost [ghost.org]
Re: (Score:2)
Why the fuck would you want that?
Because not everybody who wants to put up a website has the money for a dedicated server.
How is that relevant when deciding what platform to use for a new application?
Because you may want to develop your application to connect to an existing application's authentication framework or as an extension for an existing application.
Re: (Score:2)
Sucks to be them
What would you recommend instead for those for whom it sucks to be?
Re: (Score:1)
The fact is that PHP works. It gets the job done. Most everything else is irrelevant to me.
The fact is that in the last 10 ~ 12 years, PHP has made me hundreds of thousands of dollars and hasn't cost me anything. It works, I like it, The End.
If these nancy-boy frou-frou programmers turn their nose up at it, good for them. But PHP is making me money every day, allowing me to goof off and live a life without of relative leisure, while they have to drag their "elite-coder" asses into work each day and grumble
PHP Bashing (Score:2)
Re: Relevance? (Score:1)
So to avoid the "server version of flash" you use what? Javascript? Straight html? Wait, let me guess: Java?
Re: Relevance? (Score:4, Insightful)
Re: Relevance? (Score:1)
you are whitewashing. ALL the stuff done in php is horribly insecure. unfit to be operated if not locked tightly into some small intranet.
here they hacked an entire cloud provider, hetzner, by means od some php dreck gui tool.
Re:Relevance? (Score:5, Informative)
Sure. Lots of folks use PHP for writing quick server code, because it makes light work of prototyping things. If you know what you're doing, it is a solid programming language, offering a fairly clean, C-like syntax, without the horror of Perl's backwards instructions and bare regular expressions, the OO bloat of Java, the need to install additional interpreters (problematic on shared hosting services), etc.
Re: (Score:2)
Yeah, I almost made a comment about the vast quantities of PHP code out there, but decided against it because so much of that code probably shouldn't be out there. These days, before I bring in any piece of PHP software, I tend to spend at least a day or two doing a cursory security audit in which I look for SQL injection and shell command argument passing vulnerabilities. I usually find some.
But yeah, at least from a jobs perspective, the community, codebase, support, and ease of hiring are what makes a
Re: (Score:3)
What a lot of people fail to recognize about PHP when they rag on it is its immense framework support.
The problem is, the frameworks are awful too.
Having said that Node.js has taken over the relevancy of languages such as Ruby in later years (or competitors to PHP).
Yes, Node.js is a competitor to PHP in sheer misguided awfulness, and a bloody-minded insistence on doing everything in the worst possible way. But that is not, for most of us here, a reason to use it.
Re: (Score:2)
At first my web stack was: 10% JavaScript, 60% PHP, 10% Apache, and 20% PostgreSQL.
Now it's more like: 30% JavaScript, 10% PHP, 20% Apache, and 40% PostgreSQL, as I learned more about those other layers.
I try to limit the PHP to just a thin connection layer to the database:
$db = new PDO;
$q = 'select a fairly refined query that does all the calculation and filtering';
$q = $db->prepare($q);
$q->execute($v);
and as a templating language, using short tags and the alternate syntax:
<table>
<? foreach
Re: Relevance? (Score:1)
eh? C# is a great language.
Re: (Score:2)
.NET Framework isn't C#. It's a framework. I've never seen Mono used in a real production environment (Not that it can't be, it's just not nearly as common). I've never heard of DotGNU.
Which version of Python did you think was better than C#? The 2.x version, or the 3.x version that's mostly incompatible? Or are you using IronPython or the LLVM versions?
Re: (Score:1)
Their engineering degree? Well, I suspect they don't have one.
Re: Relevance? (Score:2)
C# is so dead they released a new version of it in July. I'm not sure why you think it's dependent on IE because I use Chrome for my web dev and it works fine.
Re: (Score:2)
Ruby has some issues, but it is superior to PHP in every possible way. And for the most part, vastly superior.
Re: (Score:2)
Re: (Score:2)
They don't actually know. The best you can hope for are some empty platitudes.
Re: (Score:2)
From my perspective, regular expressions outside the context of a string leads to, among other things, all sorts of fun for IDEs, where they can't properly do brace matching because you have a brace in a regex and they don't know what to do with it. The string syntax is much less problematic because they invariably follow bog-standard language parsing rules, which are much easier to handle than parsing regular expressions (where the rules are inconsistent from one language to the next in subtle ways, with
Re: (Score:2)
If someone uses brackets as delimiters, your code has to also parse character classes correctly.
Re: (Score:2)
It is legal in most natural languages, and is quite common in non-imperative sentences. However, for imperative sentences (commands), putting the action before the condition is not the normal way that people speak in most natural languages, precisely because it leads to mistakes. For example, in a high-stress situation, if one person shouts to another "Shoot her if she moves", there's a high probability that the other p
Re: (Score:3, Insightful)
It's more like visual basic... Easy for people to learn, so attracts a lot of novice programmers who write poor code.
Re: (Score:2)
Re: (Score:1)
Is php even relevant any more?
2003 called, they want their lame "PHP is for teh losers" joke back.
The fact is that PHP has made me hundreds of thousands of dollars over the last few years without costing me a cent. I have dozens of websites churning away earning money, and they all run on PHP. (A classic LAMP stack, actually.)
Feel free to rag on PHP to your heart's content, but coding in PHP has allowed me to work from home for years, do what I want, retire early, and enjoy my life....while you probably have to go into work and slave aw
Re: (Score:1)
Re: (Score:2)
This non-programmer of 20 some years makes 6 figures doing php. i learned c/c++ in college, wrote research and defense contracting apps in them, learned python and worked for companies everyone has heard of, etc. But PHP to my chagrin has been where the work was for me and ive had to keep doing it - but its one saving grace has been better and better strict options / hinting that help make better code. PHP is finally catching up.
Re: And que (Score:2)
Re: (Score:2, Informative)
Cue if you're playing snooker or pool
... or if you're calling for someone to begin their performance, as in the OP.
Re: (Score:2)
Sorry, just reading The Politics of Star Trek article.
DonÂt forget Q, the omnipotent person/race.
Re: (Score:2)
"Que" means nothing, unless you're speaking spanish.
Or eating deliciously prepared meats cooked with fire and smoke.
Six problems, some of which PHP 7 addresses (Score:4, Interesting)
As I wrote in my article about PHP [pineight.com], some very simple coding standards analogous to those described in Douglas Crockford's JavaScript: The Good Parts will work around most of the stuff described in the "fractal" article. This left six distinct points, some of which PHP 7 addresses to an extent.
Re: faster php? (Score:2, Interesting)
A lot of the language is just a thin wrapper around various libraries, which is why so many functions are like that. Newer functions and classes are much cleaner, but there is a bunch of old junk still in there for compatability.
Used properly it is a nice language. Unfortunately most people don't bother to really learn it and just copy and paste code. A big flaw in the language is that it let's you get away with really awful code.
NodeJS (Score:1)
Re: NodeJS (Score:5, Informative)
So from an entirely awful language and environment to just an almost entirely awful one?
Re: NodeJS (Score:5, Insightful)
But but it is webscale with the complexities of assembler with the efficiency of Javascript [youtu.be]
Mongo DB is web scale (Score:2)
https://www.youtube.com/watch?... [youtube.com]
Re: (Score:2)
No Only Erlang reborn as OTP psychobitch is both webscale and kickass for hipsters [youtube.com]
Re: NodeJS (Score:1)
How's learning Mandarin going then?
Re: (Score:2)
I went down that route. However, I really missed being able to write code like this:
1 do this
2 do that
as opposed to
do_this(function(err,res) { if (err) {something..} else { do_that(res) })
Once your backend gets complicated, may the lord help you.
If you backend is simple, it doesn't matter what language you use.
There is a far superior language you can use on both ends: scala - scala.js is really nice
Student Suspended Over Suspected Use of PHP (Score:1)
Student Suspended Over Suspected Use of PHP [bbspot.com]
Re: (Score:3)
I hate PHP, but that doesn't mean I go around waving my dick. PHP is like VB6, it sucks but a boatload of code is written in it.
Re: PHP - 21st Century COBOL (Score:2)
Re: PHP - 21st Century COBOL (Score:2)
Re: (Score:2)
PHP works well, if you know what you're doing. (Score:5, Insightful)
I've written several commercial grade, industry wide web applications in PHP... can't consider a time when someone has hacked the site, jacked the site, or basically screwed it over because of some piss poor LANGUAGE flaw.
A great developer is what matters.
And I've seen my fair share of perl code that was completely stupid, filled with security holes and bugs up the ass.
Honestly, I've been using PHP for twelve years, and Java, C++, and C# for about as much... and frankly wonder WTF sort of mind it takes to even create a shitty application in the first place.
Am I an exception to the rule? Probably. But I'm excited for PHP 7. It works... if you know how to make it work.
I've seen enough shit websites built in PHP, and ASP, and perl, and C#, and JSP/Java... WTFever... and frankly, its not the language that's the problem.
Re:PHP works well, if you know what you're doing. (Score:4, Insightful)
nail
head
Re:PHP works well, if you know what you're doing. (Score:4, Funny)
When all you have is a hammer, every problem starts to look like a thumb.
Re: (Score:1)
PHP has/had some genuine shitty misfeatures like register_globals, default error_reporting to the client, and magic_quotes.
If you've been writing code long enough, you've probably forgotten the awful stuff you wrote as a kid.
You become a great developer with years of experience and, in my opinion, treating it like engineering where you always keep in mind how to have the software fail safely; and treating it like people are *actively trying* to make your software break and covering your inputs and outputs a
Re: (Score:1)
Want to keep your skills 1337 and exclusive? You need a language with a predisposition to ideologically bureaucratic code and a ton of scaffolding that ensures even simple tasks take several days paid consultancy time. PHP is not for you, my insecure coding buddy.
Want to get a new start-up to market rapidly without an enormous team? Choosing something simple that gets out of your way gives the best chance of success.
Worried about the lack of strong typing causing bugs? Ask yourself this - how many productio
Performancce is not what the HHVM is about (Score:4, Insightful)
Also working on the VM would appeal to the academic pseudo cred that they want while working at the very heart of FB. In theory this end run will allow these top tier developers to go to conferences and say, I am a core developer at FB, I work on the key features, but I am not a pathetic hack using PHP, I am a god programming in (Haskell, Lisp, Scala, Go, Rust, R, Erlang, etc) and thus I am beyond mere mortals who program in the pedestrian languages that are so far beneath me that can barely think about them.
All this without spitting in Zuckerberg's face and telling him his life's work was done like a two bit hack using the tools of a nube.
But some of the wind might be taken out of their sails if PHP 7 comes along and eats at the main metric that they can use to justify this end run. I suspect that somehow stats will be pulled out that show that under carefully crafted circumstances that lowly mortals can barely understand that HHVM is so much better than PHP 7 that it completely justifies the massive efforts that have gone into HHVM.
The real test will be to see if some organizations such as Wikipedia then dump HHVM to return to the less complex deployment environment found in PHP 7.
Re: (Score:1)
Interesting theory, what do you base it off of?
Specifically, developing hhvm for academic pseudo cred so they can sit at the hipster's conference table. Almost nobody gives a shit about the languages you listed. (Well, I can see Go maybe getting traction...)
In my opinion hiphop and hhvm were justified because php is so goddamn slow.
Re: (Score:2)
Then you get XML people who think that JSON is basically satan's breath. Or Python 3.x people who think that Python 2.7 people should all be thrown into a pit. But PHP is about the least "academic" la
Alternate theory (Score:2)
Facebook uses PHP so it's developers don't get really great job offers from other companies, as PHP pay doesn't generally go as high as pay for things like Java.
It's not about the language (Score:2)
This endless PHP bashing is getting a bit sad. Sure, earlier versions of PHP did have some bad things, but with PHP 5 it's very easy to create solid applications. You still may not like PHP, that's fine. In that case the only wise thing to do is to choose something else. But for any badly written application in PHP 5 I'm 100% sure that the programmer is to blame, not the language. Yes, looking at all the other modern programming languages these days, that I think that's the case for all of them. But PHP 5 i
PHP 6.0? (Score:2)
What happened to PHP 6.0? Are they skipping a version just to one-up Perl?
Re: (Score:2, Informative)
PHP 6 was supposed to be the version after PHP 5.2 (or was it 5.1?).
However, there where huge snags related with the unicode, which was delaying everything over and over again.
The end result was that PHP 6 functionalities where cut down and released in subsequent 5.x release in more manageable release steps.
PHP is a solid language, i just find it infuriating that after all this years, they still didn't realized that to make it a proper language they will need to do some code cleanup in the core of it, speci
Works like a charm (Score:1)
I've been using PHP in web development for 10 years now and I can say it has very good features along with some flaws but, once again, just like any other language.
People read "PHP" and think automatically in(secure) phpBB or Joomla but you can write your own PHP code/framework/project, you know. Just make sure if it fits your needs first before you say it doesn't do the job. Maybe you just chose the wrong set of tools for the job.
Damn,
Re: (Score:2)
I was reading,waiting for your language retort, then I read java
do you actually take yourself serious?
I laughed too, especially at the "stellar performance" bit. Ya gotta admit, that was funny.
Re: (Score:2)
The first version of ASP (Active Server Pages) was RELEASED in 1996 after a couple years of betas, and the first version of PHP as we know it (PHP/FI 2.0) wasn't until 1997. There was "Personal Home Page Tools (PHP Tools)" in which PHP came from dating back to 1995, but it wasn't a stand alone language like we know it.
As someone who was actually using ASP in 1994, I can definitely say it predated PHP, even if you consider "Personal Home Page Tools (PHP Tools)" being announced in 1995.
Re: There is no perfect tool, but it doesn't matte (Score:1)
php was specifically designed to make the internet a insecure place and all your propaganda wont change this.
it still is untyped and that opens a shitload of attack avenues. some folks like this, others are less interested in war...