News for hackers. Stuff that matters.
Re:An open question (rant) about Node.js by EGreg on Friday March 14, 2014 @12:39PM (#7400010)
In PHP and other scripted web server languages? Please show me how it's done.

PHP does preforking first of all. You have about 30 "threads" sitting around, able to handle 30 clients. This is STILL not the same as evented programming, which lets you send out these requests and wait.

Speaking of -- have you ever heard of evented i/o?

Let me put it this way ... threads and workers are good for handling incoming requests (one worker per request). But for outgoing requests, it's nice to have evented i/o!

Re:An open question (rant) about Node.js by bascule on Friday March 14, 2014 @01:00PM (#7400148)
http://celluloid.io/

https://github.com/jruby/jruby/wiki/Concurrency-in-jruby

> Speaking of -- have you ever heard of evented i/o?

Yes, I wrote a Ruby wrapper to libev before Ry wrote Node, and this coroutine abstraction to get rid of the async gunk, but Ry left that part out:

http://revactor.github.io/philosophy/

Re:An open question (rant) about Node.js by EGreg on Friday March 14, 2014 @04:13PM (#7401508)
Got anything for PHP?
Re:An open question (rant) about Node.js by bascule on Friday March 14, 2014 @04:46PM (#7401743)
I don't care about PHP