Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for v8 #4

Open
heapwolf opened this issue Jun 3, 2016 · 4 comments
Open

Support for v8 #4

heapwolf opened this issue Jun 3, 2016 · 4 comments

Comments

@heapwolf
Copy link

heapwolf commented Jun 3, 2016

Discuss!

@creationix
Copy link
Member

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
Copy link
Member

Fishrock123 commented Jun 3, 2016

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

@Qard
Copy link

Qard commented Jun 23, 2016

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants