SpiderMonkey vs V8
NASA Jeff <[email protected]> Thu, 21 May 2020 11:22:04 +0100
| Newsgroups | gmane.comp.graphics.inkscape.devel |
|---|---|
| Message-ID | <CAN-MDmoQy6O4twEz9HF4wX1PmZzGON3es3pA67X48Ymy=ZM_Bg@mail.gmail.com> |
--===============7949596486061290476== Content-Type: multipart/alternative; boundary="000000000000ec0da705a625e28a" --000000000000ec0da705a625e28a Content-Type: text/plain; charset="UTF-8" Spidermonkey doesn't seem too hard to integrate, creating a shim for a javascript a library that provides an API for Inkscape hopefully shouldn't be too tricky and possible with a few precompiler directives in the code and a script https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/How_to_embed_the_JavaScript_engine Spidermonkey looks a little short on documentation especially when it comes to C/JaverScript interoperability. V8 maybe seems a little trickier to embed, only a little not a great deal but has good, clear documentation. it is however C++ base, so it how well that mixes with Inkscape's choice of c https://chromium.googlesource.com/v8/v8/+/branch-heads/6.8/samples/hello-world.cc do it's going to take some searching for documentation and examples of wrapping up c for javascript and javascript for c to determine which one will embed the nicest based on hope Inkscape's SPI is implemented. --000000000000ec0da705a625e28a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Spidermonkey doesn't seem too hard to integrate, creat= ing a shim for a javascript=C2=A0<div>a library that provides an API for In= kscape hopefully shouldn't be too tricky and possible with a few precom= piler directives in the code and a script</div><div><a href=3D"https://deve= loper.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/How_to_embed_the= _JavaScript_engine">https://developer.mozilla.org/en-US/docs/Mozilla/Projec= ts/SpiderMonkey/How_to_embed_the_JavaScript_engine</a>=C2=A0=C2=A0<br>=C2= =A0 Spidermonkey looks a little short on documentation=C2=A0especially when= it comes to C/JaverScript=C2=A0interoperability.=C2=A0=C2=A0<br><br><br>V8= maybe seems a little trickier to embed, only a little not a great=C2=A0dea= l but has good, clear documentation. it is however C++ base, so it how well= that mixes with Inkscape's choice of c</div><div><a href=3D"https://ch= romium.googlesource.com/v8/v8/+/branch-heads/6.8/samples/hello-world.cc">ht= tps://chromium.googlesource.com/v8/v8/+/branch-heads/6.8/samples/hello-worl= d.cc</a>=C2=A0=C2=A0<br><br>do it's going to take some searching for do= cumentation and examples of wrapping=C2=A0up c for=C2=A0javascript and java= script for c to determine which one will embed the nicest based=C2=A0on hop= e=C2=A0Inkscape's SPI is implemented.</div></div> --000000000000ec0da705a625e28a-- --===============7949596486061290476== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7949596486061290476== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Inkscape-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/inkscape-devel --===============7949596486061290476==--