Hacker News new | ask | show | jobs
by bichiliad 4474 days ago
What is the advantage of something like this? (Not trying to be cynical, I just have no idea).
3 comments

Developer Productivity

C/C++ is great for low-level and performance sensitive code, but at the cost of ease of use and a potentially slow compile-test-debug cycle. For instance, in a game engine, the Physics and graphics rendering are usually done in C++. But for the rest, you get more bang-for-your-buck with a higher-level language.

Mindshare

Other high-level languages can do the same thing. In fact, Lua and Guile were designed for this exact purpose. But Javascript works well and Javascript programmers are much easier to find. And if, say, you want your users to start writing plug-ins for your application, you'll have more success with a language they're more likely to know.

Performance

Thanks to the great Javascript JIT compilers, you'll probably take a smaller performance hit than with other high-level languages you might choose.

My first thought is that this could be used much like Lua for allowing customized script extensions to C++ programs.