nucleus-js / design

This repo is for the core design, discussion, spec, and tests for nucleus implementations.
Other
110 stars 20 forks source link

Support for v8 #4

Open heapwolf opened 8 years ago

heapwolf commented 8 years ago

Discuss!

creationix commented 8 years ago

Yes.

This is down the road for me personally as I'll be focusing on duktape first (since I know it already) and then jerryscript second to ensure the design is portable. After that I might start on a V8 version if nobody has beat me to it.

I also want to do SpiderMonkey, JavaScript Core and ChakraCore.

We can probably use code from https://github.com/chrisdickinson/nojs as well as get help from @chrisdickinson

Fishrock123 commented 8 years ago

I'd be cool to work on a good amount of this, probably alongside @chrisdickinson

Qard commented 8 years ago

You can't really bind to C++ directly from Rust, so you'll need a C wrapper API. I started working on updating the work @bnoordhuis did on v8.rs awhile back in my own fork and ran into issues with name mangling inconsistencies, so I started to convert it to use a C wrapper but never finished/committed it. There's the beginnings of something on my laptop somewhere, but I'll need to dig it out and review it at some point. Shouldn't be too hard to implement the C wrapper, just a bit time consuming...

creationix commented 8 years ago

It might make sense for the V8 version of nucleus to stick to C++ since rust interop seems to cause more trouble than helping. The spec doesn't have any mandates on how you implement the JS interface.