News for hackers. Stuff that matters.
Re:Node.js Advisory Board by netcraft on Thursday October 23, 2014 @02:00PM (#8499664)
node is tied to v8 correct? if so, why? are there technical reasons that node cannot be made to work on spidermonkey or rhino, or is it that v8 has supplied underlying tech that node depends on and the same would have to be done in the other engines? It seems like a full blown node/npm running on the jvm would be useful...
Re:Node.js Advisory Board by tracker1 on Thursday October 23, 2014 @03:13PM (#8500121)
Node is a bridge from v8 to libuv with some additional boilerplate. npm runs on top of node for package management.

Even if this were less coupled, there are binary modules within npm that are also coupled with node and v8 in order to build against.

There were some spidermonkey experiments with node, that could run against it, but the modules in npm, specifically platform specific modules (ranging from bson to sqlite and beyond) that are tethered beyond javascript (v8 specific) that wouldn't work.

I don't know that it would bring that much to the table... one could do a bridge similar to what EdgeJS does with node and .Net that could work. It wouldn't be Rhino/Nashorn specifically, but might be worthwhile.

Re:Node.js Advisory Board by Excavator on Thursday October 23, 2014 @03:24PM (#8500183)
You did have luvmonkey¹, and spidernode².

1: https://github.com/creationix/luvmonkey

2: https://github.com/zpao/spidernode

Re:Node.js Advisory Board by y0ghur7_xxx on Thursday October 23, 2014 @02:56PM (#8500027)
> It seems like a full blown node/npm running on the jvm would be useful...

sounds almost like http://openjdk.java.net/projects/nashorn/

Re:Node.js Advisory Board by tootie on Thursday October 23, 2014 @03:06PM (#8500090)
Nashorn is a JavaScript interpreter which would make it a competitor to V8 or SpiderMonkey. Node is a framework that is tightly tied to the V8 implementation. Untying node from V8 would let it run on Nashorn or any other JavaScript interpreter.
Re:Node.js Advisory Board by ksherlock on Thursday October 23, 2014 @02:30PM (#8499849)
native modules (written in C rather than javascript) can be rather intimate with v8. Sure, they could be intimate with another js engine but they would need to be updated.
Re:Node.js Advisory Board by city41 on Thursday October 23, 2014 @02:08PM (#8499707)
libuv is the other major piece of Node, it'd probably need to be ported to the JVM in some fashion. I don't think there's any real technical limitations preventing a JVM based Node-esque platform, just no one's taken it on.

https://github.com/joyent/libuv

Re:Node.js Advisory Board by mcs on Thursday October 23, 2014 @06:06PM (#8501014)
http://vertx.io/ aims to be very similar in architecture if I recall correctly.
Re:Node.js Advisory Board by htilford on Thursday October 23, 2014 @02:22PM (#8499798)
The full blown node running on the JVM is called http://vertx.io/
Re:Node.js Advisory Board by netcraft on Thursday October 23, 2014 @02:38PM (#8499897)
if you search for vert.x on HN you see a ton of comments and activity about it 2-3 years ago but it seems to be largely ignored in the last year or so. It seems it has lost whatever popularity it once had - do you think thats a fair assessment? The idea seems nice - a polygot application framework sounds like the ideal way to use the right tool for the job.
Re:Node.js Advisory Board by jared314 on Thursday October 23, 2014 @02:56PM (#8500023)
> It seems it has lost whatever popularity it once had

Popularity is always a problematic metric for platform evaluation, because the programming community generally has a very short attention span. I would attribute the lack of marketing to the previous license fight, work towards platform stability of version 2.x, and work on the upcoming version 3.0.

> a polygot application framework sounds like the ideal way to use the right tool for the job.

Vert.x is not completely polyglot. It supports many languages, but they all must compile to JVM byte code to work within the platform's event-loop/thread-pool management. So, the Javascript must run on Rhino or Nashorn, the Ruby must run in JRuby, the Python must run in Jython, etc.

Re:Node.js Advisory Board by cwmma on Thursday October 23, 2014 @03:05PM (#8500082)
There isn't really except somebody has to do it, TJ had mentioned that as an idea for something post 1.0.0