r/java • u/Zealousideal-Read883 • Jan 12 '26
Built a runtime that accelerates javac by 20x and builds native binaries without native-image config
I've been working on Elide, a runtime and toolchain built on GraalVM that solves a few pain points I kept hitting with Java development.
The Gradle plugin can accelerate javac compilation by up to 20x for projects (under ~10k classes). It acts as a drop-in replacement w/ same inputs, same outputs, just faster. core architecture uses a native-image compiled javac, skipping JIT warmup entirely.
See our in house benchmark:

For deployment, you can build native binaries and container images directly from a Pkl manifest. Which essentially means no Dockerfile and easier native-image configuration.
You just define your build, run elide build, get a container pushed to your registry.
It's aimed at Java devs who are tired of slow builds, verbose tooling, and the native-image configuration dance. Would love feedback on what would make this more useful.
29
u/davidalayachew Jan 12 '26
I haven't tried it, but if this works as advertised, then this would be far more valuable than just everyday compilation. This should be powering most build tools. But again, haven't tried it, so not sure if it is true.
10
u/maxandersen Jan 12 '26
sounds interesting but readme only talks about list of languages, none of them Java? are the readme not uptodate ?
2
u/koreth Jan 13 '26
The info blurb on the GitHub repo says it's a "fast, all-in-one, AI-native, multi-lang, runtime". What does "AI-native" mean in this context? I don't see any references to LLM tools in the docs.
25
u/pron98 Jan 12 '26 edited Jan 12 '26
Even with JIT warmup, javac is very fast when it compiles many files in one invocation. I don't remember the exact cutoff, but I think it surpasses the speed of the Go compiler at 100K lines, maybe lower. In fact, I've found that getting javac to recompile an entire project from scratch with one invocation is often faster than an incremental build with a build tool.
With Leyden and AOT-caching, the warmup costs of javac may be reduced a lot further, possibly without any special treatment by the user, but we're not quite there yet.
5
u/noodlesSa Jan 12 '26
It always occurred to me that running same app many times, and JVM each time start to analyze that same app from the start, is quite insane thing that should have being fixed in version 2 of Java, but still exists today. I guess the reflection is big problem in that regard.
3
u/voronaam Jan 12 '26
So,
javaccompilation being faster is nice, but most of the time is spent compiling the native image with GraalVM. Building a container out of the result is pretty much instant.How is your performance of building the native image in comparison with GraalVM?
Also, what if I already have the configured reflection JSON - can I still use it? The documentation says that compiling without it is a feature, but can I compile with it?
3
u/FirstAd9893 Jan 12 '26 edited Jan 12 '26
I run javac through a custom daemon process. The first invocation is relatively slow, but subsequent invocations are much faster. I've generally found that native images are slower than what HotSpot generates, and so Elide isn't likely as fast as it could potentially be.
The usual complaint with daemon processes is that they consume memory when sitting idle. But if memory usage is a problem, you'd be hitting memory limits every time you run javac anyhow.
4
u/Brutus5000 Jan 13 '26
The name Elide is already taken by a java library (elide.io)...