Program JavaZone

Foredrag Onsdag 2. september

SIMD for Java: how Elasticsearch already benefits from the Panama Vector API

Room 5

Engelsk 45 min java SIMD vector API

Piotr Przybył

Notorious engineer at work and after hours, tracing meanders of the art of software engineering. Senior Developer Advocate for Elastic. Remote Software Gardener, mostly working in web-oriented Java gardens. Java Champion. Docker Captain. Testcontainers Champion. Programming usually in Java (since 1.3), Scala and Go, but in other languages too. Fan of agility, seen mostly as choosing the right tools and approaches after asking the right questions. Developer, trainer and conference speaker. In his talks, Piotr covers not only hardcore Java but also software architecture, computer security, and soft-skills.

Processing large amounts of data efficiently is a common challenge. Many workloads spend most of their time doing simple math on large arrays. Modern CPUs can speed this up using SIMD, where one instruction processes multiple values at once, but using it from Java has traditionally been difficult and required native code.

The Panama Vector API changes this by letting developers express these operations directly in Java, while the JVM translates them into efficient CPU instructions.

Elasticsearch is a real-world example. Features like vector search and ES|QL rely on repeated operations over large datasets. Under the hood, Elasticsearch and Lucene use the Vector API to take advantage of SIMD on modern CPUs.

Using an incubating API in production is unusual. In this case, the performance gains make it worth it. This talk explores how Elasticsearch integrates the Vector API, how it enables or disables SIMD at runtime, and what this means for high performance Java.

This is for folks, who: have to process loads of data, and/or are intrigued how non-GA modern features make Java shine in prod

  1. Dream Machines & Walled Gardens Room 1
  2. Bra tools, ubrukelige svar: Læring fra ett år med MCP Room 2
  3. Building Production-Ready Kubernetes Operators: A Practical Guide Room 3
  4. Architecture Under Fire: The Decisions Nobody Tells You About Room 4
  5. Bare spør! AI-agenter elsker produksjonsmetrikker Room 6
  6. Let’s use Spring Boot to build games, because why not? Room 7
  7. Demoscene Coding Kickstart Room 8
  8. De usette langtidskostnadene med dagens KI Room 6