Open heapwolf opened 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
I'd be cool to work on a good amount of this, probably alongside @chrisdickinson
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...
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.
Discuss!