Hacker News new | ask | show | jobs
by hden 2816 days ago
So Apple has its own browser, its own JIT compiler(1), which emits its own instruction sets, which then run own its own CPUs.

Heck let’s propose the JPU (JavaScript Processing Unit) for server-side codes.

1. https://webkit.org/blog/5852/introducing-the-b3-jit-compiler...

2 comments

Imagine if Apple had its own operating system running its own static compiler!
With the end of Moore’s law, that may be the way forward, making cpus with more of the software implemented in hardware.
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.

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.