rootbeer!

https://github.com/pcpratts/rootbeer1

I picked this up from a Dutch tech site, I’m just passing it on :slight_smile: I did a forum search or “rootbeer” and came up with nothing, so I hope I’m not duping here.

The gist of it is that it is more or less a Java specific version of OpenCL without all the baggage that comes with OpenCL. for a more in-depth description I advise you to read the blurb on the above link.

It’s basically a Java -> C transcoder. The code quality is rather bad, with hardcoded paths to files on the developers harddrive. :clue:

It generates CUDA code btw, so Nvidia/GPU only. AMD’s Aparapi works on OpenCL and can fall-back to java.util.concurrent CPU execution when that’s not available. What’s interesting about Rootbeer is the native emulation mode:

[quote]Can be used to arbitrarily compile any Java bytecode to x86/amd64 and launch the native code from within a Java process.
[/quote]

What’s even more interesting is this OpenJDK proposal. It’ll add GPU support to the actual JVM, no need to for any external library or effort on the developers part.

Hm but OpenJDK proposals, especially invasive ones, tend to not appear too quickly so until then an external library can certainly help.

But I get the idea that rootbeer in its current state is a first nice try and not something people would actually go and use. Of course with some feedback that might improve a lot.