Live data from Hacker News

Node.js is Backwards

blog.ankurgoyal.com

1–10 of 90 posts

Re: Node.js is Backwards

#2
Article is quite refreshing, given booming Node.js popularity.

This 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

#7
OK fine, Duncan might not have chosen the best words when comparing Node to Erlang.

But 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

#9
Speaking of concurrent programming and parallelism. If you're not into functional programming, check out Apple's Grand Central Dispatch[1] and Objective-C Blocks[2].

Unless 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

#10

It 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?

Erlang HTTP server: http://www.erlang.org/doc/apps/inets/http_server.html

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&#3...

Post reply on HN