c++ - JavaScript Standard Library for V8 - Stack Overflow

In my application, I allow users to write plugins using JavaScript. I embed V8 for that purpose. The pr

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!

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!

Share Improve this question edited Jul 2, 2010 at 17:43 starblue 56.9k14 gold badges101 silver badges153 bronze badges asked Jun 30, 2010 at 0:55 Alon GubkinAlon Gubkin 57.2k57 gold badges199 silver badges290 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

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 "plete" implementations.

In the end, I built my own library.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745601554a4635429.html

相关推荐

  • c++ - JavaScript Standard Library for V8 - Stack Overflow

    In my application, I allow users to write plugins using JavaScript. I embed V8 for that purpose. The pr

    13小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信