mozilla / spidernode

Node.js on top of SpiderMonkey
https://ehsanakhgari.org/blog/2016-04-20/project-spidernode
Other
560 stars 43 forks source link

Deno on top of SpiderMonkey #398

Closed HannanAkbar closed 5 years ago

HannanAkbar commented 5 years ago

I opened an issue on Deno's repository Decoupling Deno from V8 Engine. However, Ryan Dahl has no plan to support any other engine, but I'm sure it's not that difficult to run Deno on top of SpiderMonkey. Deno uses N-API for extension modules and wraps V8 with a C library, libdeno.

Should we give it a try?

mykmelez commented 5 years ago

I'm not as sure as you are that it's not that difficult to run Deno on top of SpiderMonkey. The two JS engines have quite different APIs that reflect different underlying implementations, and we've found that it's quite hard to completely port Node.js to SpiderMonkey.

It also isn't clear what the user benefit is. So I would do more research (both technical and user) before deciding to give it a try. In any case, the way to do so would be to embed SpiderMonkey using its embedding APIs, not via SpiderNode, so this wouldn't be an issue for the SpiderNode repo. Thus I'll close this one.

See the SpiderMonkey docs for information about embedding it: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey

Ryuno-Ki commented 5 years ago

What about Chakra then?

mykmelez commented 5 years ago

@Ryuno-Ki I'm not very familiar with Chakra. Perhaps you should ask the https://github.com/nodejs/node-chakracore developers.

Ryuno-Ki commented 5 years ago

I was asking @HannanAkbar whether he had considered using Chakra instead of SpiderNode. Sorry, should have been more detailed.