4 ms·
> From what I've heard, SM and V8 are both fairly painful to embed Not sure what's the state now, but years (9?) ago I created the scripting layer for a very p
by funkaster 5y ago
> From what I've heard, SM and V8 are both fairly painful to embed
Not sure what's the state now, but years (9?) ago I created the scripting layer for a very popular 2D open source game engine at the time. Had to do it twice: once with JavaScriptCore and the second time with Spidermonkey. Turns out that Spidermonkey was really not that hard to embed and I also ended up creating some nifty auto-generated bindings from the C++ code (using llvm) to Spidermonkey. The runtime to keep track of spidermonkey <> C++ objects was very lean. Overall I had a really good experience and if I had to today, I would probably start looking at Spidermonkey again.