Avatar.js和Project Avatar [英] Avatar.js and Project Avatar

查看:272
本文介绍了Avatar.js和Project Avatar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Java 8和Nashorn的上下文中,我看到有两个项目被定期提及。

In the context of Java 8 and Nashorn I see two projects being regularly mentioned.

Avatar.js 项目头像

这些项目的关系是什么?

What is the relation of these projects?

Avatar.js的文档很少。据我所知,它提供了在JVM上执行节点应用程序的可能性。

Avatar.js has very little documentation. As far as I gathered it offers the possibility to execute node applications on the JVM.

项目头像似乎建立在Avatar.js上。但是,范围似乎是为Java EE 7提供替代Web框架。是否也可以使用Project Avatar执行节点程序(例如grunt)?

Project Avatar seems to build on Avatar.js. However the scope seems to be to provide an alternative Web-Framework for Java EE 7. Is it also possible to execute node programs (like i.e. grunt) with Project Avatar?

推荐答案

更新项目头像是正式停止 2015-02-12。

Update: Project Avatar was officially halted 2015-02-12.

Avatar.js是开源版本非正式地称为'node.jar'的内容(参见这篇文章。换句话说,它是与Nashorn一起运行的NodeJS兼容API。 Project Avatar似乎是Oracle对NodeJS API的回应,提供了一个替代平台,它还通过Avatar.js提供与NodeJS API和生态系统的兼容性。

Avatar.js is the open-source version of what was informally called 'node.jar' (See this post from the avatar-js mailing list). In other words, it is a NodeJS-compatible API, running on Nashorn. Project Avatar appears to be Oracle's answer to the NodeJS API, offering an alternative platform which also provides compatibility with the NodeJS API and ecosystem via Avatar.js.

因此它不是Project Avatar建立在Avatar.js上,而是Avatar.js是Project Avatar的一个组件.Nashorn是用于运行这两者的JavaScript引擎。 (再次,来自这篇文章 )。

Therefore it is not that Project Avatar is built on Avatar.js, but rather that "Avatar.js is one component of Project Avatar. Nashorn is the JavaScript engine used to run both." (again, from this post).

Avatar.js主页目前有一个已知运行的模块列表,包括grunt。看起来Project Avatar目前包含Avatar.js的版本为avatar-js.jar,可在当前的最新提交,虽然已有4个月了。所以我认为答案是肯定的,Project Avatar的当前版本将允许您运行与节点兼容的模块。

The Avatar.js homepage currently has a list of modules known to run, including "grunt". It would appear that Project Avatar currently includes a build of Avatar.js as "avatar-js.jar", as found in the current latest commit, though it is 4 months old. So I think the answer is that yes, the current build of Project Avatar will allow you to run Node-compatible modules.

正如您所指出的,这两个都是倡议缺乏文件,并处于起步阶段。时间和社区参与将显示它们最适合的位置。

As you've pointed out, both of these initiatives lack documentation, and are in their infancy. Time and community engagement will show where they fit best.

这篇关于Avatar.js和Project Avatar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆