JSPP: Morphing C++ into JavaScript
In
Abstract
In a time where the differences between static and dynamic languages are starting to fade away, this paper brings one more element to the “convergence” picture by showing that thanks to the novelties from the recent C++0x standard, it is relatively easy to implement a JavaScript layer on top of C++. By that, we not only mean to implement the language features, but also to preserve as much of its original notation as possible. In doing so, we provide the programmer with a means to freely incorporate highly dynamic JavaScript-like code into a regular C++ program.