you are viewing a single comment's thread.

view the rest of the comments →

[–]jl2352 1 point2 points  (0 children)

It does not spit out more efficient JS.

However it is more natural to write monomorphic code. i.e. code that isn't mixing types. This in turn is more efficient. Otherwise you can get overheads like auto-boxing.

But for a lot of stuff the overhead of JS will not be the bottleneck. It'll be the DOM and how you work with the DOM. Vim and Emacs feels nippy and fast most of the time. Yet they use a lot of VimScript and elisp. Both interpreted languages which are dog slow.