Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call C++ functions/methods via JavaScript

Tags:

does anybody know how to call C++ functions or methods via JavaScript. Need scripting like Lua/Python-C++ but with JavaScript.

Thanks in advance.

like image 205
Alex Ivasyuv Avatar asked Nov 06 '09 12:11

Alex Ivasyuv


1 Answers

You can try Google's V8:

open source JavaScript engine.

V8 is written in C++ and is used in Google Chrome, the open source browser from Google.

V8 implements ECMAScript as specified in ECMA-262, 3rd edition, and runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors.

V8 can run standalone, or can be embedded into any C++ application...

like image 56
artemb Avatar answered Oct 26 '22 23:10

artemb