Hacker News new | ask | show | jobs
by exabrial 2816 days ago
What I find most interesting about that link is this:

> The FTL JIT was designed as a marriage between a high-level optimizing compiler that inferred types and optimized away type checks

Why not just use types in your language? It's not that difficult and makes a massive performance increase.

1 comments

Because JavaScript does not have types?

What you’re essentially asking is: why are you supporting JavaScript?

Also a lot of those optimizations occur in jits for statically types languages. Because many of the optimizations are functionally equivalent to “static” language ideas like devirtualisation and the like.