java – Avatar. JS and project Avatar

In the context of Java 8 and nashorn, I see two projects often mentioned

Avatar. JS and project Avatar

What is the relationship between these projects?

Avatar. JS has few documents As far as I know, it provides the possibility of executing node applications on the JVM

The project avatar seems to be based on avatar JS However, the scope seems to be to provide an alternative web framework for Java EE 7 Can I also use project avatar to execute node programs (such as grunt)?

Solution

Update: the project avatar is officially held on February 12, 2015

Avatar. JS is an open source version informally called "node. Jar" (see this post in the avatar JS mailing list) In other words, it is a nodejs compatible API that runs with nashorn Project avatar seems to be Oracle's response to the nodejs API, providing an alternative platform, which also uses avatar JS provides compatibility with nodejs API and ecosystem

Therefore, project avatar is not built on avatar JS, but "avatar.js is a component of project avatar. Nashorn is a JavaScript engine for running both." (again, from this post)

Avatar. JS homepage currently has a list of known running modules, including "grunt" It seems that project avatar currently contains avatar The version of JS is "avatar-js.jar", as seen in the current latest commit, although it has a history of 4 months So I think the answer is yes. The current version of project avatar will allow you to run modules compatible with nodes

As you pointed out, both initiatives lack documentation and are still in their infancy Time and community participation will show where they fit best

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>