Live data from Hacker News

Facebook Porting PHP To JVM

nerds-central.blogspot.com

1–10 of 68 posts

Re: Facebook Porting PHP To JVM

#4
Phalanger ( http://phalanger.codeplex.com/ ) is an implementation of PHP running on the CLR with a fairly good compatibility story and sometimes much better performance.

Phalanger worked well even without using the DLR (dynamic language runtime) so a JVM implementation shouldn't be a massive undertaking (except for the lexer and parser parts...)

Re: Facebook Porting PHP To JVM

#5
post #3

It's the summer of 2018. Facebook shares drop to 17 cents as their PHP to ASM compiler project nears completion.

No reason it should take that long. The article suggest 6 person years - which could mean 6 people for 1 year.

Just like nine women can have a baby in one month?

Re: Facebook Porting PHP To JVM

#8

This is all great but... why?

My reaction exactly. I have great respect for the JVM, but PHP could simply be replaced by JavaScript for example.

It seems easier to me to port PHP to Rhino or node.js than to bring PHP to the JVM. Especially considering CoffeeScript, PHP just can't keep up.

Re: Facebook Porting PHP To JVM

#9
I guess someone must really love PHP, though I'm slightly confused as to why.

If you're going to make such a massive undertaking anyway (it's not just the new runtime, all existing code will have to be re-tested and re-debugged), why not sink the man-hours into putting it into a new language better suited to the task from the start?

Re: Facebook Porting PHP To JVM

#10
post #9

I guess someone must really love PHP, though I'm slightly confused as to why. If you're going to make such a massive undertaking anyway (it's not just the new runtime, all existing code will have to be re-tested and re-debugged), why not sink the man-hours into putting it into a new language better suited to the task from the start?

i understand your thinking but in your opinion what language is suited for this particular task? personally i doubt there's a platform that's suitable for this scale, one has to create his own, and thats what facebook's doing.
Post reply on HN