简体   繁体   English

扩展V8 JavaScript引擎

[英]Extending V8 JavaScript engine

http://docs.python.org/2/extending/ I have some experience with extending/embedding the python interpreter. http://docs.python.org/2/extending/我有一些扩展/嵌入python解释器的经验。 I also know some of the tools that make this easier like cython. 我也知道一些使这更容易像cython的工具。

Now I am curious about doing the same with Google's V8 engine. 现在我很好奇用谷歌的V8引擎做同样的事情。 I am more interested about extending it but didn't find much information about doing this. 我对扩展它更感兴趣,但没有找到关于这样做的更多信息。

Can anyone recommend further reading? 谁能推荐进一步阅读? Do tools exist that make this easier? 是否存在使这更容易的工具?

Re. 回覆。 Further Reading: 进一步阅读:

NodeJS Documentation NodeJS文档

Kenneth Geisshirt's 2015 Talk (crash course) Kenneth Geisshirt的2015演讲 (速成课程)

Re. 回覆。 Tools: 工具:

Short Answer : no. 简答 :没有。

Long Answer: Since one language is being compiled by the other, debuggers will intrinsically have a hard time crossing the language barrier. 长答案:由于另一种语言正在编译,因此调试器本身很难跨越语言障碍。 Instead, I strongly recommend you perform exhaustive unit testing, especially when you consider that JavaScript is loosely typed and C++ is strongly typed. 相反,我强烈建议您执行详尽的单元测试,尤其是当您认为JavaScript是松散类型并且C ++是强类型的时。 That difference alone may cause or save headaches when developing extensions. 在开发扩展时,这种差异本身可能会导致或节省头痛。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM