News for hackers. Stuff that matters.
Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by amelius on Thursday June 22, 2017 @09:48AM (#14612187)
Interesting. Does WebKit run its JIT compiler in a separate thread from the actual execution?

> In general, we're happy to pay compile time to get peak throughput.

Shouldn't a program which runs a UI (which WebKit basically is) optimize for lowest latency instead?

Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by chrisseaton on Thursday June 22, 2017 @11:04AM (#14612716)
> Shouldn't a program which runs a UI (which WebKit basically is) optimize for lowest latency instead?

Do you want to achieve low latency with low latency, or do you want low latency and it's so important that you don't mind high latency to get it :)

What I mean is yes people want lowest latency. But you can either compile quickly, to get to a reasonably low latency when using the app and to get to that point itself with low latency, or you can compile with optimisations, and get lower latency when the compilation is done but have to wait with high latency to get to that point.

Both approaches are 'optimising for latency' so you'd need to be more specific.

The practical compromise is tiers of compilation, each taking higher latency to apply but producing lower latency when they're done.

Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by gsnedders on Thursday June 22, 2017 @11:47AM (#14613050)
> Shouldn't a program which runs a UI (which WebKit basically is) optimize for lowest latency instead?

Note that this is only the third (top) tier JIT (or fourth if you include the interpreter). By that point, you're really optimising for throughput and not compile time.

Re:What Challenges and Trade-Offs Do Optimising Compilers Face? by bzbarsky on Friday June 23, 2017 @02:55AM (#14617438)
All the browsers do their top-tier jit on a separate thread (if not multiple threads), as far as I know, precisely so it doesn't interfere with execution.