PHP 7.0 Nearing Release, Performance Almost As Good As HHVM
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.
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.
And que the fractal of bad design people
does it still have those retarded function names?
I already switched to NodeJS because of the convenience of one language.
Weekly PHP bashing contest starting in 3...2... Aaaand I was late.
Student Suspended Over Suspected Use of PHP
php is out there, it's everywhere, and if the engine gets 2 to 2.5 times faster, I am grateful.
Php stands for "pretty hard penis". And it does exactly what you think it does. HARD.
It works. It isn't sexy. Who cares? You can write awful programs... Unlike any other language of course It evolves slowly. To paraphrase Tolstoy: "Happy programmers are all alike; every language is unhappy in its own way." Most of us never come across edge-cases and PHP is still getting regularly fixed. But also the tectonic shifts are happening at tectonic speed as they should. So to my mind the repairs and resdesigns are suitably separated and yet both going on.. PHP is here to stay for the next 40 years. Personally I try to nibble with node as it's a completely different mindset, tool chain and opportunity but PHP is a workhorse. We should be pleased to see v7 is emerging. None of us is going to bet on V 7.0.0 but by 7.1 or 7.2 we'll have jumped at our own comfortable pace.
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.
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?
As I wrote in my article about PHP, 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.
Do any of you fuckers develop code?
All i read is conjecture and anecdotes. Oh, that and insults
Php code is, by its very definition, completely unmaintainable.
You do realise php is loosely based on the first version of asp? You know, the tech that ms retired almost 15 years ago.
Php developers are amateurs - even if the idiot population on /. Think otherwise.
I don't think any system where you mix 2 or more languages together is maintainable.
So while the arm chair experts here think php is the shit, it actually is shit. And only an absolute amateur would go near it for anything more than a high school assignment.
Yes I do develop In java - it's a great platform for business. Stellar performance, supported debugging tools, a plethora of libraries, and security that php can only dream of.
Queue uneducated fools shouting down java security because they don't have the analytical skills to differentiate the browser plugin from the sdk or runtime :-)
https://www.youtube.com/watch?...
Some drink at the fountain of knowledge. Others just gargle.
My theory about the HHVM is that you have all this top talent at FB who are forced to either use PHP to work on the core product or they can use other languages but not hang out with the core developers. Thus the HHVM would be much like the JVM in that it would allow for PHP to be end run and other languages could run inside the VM.
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.
I was reading,waiting for your language retort, then I read java
do you actually take yourself serious?
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 is a modern and mature programmming language and has everything you need to write a modern web application. It can easily compete with the others.
To all those PHP-haters: bash and whine whatever you like. The world doesn't care. Look at the statistics: PHP is used much by many. It's here to stay. Grow up and move on.
Myself, I use PHP a lot. I've written my own framework. I really like PHP, because it's easy to use and specially because it's so easy to deploy. Easier than many other languages. I'm really looking forward to what PHP 7 has to offer.
It doesn't have to be like this. All we need to do is make sure we keep talking.
Back to nodeJs development *cracks knuckles*
What happened to PHP 6.0? Are they skipping a version just to one-up Perl?
What you need when building software is a commercial grade tool, that you know how to use. And there is really nothing mayor wrong with PHP 5+ as that tool (for webapps). Its pretty good: that's why its so popular.
So lets start coding software in that pretty good tool you know the best...
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...
it still is untyped and that opens a shitload of attack avenues.
Good news. Try reading the article.
DECLARATIONS & SCALER TYPE HINTS
PHP 7 will allow developers to declare what kind of return type a function is expected to have – similar to argument Type Hints.
In addition, argument type hints and the new return-type declarations now support new scalar types, allowing developers to denote that they’re expecting strings, floats, ints or bools to be passed or returned.
No you don't really get the performance benefits of a strongly typed language. But you do get the ability to knock out those attack venues.
Like any other language that suits his purpose - when well coded!
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, I even write shell scripts with it and been replacing old bash scripts for PHP!
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.
Democracy Now! - your daily, uncensored, corporate-free