Node.js is Backwards
blog.ankurgoyal.com
Node.js is Backwards
1–10 of 90 posts
Re: Node.js is Backwards
#2This is what I thinking when reading all the discussions about Node.js (mainly here, at HN).
Disclaimer: I don't program in JS, and I won't touch it without six feet pole (read: code generator from some higher-level strongly-typed language).
Re: Node.js is Backwards
#3Re: Node.js is Backwards
#4Re: Node.js is Backwards
#5Re: Node.js is Backwards
#6What are some good web libraries for Erlang?
Re: Node.js is Backwards
#7But how's Node.js "backwards"?
It seems to me that the author has picked on one statement by one individual, and turned that into a link-bait.
Re: Node.js is Backwards
#8Sure, it's the reverse of goroutines, which allow you to do easy asynchronous programming using synchronous code.
Re: Node.js is Backwards
#9Unless you write your own Objective-C http server and run it on Mac OS X Server (it's not that hard, I've done it), this isn't very useful for Web programming. However, if you're comparing the languages / frameworks themselves (you can use all three to code command line tools, for example), GCD becomes a very seductive option.
GCD works by throwing code blocks (obj-c closures) into queues, and letting the runtime do its magic. You can have it execute code synchronously, asynchronously, or in parallel.
GCD will optimize and distribute your blocks the the available CPU cores. You can even enumerate using blocks, and instead of doing loop iterations one by one, it'll distribute them to the cores in parallel.
[1]: http://en.wikipedia.org/wiki/Grand_Central_Dispatch [2]: http://developer.apple.com/library/ios/#documentation/cocoa/...
Re: Node.js is Backwards
#10It seems like most people are using nodejs for the web, and nodejs includes a library for HTTP. What are some good web libraries for Erlang?
Webmachine, "A REST-based system for building web applications": https://bitbucket.org/justin/webmachine/wiki/Home
See also: http://www.google.com/search?sourceid=chrome&ie=UTF-8...