V8 的 JavaScript 标准库
在我的应用程序中,我允许用户使用 JavaScript 编写插件。我为此目的嵌入了 V8。问题是开发人员无法使用 HTTP、套接字、流、计时器、线程、加密技术、单元测试等。
我搜索了 Stack Overflow,找到了 node.js。它的问题是,您实际上可以创建 HTTP 服务器,并启动进程以及更多我不想允许的事情。另外,node.js 有自己的环境(./node script.js
),您无法嵌入它。而且它不支持 Windows - 我需要它完全跨平台。如果这些问题能够得到解决,那就太棒了:)但我也对其他框架持开放态度。
有什么想法吗?
谢谢你!
In my application, I allow users to write plugins using JavaScript. I embed V8 for that purpose. The problem is that developers can't use things like HTTP, Sockets, Streams, Timers, Threading, Crypotography, Unit tests, et cetra.
I searched Stack Overflow and I found node.js. The problem with it is that you can actually create HTTP servers, and start processes and more things that I do not want to allow. In addition, node.js has its own environment (./node script.js
) and you can't embed it. And it doesn't support Windows - I need it to be fully cross platform. If those problems can be solved, it will be awesome :) But I'm open to other frameworks too.
Any ideas?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有 CommonJS,它定义了一个“标准”和一个 该标准几乎没有可用的实现 - 其中之一是 node.js。
但从我看来,它仍然相当不成熟,并且没有很多“完整”的实现。
There is CommonJS, which defines a "standard" and a few implementations available of that standard - one of which is node.js.
But from what I can see, it's still fairly immature and there aren't many "complete" implementations.
最后,我建立了自己的图书馆。
In the end, I built my own library.