Is it possible to compile JS to a native executable? I have seen NodeJS run JS, but can you actually compile javascript, either by a wrapper or actual compiler.
Asked
Active
Viewed 8,187 times
3
-
1Native to what? What architecture are you referring to? – Sani Huttunen Jan 06 '14 at 18:42
-
Of course it's *possible*. I'm not aware of any compiler that does it, though. – T.J. Crowder Jan 06 '14 at 18:44
-
1What are you trying to accomplish? – Mike Cheel Jan 06 '14 at 18:46
2 Answers
0
I'm assuming you mean compile to native code. Not directly. NodeJs uses the V8 engine which compiles javascript to native code during execution.
You can freely download and compile the V8 engine.

Mat Gessel
- 562
- 8
- 17

tier1
- 6,303
- 6
- 44
- 75
-
The question opens with *"Is it possible to compile JS to a native executable?"* The answer is, of course, **yes**. It's just a language, after all. I'm not aware of any compiler that actually does it, though. Important distinction, that. – T.J. Crowder Jan 06 '14 at 18:46
-
@T.J.Crowder Your point is valid. That's why I added the "Not directly". – tier1 Jan 06 '14 at 18:47
0
Javascript is (as name) script lang. So if you want convert a web application to desk application there are many solutions like chrome applications, mozilla applications, pokki, whatever... so google, read and make.

iLevi
- 936
- 4
- 10
- 26