3

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.

ir-g
  • 252
  • 1
  • 3
  • 18

2 Answers2

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.

https://developers.google.com/v8/

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.

mozilla developers

pokki applications developers

chrome developers

iLevi
  • 936
  • 4
  • 10
  • 26