JVMLS 2015 - Java Goes AOT

Channel:Java · Length:40:50 · Published:2015-08-12 · Views:7598

Watch on YouTube

Summary

Christian Thalinger presents at the 2015 JVM Language Summit on adding ahead-of-time compilation to the JVM, covering the HotSpot team's AOT work and its relation to warmup and deoptimization.

Why HN recommends it

Cited in AOT discussions as evidence that Oracle was moving toward AOT in the JDK and as an explanation of the deoptimization concerns.

It's explained in the talk — HN, 2016

Python, Ruby & scripting languages · Compilers, interpreters & program analysis

Subtitles (excerpt)

I'm really happy that I can present this here because I talked to some people yesterday and they were asking me what are you doing you disappeared um and that's the reason I disappeared because of that um and since you probably never heard of it so that means that we're doing this enclosed and it's a confidential thing and we couldn't talk about it until today so I I'll present that um I'll talk a little bit about it why we doing it now um there are some people in this room who have done this before it's definitely not a new thing right everyone knows how it works and uh we have other chva implementations that do that and there were other companies before us that did that so this is important because um this is still experimental and we don't know exactly in what chva version we are going to deliver this and so on um so why why are we doing this I'll briefly talk about that um then I'll I'll I'll lay out a little bit how our aot compiler works and and how you aot compile stuff um then I talk a little bit about the container format which which one we chose and why we did that um then where we are right now what we support what we are planning on supporting in the future again it's not tied to any chva version that's at this point so uh and then

On Hacker News

> Compiles to binary which could bring benefits depending on your needs (compared to JS, Java, Scala..) While its not there _yet_, JEP 295: Ahead-of-Time Compilation ( [LINK] ) is active, it was just updated last week, is targeted and a priority 1 item. I have reasonable confidence that it will get there in the near future. See also: JVMLS 2015 - Java Goes AOT [VIDEO] — shagie, 2016-12
There was a talk about it last year: [VIDEO] The project seems to have gone slower than I expected, perhaps because Chris Thalinger moved to Twitter. — mike_hearn, 2016-10
It's explained in the talk "Java goes AOT": [VIDEO] Basically they thought it'd de-opt too much. I'm not totally sure it's the case but they'd be the experts on that. — mike_hearn, 2016-10
Hi, What is the rationale for doing this, given that the Graal / JVM guys are already developing an AOT compiler which can compile Scala to native binaries? Is this motivated by performance? The desire to write C libraries in Scala? What? Given the high level, dynamic nature of Scala I am skeptical LLVM+Boehm GC will result in faster code. I expect it would result in slower code. EDIT: OK, I just… — sievebrain, 2016-05
Afaik IBM's JVM supports class data sharing, which effectively provides AOT behavior once they have been JITed. For oracle's VM they're working on a commercial feature [VIDEO] There also are things like nailgun which simply prestart a JVM and then delegate to the loaded JVM when you invoke some command. It may be a bit of a workaround, but if your use-case is to frequently start extremely shortli… — the8472, 2016-02

Related videos