News for hackers. Stuff that matters.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Saturday October 24, 2026 @11:16AM (#50222097)
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by Akseleu_omirbay on Saturday October 24, 2026 @12:54PM (#50223045)
And what about TPU support? Is it compatible with Google TPUs or strictly limited to gpu backends like CUDA and Metal?
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Saturday October 24, 2026 @01:01PM (#50223100)
no TPU support yet, just NVIDIA, Apple and any other HW thats supports OpenCL
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by the_arun on Saturday October 24, 2026 @11:18AM (#50222116)
Does this mean we can use Java to build AI infrastructure?
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by vlowrian on Saturday October 24, 2026 @11:29AM (#50222227)
Or an abstract AI infrastructure factory?
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Saturday October 24, 2026 @11:52AM (#50222469)
https://github.com/beehive-lab/jitllm there is already an vllm-like inference engine that uses tornadovm as the GPU backend all written in java
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by kitd on Saturday October 24, 2026 @12:54PM (#50223042)
I'll be disappointed if this isn't named AbstractAiInfrastructureFactory
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by pjmlp on Saturday October 24, 2026 @01:05PM (#50223130)
These kind of complaints get tiresome, here for some Objective-C fun,

https://github.com/Quotation/LongestCocoa

Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by hoppp on Sunday October 25, 2026 @09:12PM (#50237803)
AbstractAiInfrastructureComponentInitializationAndConfigurationFactory
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by keeda on Saturday October 24, 2026 @01:00PM (#50223087)
That’s probably the next thing after Software Factories.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mike_hearn on Saturday October 24, 2026 @02:11PM (#50223687)
Yes (or any JVM lang). There is also this:

https://qxotic.ai/

... which is a single JAR that does SIMD accelerated inferencing of local models, dependency free. Everything is written in Java from the tokenizer up. It can also use Metal on macOS. Small models can be surprisingly powerful these days and all you need is a fast CPU. It works not only for LLMs but also image models, video models and speech.

Remarkably, it is significantly faster than llama.cpp on some tasks like prefill (decode is memory bandwidth constrained so language hardly makes a difference). At least as long as you run on GraalVM (JVM or native image, both work). So you can actually beat C++ performance for AI in Java.

It's impressive stuff.

Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by vips7L on Saturday October 24, 2026 @09:55PM (#50227496)
Why GraalVM specifically? Is it something special with the Graal JIT?
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mike_hearn on Sunday October 25, 2026 @03:07AM (#50229041)
It optimizes more aggressively, yes.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by amir734jj on Saturday October 24, 2026 @11:30AM (#50222244)
Basically JAX for Java instead of Python
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Saturday October 24, 2026 @11:53AM (#50222477)
Many components for a jax for java are already tested in https://github.com/beehive-lab/jitllm
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mathisfun123 on Saturday October 24, 2026 @02:48PM (#50223959)
"your scientists were so preoccupied with whether they could they didn't stop to think if they should"
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by zmmmmm on Saturday October 24, 2026 @05:39PM (#50225635)
Seems like a nice win even if it just does the example they have:

    void matmul(Matrix2DFloat A, Matrix2DFloat B, Matrix2DFloat C, int size) {
      for (@Parallel int i=0; i<size; i++) {
        for (@Parallel int j=0; j<size; j++) {
          float sum = 0f;
          for (int k=0; k<size; k++)
            sum += A.get(i,k)*B.get(k,j);
          C.set(i, j, sum);
        }
      }
    }
But the elephant in the room is the Vector API. Is that going to end up like logging - a standardised API nobody uses because it came 10 years late to the party and isn't as good as what was already established?

And why confuse everybody by calling it a VM when it ships as a JAR file that runs in an existing VM?

Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by russli1993 on Saturday October 24, 2026 @08:12PM (#50226835)
what about tiling? seems better to call into existing kernels, fused megakernels than rewrite kernel in java.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by zmmmmm on Saturday October 24, 2026 @09:33PM (#50227358)
i might be overly optimistic, but I'm assuming it'll do the tiling by itself with the above. As long as there's not an algorithmic reason to do it a specific way, in theory you could just optimise it for the target hardware.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Sunday October 25, 2026 @05:50AM (#50229823)
For now it supports directly cuTile through what they call TileContext API. Is a 1-1 mapping of the cuTile C++ implementation.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by mikepapadim on Sunday October 25, 2026 @05:53AM (#50229838)
You can do both. It supports nvidia's cuTile programming model through Tilecontext API or you can write megakernels in Java and compile then to CUDA or even add native libraries in the mix like cudnn. JITllm is a good example how all these can work together
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by pjmlp on Saturday October 24, 2026 @11:23PM (#50227976)
I actually use the logging API, it is good enough, and maybe I am old enough not to like to cowboy install dependencies if I can avoid it.
Re:TornadoVM 7 Enables GPU-Native Workloads from Java Applic... by hoppp on Sunday October 25, 2026 @09:09PM (#50237782)
How is ML using java?

My impression was that people mainly use python.

Pros and cons?