I don't think it's possible to write a compiler that can run eval/Function
without either JIT or interpretation.

On 25 Oct 2017 10:27 pm, "Allen Wirfs-Brock" <[email protected]> wrote:

Of course, it is possible to write a compiler for JavaScript.  It’s just a
programming language. But a traditional compiler that fully supports are
the dynamic characteristics of JS is probably not going to be competitive
with modern JITs.

However, a closed world whole-program optimizing compiler might be a
plausible approach for JS applications that meet those characteristics.
For example, some embedded applications.

Allen

.


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to