Adopting GraalVM
summary
Evaluation of GraalVM covers concrete steps and pain points: SBT can use the Graal plugin and JVMCI flags to compile Scala projects and yields about 10% compile-time speedup on tested microservices using Play, cats and cats-effect; JMH benchmarks show JIT improvements versus HotSpot. SubstrateVM’s native-image produces a huge startup reduction and single static executables but requires refactoring: reflection/invokedynamic must be declared ahead of time and some code (object layouts, dynamic classloading, JVMTI) breaks or needs fixes; enterprise builds are faster and commercial.
AI-written summary · about
chapters (12)
- 0:00Introduction and background
- 1:48Why GraalVM was created
- 3:59GraalVM features and licensing
- 5:23Compiling Scala with GraalVM
- 8:17Benchmarking compile times
- 9:01JIT vs AOT compilation
- 10:50Performance testing setup
- 13:25Substrate VM and native images
- 15:58Substrate VM limitations
- 17:24Use cases for native images
- 18:52Other GraalVM components
- 20:45Summary and final thoughts








