Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any ports or alternative implementations of the node.js platform with JavaScript engines other than V8?

node.js is an open source server-side JavaScript platform based on Google's V8 JavaScript engine. It has been rapidly gaining popularity and importance for couple of years now.

Now node.js is just a platform. In essence which JavaScript engine to use is just an implementation detail and any JS-engine could've been used, or even an abstraction to work with various JS-engines.

Joyent probably chose V8 because it's open source, has favourable licensing terms, and is usually the fastest JS engine out there (but I believe it's been overtaken at times by other engines).

Given that it's a good thing to have multiple different but compatible implementations of many things that might be called "open standards", such as JS engines, web browsers, compilers for programming languages, etc; surely it's also good to have multiple implementations of a server-side platform like node.js

For example there are JavaScript engines that run on just about every operating system and hardware, but V8 only exists for a couple of them. It even turns out that Microsoft is promoting node.js for Windows Azure even though it depends on a major rival's work and even though they have their own JS engine which can compete with V8 for speed.

If any such ports have begun I would be very interested in following their progress to monitor whether node.js might become an open standard.


• I realize node is not standardized like JS and browsers are and that it's evolving very rapidly, but that never stopped anyone scratching an itch. • If there are more than one port I'm not asking for opinions on which you think is better or which is more popular, this is not a poll question. • I'm also not shopping for a node.js implementation, I'm interested in whether node.js or something like it might be universally adopted as a platform, or whether it will remain in the hands of a single company.

like image 677
hippietrail Avatar asked Jan 07 '13 00:01

hippietrail


People also ask

CAN Node JS use other engines than V8?

No. The current node. js binary cannot work without V8. It would have no Javascript engine and thus no ability to run code which would obviously render it non-functional.

What ports can I use for Node JS?

It doesn't truly matter, but there are a few things to take note of. Port 80 is the standard HTTP port (unencrypted web connection). Port 443 is the TLS/SSL port (HTTPS - encrypted connection). There are all kinds of other ports, like 22 for SSH (git, remote access, etc), 21 for SMTP (email), 389 for LDAP, etc.

Why does Google use the V8 engine for Node JS?

It provides a runtime environment for the execution of JavaScript code. The best part is that the JavaScript engine is completely independent of the browser in which it runs. This is the feature that led Node. js designers to choose the V8 engine to power the framework, and the rest is history.


1 Answers

Yes, node.jar running on Nashorn engine on the JVM:

https://groups.google.com/forum/?fromgroups#!topic/nodejs/750fF6ruAdY

Would be very nice if it works out.

like image 146
7zark7 Avatar answered Sep 28 '22 01:09

7zark7