Is there a native machine code compiler for JavaScript?
I'm not talking about a VM.
If it doesn't exist can it be done?
I am wondering if it can be compiled to binary due to the dynamic nature of the language.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Google V8 engine compiles JavaScript into native machine code. This feature is used in the EncloseJS compiler which I wrote for for node.js and io.js projects.
Please note that all of these solutions are
DOM
less, so no libraries likeangular.js
orjquery
, onlyunderscore.js
/lodash
Following up to Falaina's answer, PyPy does have a dist for JavaScript
Also, Appcelerator Titanium has a
js
>JavaBit
>android
Finally,
node.js
can use nexe Explained in this other answer