News for hackers. Stuff that matters.
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by grumpycanuck on Friday April 30, 2010 @09:21AM (#1308061)
As a long-time PHP developer (12+ years, yuck it up PHP haters) I look at this with a combination of awe and disappointment. Awe that someone would be willing to take on implementing a version of PHP that can run on the JVM much like Quercus. Disappointment because what they are doing is not PHP.

If the goal is to recreate the "let's build a better runtime" situation that exists in Ruby but in the PHP world, that is admirable. But if you really want the project to get any sort of traction, creating almost-PHP isn't the way to go.

If you can't run your existing PHP code in this thing, then what's the point?

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by douglasputnam on Friday April 30, 2010 @01:18PM (#1308760)
Every PHP programmer has lamented PHP's TMA (Too Many Ampersands) design, inconsistent method naming, function parameters order, etc. But PHP is the 800 pound gorilla with 15 years of momentum. It is what it is: a DSL written in C that's good enough at web development.

But you ain't gonna teach that old PHP dog new tricks without creating an entirely new language---in this case a DSL written in Java. When you get finished redesigning PHP, it's not PHP anymore. It's not even JPHP.

BTW, there are already languages that are free of sigils, semi-colons, and braces: Python and Ruby have been there for 15 years. If you need to do web development in those languages, they provide ample tools (Django, Rails, etc.) Both Python and Ruby have been ported to the JVM.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by albertzeyer on Friday April 30, 2010 @02:04PM (#1308904)
You want your existing PHP code working? So what you want is a port of PHP to the JVM.

But that doesn't really solve the problems of the PHP language.

As I understand it, the goal of this project is to solve the main problems of PHP. And that means of course to have it incompatible to PHP code.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by leftnode on Friday April 30, 2010 @10:29AM (#1308238)
I'm in your boat as a PHPer (11 years :)), but I like projects like this. I know you can't use your existing projects in it, but if it gains PHP some more respect from the general programming community, I'm all for it.
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by petercooper on Friday April 30, 2010 @12:12PM (#1308556)
Considering one of the examples demonstrates running a SQL query in the middle of some HTML, I doubt much respect will be gained here.
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by mark_story on Friday April 30, 2010 @12:47PM (#1308666)
Yeah, that's an epic fail of the 'awesome' things this implementation provides. Yeah! more horrible spaghetti code built in to the interpreter.
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by jfarmer on Friday April 30, 2010 @04:10PM (#1309279)
It reminds me of ColdFusion, e.g., CFQUERY.

That is never a good thing.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by hendler on Friday April 30, 2010 @10:25AM (#1308230)
Agree with the above. I've used Quercus in several projects - porting existing code to the JVM seems like a different use case than re-designing PHP.

http://www.caucho.com/resin-3.0/quercus/

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by gorm on Friday April 30, 2010 @12:51PM (#1308684)
Some interesting examples there, but why not use EcmaScript 5 instead of PHP?
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by kree10 on Friday April 30, 2010 @05:35PM (#1309472)
ECMA's a good choice, considering web developers should already be familiar with it, and (I think it's safe to say) it's a far better language than PHP.

A different language running on a different backend means making a clean break with all your old code. But anyone developing PHP has already made a decision to not make a clean break, otherwise he'd be using rails, node.js, django, clojure, catalyst, you name it.

What I'd like (and maybe I'll have to write if it doesn't already exist) is an ECMAScript-to-PHP5 compiler. Targeting the JVM is fine I suppose, but targeting mod_php5.c would mean PHP developers could dip their toes in more easily.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by chewbranca on Friday April 30, 2010 @04:35PM (#1309338)
If you're just looking to run existing php faster, then check out facebook's HipHop: http://developers.facebook.com/blog/post/358