Is there a C ++ bunch that can cross v8 and JavaScriptCore?

I need a script engine for game development. I don't like lua (due to syntax and functions), I really like js, so I want to use google V8, but it doesn't seem to be very friendly on iOS? So, is there a C ++ bunch that can cross v8 and JavaScriptCore? In iOS, use JavaScriptCore, while others use V8 to link the same C ++ code.

+4
source share
2 answers

As I know, there is no such binding library. When I worked at de dev last year, we created our own binding. But this is proprietary code. We used JavascriptCore for iOS and V8 for Android. So it’s possible, but unfortunately I can’t help you with the code.

0
source

I started a project for this. He currently supports the creation and launch of examples included in version 3.14 of the V8 project, as well as Node version 0.10.

https://github.com/flyover/v8like

I also created a Node project fork with project files for iOS and OS X, including targets for compiling against V8 using a simulator (define USE_SIMULATOR) and a v8like project.

https://github.com/flyover/node

+2
source

Source: https://habr.com/ru/post/1482910/


All Articles