Live data from Hacker News

CGI Using Node.js

cgi-node.org

11–20 of 88 posts

Re: CGI Using Node.js

#11
I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

Re: CGI Using Node.js

#12
This is a pretty cool project. Does anyone know if a copy of the node binary is made for each request? My concern is that if it's ~10MB on every request that could become problematic.

It looks from the code that it runs your JS through it's own virtual machine, though. I can't imagine funnelling Javascript through Javascript through Node being worth while.

Re: CGI Using Node.js

#13

This might be a good time to post the link to Facebook's XHP https://www.facebook.com/notes/facebook-engineering/xhp-a-ne... I've been using XHP at work and love the improvements it has made to the new code we are writing. Posting this might not seem relevant, but the examples of "replacing php with javascript" show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business log…

> show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business logic

You seen jsx?

Re: CGI Using Node.js

#14

I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

Agreed, headline is for marketing purposes, but it means that folk stuck with an environment where they'd otherwise be forced to use PHP have a choice not to use it.

Re: CGI Using Node.js

#15
post #14

I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

Agreed, headline is for marketing purposes, but it means that folk stuck with an environment where they'd otherwise be forced to use PHP have a choice not to use it.

Which marketing purposes, first thought that comes to mind is "from bad to even worse"?

Re: CGI Using Node.js

#17
This might be a really bad question that is just as applicable to Node.js in general, but doesn't this get confusing distinguishing between the server-side and client-side aspects?

Re: CGI Using Node.js

#18

This might be a good time to post the link to Facebook's XHP https://www.facebook.com/notes/facebook-engineering/xhp-a-ne... I've been using XHP at work and love the improvements it has made to the new code we are writing. Posting this might not seem relevant, but the examples of "replacing php with javascript" show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business log…

> show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business logic You seen jsx?

Oh, I love JSX.

Re: CGI Using Node.js

#19

I don't see why "replace PHP" is needed in the title other than linkbait. This is just a CGI dealy for Node. Even the article says "It can run along side PHP."

Because a large section of the php ecosystem is cgi and inline HTML. That was part of the original appeal and the reason it endures on budget hosts.
Post reply on HN