Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn the V8 compiled javascript into an EXE?

I know that google's v8 compiles javascript into native machine (binary if I understand correctly) code.
Is there a way to take the output and turn it into a exe?

like image 930
the_drow Avatar asked Jul 20 '09 08:07

the_drow


1 Answers

I don't think you can directly turn a piece of JavaScript into an executable using V8, but you can probably make an application that bundles the V8 engine with the JavaScript and runs it as a stand-alone.

You can find all information about V8 on its project page.

Also note that JavaScript can't be completely compiled as it's a dynamic language. With V8, it's JIT-compiled (like .NET, for example.) It's still possible to turn it into a stand-alone executable though (like .NET, for example.)

If you want to develop stand-alone applications that make use of HTML for rendering, you could have a look at Adobe Air as well.

like image 143
Blixt Avatar answered Oct 11 '22 14:10

Blixt