Earlier quoted context omitted.
The problem is that fibonacci was a bad choice in your example and it proved nothing. It is fairly easy to scale node with multiple processes. As long as you don't have a long running (such as fibonacci) operation. If you do have tasks like that, process outside node and check for completion. Like how Tasks work in Google App Engine. Also, most other web stacks will discourage you from running a 30s fib on a thread p…
> Also, most other web stacks will discourage you from running a 30s fib on a thread processing web requests. This isn't specific to node. Difference being, with other stacks a request running for 30s will have little impact on the rest of the machine. With node, the whole server gets stuck, not just that precise request and the machine resources necessary to perform the computation (or whatever). The fib example is…
Node.js cures cancer
51–60 of 99 posts
Re: Node.js cures cancer
#52It should be noted that, with PyPy, the Python example executes in 3.924s.
Re: Node.js cures cancer
#53Earlier quoted context omitted.
Wait, I think I've missed something because that response seems overly dismissive. How is offloading CPU-intensive stuff to a worker system not getting it done?
because you dont fix everything with another layer of indirection. add in some more queuing (which as we know never has a problem) just to ger around 'no threads' seems stupid.
Re: Node.js cures cancer
#54IMHO i think node.js sucks because it forces you to manually pass callbacks around. can't it remember my call site for me and use coroutines or call/cc or yield or something? even fork() exists on UNIX (or pthread_create()). why is passing callbacks around the answer? it's like using GOTO.
http://onilabs.com/stratifiedjs https://github.com/0ctave/node-sync
Re: Node.js cures cancer
#55guys guys guys. you do realize ted is trolling us all right (go look at his twitter @dozba right now. I think he is having a great time). he is a pro at this ( http://teddziuba.com/2011/07/the-craigslist-reverse-programm... ) Also if his thoughts on node.js don't annoy you enough go take a look at his archive: http://teddziuba.com/archives.html . He blogs/trolls/thinks about NoSQL, OS X, twisted/tornado, python, queu…
Those new to NodeJS will still read this trolled post and find real gems of info here. So all is not lost.
Re: Node.js cures cancer
#56It should be noted that, with PyPy, the Python example executes in 3.924s.
Re: Node.js cures cancer
#57guys guys guys. you do realize ted is trolling us all right (go look at his twitter @dozba right now. I think he is having a great time). he is a pro at this ( http://teddziuba.com/2011/07/the-craigslist-reverse-programm... ) Also if his thoughts on node.js don't annoy you enough go take a look at his archive: http://teddziuba.com/archives.html . He blogs/trolls/thinks about NoSQL, OS X, twisted/tornado, python, queu…
Re: Node.js cures cancer
#58Re: Node.js cures cancer
#59Earlier quoted context omitted.
because you dont fix everything with another layer of indirection. add in some more queuing (which as we know never has a problem) just to ger around 'no threads' seems stupid.
um...the whole thing with asynchronous event-based processing is that you can (ideally) dispense with threads for many use cases.
In a classic thread-based system, it's okay if a single page takes a bit longer (e.g. >1 sec) to render if it's within your user's line of expectation.
You can't do that here because you'll block all the others.
But any decent developers knows that, so he takes the advantages Node.js offers and fixes the disadvantages that come along with it. Big deal.
Is this discussion really only about the scalability tagline? Some taglines are misleading, really?
Re: Node.js cures cancer
#60As a cancer survivor, just wanted to let you know that the poor taste exhibited here is pretty sad. When you want to make your point next time, use a title that doesn't include something that kills people. Thank you.