News for hackers. Stuff that matters.
Re:“Why are you using Node.js rather than PHP?” by bungle on Saturday May 25, 2013 @05:01PM (#5768814)
Node is better for real-time web in my opinion. That's why, although I look forward nginx + lua in that space.
Re:“Why are you using Node.js rather than PHP?” by tmzt on Saturday May 25, 2013 @06:56PM (#5769191)
Not sure where nginx and lua fit into real time, as in main loop and callbacks from network sockets, Nginx's Lua support seems to be more request-oriented, executing a block of code in response to a request.
Re:“Why are you using Node.js rather than PHP?” by mcantelon on Saturday May 25, 2013 @07:00PM (#5769201)
Yeah, if someone digs Lua then using Nginx in conjunction with something like Luvit (https://github.com/luvit/luvit) might be the way to go.
Re:“Why are you using Node.js rather than PHP?” by tmzt on Saturday May 25, 2013 @08:01PM (#5769412)
Okay, I was wondering about the Lua-in-Nginx case. Using a Lua implementation of something like node.js would certainly work.
Re:“Why are you using Node.js rather than PHP?” by bdcravens on Saturday May 25, 2013 @05:35PM (#5768946)
Not really related. In this situation, the author is basically just serving a website based on some dynamic content.