News for hackers. Stuff that matters.
Re:The new PHP by stevoski on Tuesday March 04, 2014 @09:15AM (#7340240)
I often wonder why a PHP killer hasn't yet been created.

I don't mean a Ruby or another vastly different language.

I mean a language similar in approach to PHP, but with the gotcha's removed, some order and consistency introduced into the API, and a few changes to the defaults. Open source, free, and on all major OS's.

Re:The new PHP by phillmv on Tuesday March 04, 2014 @09:21AM (#7340271)
Because any version of PHP that removed gotched and made the APIs consistent would break compatibility - and at that stage you're pretty close to moving to a different ecosystem in the first place.

Look at Py3 vs Py2.

At the end of the day, the way I see it, the true advantage of PHP was its lower barrier to entry. Now that this has mostly been resolved via PaaS hosting, it seems to me we're moving to a word where Node is the new default, because Javascript.

Re:The new PHP by mercurial on Tuesday March 04, 2014 @09:17AM (#7340247)
How many products gained market share with a slogan like "we're like $this_free_other_product, but cleaned up, incompatible and without libraries"?
Re:The new PHP by oblio on Wednesday March 05, 2014 @07:56AM (#7346647)
SVN. It actually won via a killer library/app - TortoiseSVN.

But it was cleaned up, and mostly incompatible - after all all the commands had changed from cvs to svn :)

A cleaned up PHP would be interesting but it would need a truly killer app. Basically make a PHP clone except for the bad parts. I'd say that the killer app would be a very to use framework that provided various security best practices already built in.

And a PHP clone would need a 0 installation process - no messing around with shell commands or root access. Just copy your .phpclone files and you're set to go.

Re:The new PHP by whichdan on Tuesday March 04, 2014 @09:19AM (#7340262)
Some people have tried forking PHP, and the general response is mediocre at best.

The big thing PHP has going for it is the huge amount of open source software, and the number of webhosts which support PHP by default. Most of the webhosts can barely keep PHP updated, and the ones who don't, justify it by wanting to avoid breaking backward compatibility with open source software.

Getting widespread adoption for a PHP alternative would be a serious feat.

Re:The new PHP by prostoalex on Tuesday March 04, 2014 @04:36PM (#7343360)
Re:The new PHP by eddd on Tuesday March 04, 2014 @09:16AM (#7340245)
check what PyPy did (or is doing with PHP).
Re:The new PHP by uolot on Tuesday March 04, 2014 @09:24AM (#7340289)
Could you please explain it a bit or provide a link?
Re:The new PHP by chrisguitarguy on Tuesday March 04, 2014 @09:48AM (#7340447)
http://morepypy.blogspot.com/2012/07/hello-everyone.html

> I'm proud to release the result of a Facebook-sponsored study on the feasibility of using the RPython toolchain to produce a PHP interpreter. The rules were simple: two months; one person; get as close to PHP as possible, implementing enough warts and corner cases to be reasonably sure that it answers hard problems in the PHP language. The outcome is called Hippy VM and implements most of the PHP 1.0 language (functions, arrays, ints, floats and strings).

Re:The new PHP by uolot on Tuesday March 04, 2014 @09:51AM (#7340467)
Thanks, seems very impressive
Re:The new PHP by acomjean on Tuesday March 04, 2014 @10:13AM (#7340620)
HipHop its Facebook sponsored just in time compiler for php. HHVM (Hip Hop Virtual Machine). My understanding is its 95%ish compatible with most php. They're working using framework unit tests to get the percent higher. http://www.hhvm.com/frameworks/

https://github.com/facebook/hhvm

Re:The new PHP by dagw on Tuesday March 04, 2014 @09:25AM (#7340297)
Do you mean HipHop?