'. '

AvatarJS

From APIDesign

(Difference between revisions)
Jump to: navigation, search
Current revision (14:52, 15 July 2020) (edit) (undo)
(Speed)
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
-
[[AvatarJS]] is a re-implementation of [[NodeJS]] on top of the [[JVM]]. [[JDK]]8 comes with [[Nashorn]] and that is certainly better [[JavaScript]] virtual machine than old [[Rhino]]. However [[NodeJS]] is not just [[JavaScript]], it also contains a lot of native bindings. What can be done with those?
+
[https://avatar-js.java.net/ AvatarJS] was an attempt to re-implement [[NodeJS]] on top of the [[JVM]]. These days just download [[GraalVM]] and you'll get [[JavaScript]] and [[Java]] for free. Compatibility is guaranteed.
 +
=== Tooling ===
-
=== Get [[AvatarJS]] ===
+
The [[NetBeans]] tooling (including excellent debugging, see [[Nashorn]]).
-
Well, just download [[AvatarJS]] binaries and you are set to go. One could get the [[AvatarJS]] libraries from maven.java.net (as of Feb 17, 2014):
+
=== Speed ===
-
* The JAR: https://maven.java.net/index.html#nexus-search;quick~avatar-js
+
[[GraalVM]] includes as fast as [[V8]] implementation of [[JavaScript]]. Predicted [http://www.slideshare.net/ThomasWuerthinger/2014-0424-graal-modularity presentation about next generation Nashorn] many years ago...
-
* The native library: https://maven.java.net/index.html#nexus-search;quick~libavatar-js
+
-
 
+
-
To bind them together I renamed to libraries:
+
-
 
+
-
<source lang="bash">
+
-
avatar-js.jar
+
-
libavatar-js-linux-x64.so
+
-
libavatar-js.so -> libavatar-js-linux-x64.so
+
-
 
+
-
# and then I could execute them as
+
-
java -Djava.library.path=. -jar avatar-js.jar
+
-
</source>
+

Current revision

AvatarJS was an attempt to re-implement NodeJS on top of the JVM. These days just download GraalVM and you'll get JavaScript and Java for free. Compatibility is guaranteed.

Tooling

The NetBeans tooling (including excellent debugging, see Nashorn).

Speed

GraalVM includes as fast as V8 implementation of JavaScript. Predicted presentation about next generation Nashorn many years ago...

Personal tools
buy