Live data from Hacker News

CGI Using Node.js

cgi-node.org

1–10 of 88 posts

Re: CGI Using Node.js

#2
Anyone have any ideas on the performance impact of this vs a typical NodeJS installation? I imagine there's a lot more overhead from starting up the process each time. A pretty cool idea but seems like this loses the benefits of NodeJS, speed and scalability.

Re: CGI Using Node.js

#4

Anyone have any ideas on the performance impact of this vs a typical NodeJS installation? I imagine there's a lot more overhead from starting up the process each time. A pretty cool idea but seems like this loses the benefits of NodeJS, speed and scalability.

It would have been better if implemented under FastCGI which solves the one-process-per-request problem. I guess the intended benefit of the project isn't really the Node eventloop, it's that it allows developers to use the same language on the frontend and backend.

Re: CGI Using Node.js

#5

Anyone have any ideas on the performance impact of this vs a typical NodeJS installation? I imagine there's a lot more overhead from starting up the process each time. A pretty cool idea but seems like this loses the benefits of NodeJS, speed and scalability.

Yes, but don't underestimate the value of penetration into cheaper hosts like DreamHost and Godaddy. PHP has always had quality issues, but survives on its eternal ubiquity, which is in no small part because of the CGI model.

Re: CGI Using Node.js

#6
I like this idea, especially for a replacement if you want a quick, single file script online and don't want to use PHP.

Does anyone know if there is something similar to this but with FastCGI?

Re: CGI Using Node.js

#7
Does it actually use a new node.js process for every request? I thought that node was kinda slow to start up because of the JIT and so forth.

Re: CGI Using Node.js

#10
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 logic.

XHP is really really nice for outputting the contents of an array into HTML (for example..it has many other really nice uses), and it would be very cool to see them do something like that.

Post reply on HN