Java Cup
Inside Java

News and views from members of the Java team at Oracle

Reflecting on HAT: A Project Babylon Case Study

(Recorded at JavaOne 2026 - for more, check our JavaOne 2026 playlist.)

Project Babylon continues to simplify access to foreign programming models through the development of code reflection. Using code reflection, a Java program can be lowered into a symbolic form then translated into foreign models such as CUDA and OpenCL, allowing programs to be executed on different platforms.

In this session, we'll introduce Project Babylon and examine how it's used by HAT (Heterogeneous Accelerator Toolkit) to make GPU programming more approachable for Java developers. We'll focus on new HAT features that leverage code reflection to create layers of abstraction and cleaner translations between Java and performant GPU code.