AOT vs JIT Compilation

The cluster centers on debates comparing Ahead-of-Time (AOT) and Just-In-Time (JIT) compilation techniques, particularly their performance, optimizations, and implementations in Java, GraalVM, JVMs, and other platforms like Android ART.

📉 Falling 0.4x Programming Languages
2,340
Comments
19
Years Active
5
Top Authors
#7802
Topic ID

Activity Over Time

2008
2
2009
3
2010
8
2011
19
2012
23
2013
43
2014
138
2015
156
2016
185
2017
199
2018
178
2019
158
2020
236
2021
199
2022
217
2023
226
2024
168
2025
165
2026
17

Keywords

JIT JET LTO JVM LLVM VM c.f AFAIK AOT NET aot jit compilation java compilers jvm android compiled compiler code

Sample Comments

runT1ME Aug 27, 2010 View on HN

AOT in many instances is less performant than JIT compilation...

pjmlp Jan 2, 2017 View on HN

AOT compilers for Java do exist and are quite fast.

pjmlp Jul 4, 2014 View on HN

There are certified JVMs with AOT compilers available.

paddim8 Aug 14, 2025 View on HN

Native AOT compiled code is not necessarily faster than JIT compiled code. The Java JIT engine can do a lot of optimisations that would not be possible with AOT compilation. In the end it's compiled down to machine code anyway.

pjmlp Jun 23, 2020 View on HN

Java also does optimizations at AOT, it is all a matter which toolchain one uses, plenty of choice since 2000.

breve Aug 9, 2025 View on HN

What about AOT compilation? How does that compare?

spullara Jul 2, 2019 View on HN

Depends on if the Java code is ahead of time compiled or not. The AOT compiler is included in the latest JDKs.

0b01 Dec 21, 2020 View on HN

Technically it's JITted not AOT compiled.

lispm Apr 18, 2023 View on HN

What about GraalVM, which sports native AOT compilation?

paro_nej Mar 15, 2023 View on HN

They aren't JIT. They're doing AoT AFAICT.