Re:Node.js vs Erlang: SyncPad's Experience
by simonw on Friday December 03, 2010 @01:45PM
(#1966971)
JavaScript isn't a "client" language - it's a language designed to be embedded in a host system, which is exactly how Node.js uses it. Server-side JavaScript has been around since Netscape Application Server back in the late 90s.
Re:Node.js vs Erlang: SyncPad's Experience
by gnaritas on Friday December 03, 2010 @01:46PM
(#1966977)
> It just that JavaScript is a client language
No, JavaScript is a language, it's been used on clients and servers for quite a few years now.
Re:Node.js vs Erlang: SyncPad's Experience
by jister on Friday December 03, 2010 @01:55PM
(#1967010)
...and it's quite clear that using it on the server is not that efficient compared to other languages that were designed to run on the server. The article proves that point.
Re:Node.js vs Erlang: SyncPad's Experience
by gnaritas on Friday December 03, 2010 @09:42PM
(#1968284)
I'm afraid you've confused a language with a particular virtual machine that runs it. That's like criticizing CSS because Internet Explorer implements it badly. The article proves nothing other than one particular JavaScript VM isn't as efficient as Erlang, not exactly a big surprise considering that's not what the VM was written for.
Re:Node.js vs Erlang: SyncPad's Experience
by daleharvey on Friday December 03, 2010 @01:58PM
(#1967024)
the language has very little to do with efficiency or suitability for server / client side.
Re:Node.js vs Erlang: SyncPad's Experience
by sespindola on Friday December 03, 2010 @05:01PM
(#1967604)
There's no such thing as "client" or "server" languages.
Turing-complete languages like Javascript can be used for any purpose, regardless of its most common application.
Someone has even written a webserver in PostScript: http://www.pugo.org:8080/
Javascript is particularly well suited to evented style programming because it has a very simple support of first class functions.
Re:Node.js vs Erlang: SyncPad's Experience
by richcollins on Friday December 03, 2010 @05:11PM
(#1967632)
I think that he meant to say that V8 wasn't designed for long running processes like servers. In the browser it starts up, executes some code and then shuts down. Keep state around for a long time tends to lead to issues that take time to find / fix.
Re:Node.js vs Erlang: SyncPad's Experience
by cloudhead on Friday December 03, 2010 @01:38PM
(#1966948)
It has absolutely nothing to do with the language.
Re:Node.js vs Erlang: SyncPad's Experience
by jister on Friday December 03, 2010 @01:45PM
(#1966970)
Oh but it is otherwise people would be using JS to move robots.
EDIT: For all those Node.js zealots, thanks for downvoting.