Software Unscripted cover image

Software Unscripted

Making JITted Code Faster with Chris Nuernberger

Dec 10, 2023
Chris Nuernberger, experienced in making code run faster in the context of the JVM and optimizing C++ code, discusses optimizing code in V8 and the JVM, automatic parallelization, Haskell's success as a language, language design choices in rock, challenges of incorporating dynamic libraries in the rock compiler, and the appeal of having everything in one language.
01:09:04

Podcast summary created with Snipd AI

Quick takeaways

  • Optimizing Java code on the JVM requires targeting the hotspot and understanding its optimization capabilities.
  • Virtual function calls in C++ can lead to cache coherence issues and performance loss.

Deep dives

Optimizing code on the JVM

The podcast episode discusses the experiences of Chris Nurnburger, a closure programmer and co-founder of Tekasent, with optimizing code on the Java Virtual Machine (JVM). In his experience, optimizing Java code on the JVM requires working closely with the hotspot, understanding its limitations and optimization capabilities. It is essential to target hotspot and understand the little things it's likely to optimize and the ones it's not likely to optimize. Hotspot's inlining mechanisms are powerful, allowing for the inlining of virtual function calls into loops, resulting in improved performance. Additionally, Chris highlights the impact of GC on higher core machines, where global locks and memory references become more expensive, emphasizing the need to consider GC implications as the number of cores increases.

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner