JavaScript Standard Library for V8
Asked Answered
I

2

8

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!

Iconic answered 30/6, 2010 at 0:55 Comment(0)
I
3

In the end, I built my own library.

Iconic answered 1/7, 2010 at 4:6 Comment(1)
cool.. Any of that is open source? I am starting on similar project and would be great to look at that. Also is there any standard library docs for v8 available?Harvard
I
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 "complete" implementations.

Inigo answered 30/6, 2010 at 1:9 Comment(0)
I
3

In the end, I built my own library.

Iconic answered 1/7, 2010 at 4:6 Comment(1)
cool.. Any of that is open source? I am starting on similar project and would be great to look at that. Also is there any standard library docs for v8 available?Harvard

© 2022 - 2024 — McMap. All rights reserved.