News for hackers. Stuff that matters.
Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by cemerick on Friday April 30, 2010 @09:04AM (#1308030)
Looks like an experiment, someone attempting to innovate.

From Rémi Forax's announcement on the JVM Languages Group (http://groups.google.com/group/jvm-languages/browse_frm/thre...):

It's as far as I know the first reboot of an existing language :)

The idea is to keep the spirit of PHP but change its syntax to natively support XML, SQL, JSON, XPath/XQuery, Perl5 regex, etc.

Embedding those DSL provides several benefits:

- better readability

- variable values are correctly escaped by default (no SQL injection, etc)

- integration into a common runtime type system which avoid runtime conversions

Unlike PHP wich is based on C runtime, PHP.reboot is based on the JVM which natively supports unicode, exceptions and provides a runtime optimizing environment.

PHP.reboot uses a gradual type system (not yet finished) and will soon get a runtime compiler thanks to JSR 292 API. The interpreter already use this API to speed up method calls and member access.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by jacquesm on Friday April 30, 2010 @09:42AM (#1308112)
> It's as far as I know the first reboot of an existing language :)

What an absolute nonsense. As if nobody has ever re-implemented a language that already existed, it's maybe a first for PHP but it's more the rule than the exception that there are dialects of programming languages.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by derefr on Friday April 30, 2010 @04:07PM (#1309271)
Can you provide examples? Besides Lisp (which isn't considered "a language" so much as a taxonomical classification to them), what language has 2+ dialects where both are in active development and use? (Not to suggest JPHP is in active use.)

I think the only good example I can come up with is Visual Basic vs. Visual Basic for Applicaions.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by jacquesm on Friday April 30, 2010 @04:42PM (#1309353)
I have a harder time finding languages that only have a single implementation.

C++, C, Basic (numerous implementations), Python, Cobol, you already mentioned lisp. There's lots more but I think that suffices.

Re:Reboot PHP: keep the philosophy, improve the syntax (PHP ... by jrockway on Friday April 30, 2010 @04:04PM (#1309259)
See also, Ruby and Perl.