4. sleeping while inside a monitor.
... Can someone clarify what this is?Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
31–40 of 82 posts
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#32Earlier quoted context omitted.
This Writing Java is unbearable without Eclipse/Netbeans. .NET a little bit less unbearable If your IDE "works harder" than your compiler, something seems wrong to me (of course we all expect things like syntax highlighting today)
This may be a problem if your truck breaks down in the desert, your 3g is out of range and you never thought to install an ide beforehand but apart from that when would you find yourself writing java without an ide?
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#33Earlier quoted context omitted.
It's a problem with a language if it requires heavyweight environments to make aspects of writing code in it acceptable.
This Writing Java is unbearable without Eclipse/Netbeans. .NET a little bit less unbearable If your IDE "works harder" than your compiler, something seems wrong to me (of course we all expect things like syntax highlighting today)
(Also I have written a fair amount of Java in vim and I didn't find it any more frustrating than writing Ruby in vim. And I don't even like Java.)
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#344. sleeping while inside a monitor. ... Can someone clarify what this is?
// In Java, all instances of Object are also a monitor.
// See https://en.wikipedia.org/wiki/Monitor_%28synchronization%29
Foo myMonitor = new Foo()
// To "enter" a monitor, you use 'synchronized'.
synchronized (myMonitor) {
// Inside the monitor, we could do a Thread.sleep.
Thread.sleep(100);
}
This is a very simplistic problem case. However, it is very possible for this to become a bigger problem. Because I can call arbitrary code when "inside" a monitor, it is very possible to call a method that does a sleep incidentally. (e.g. many implementations of IO operations will require some sort of sleep.)Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#35If Rootbeer or something similar allows me to program CUDA stuff in Clojure, then I am impressed and excited.
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#36I wonder if this is as big a win as it sounds. Regardless of what language you're using, you have to "think GPU" to get any performance from GPUs. The additional overhead of using CUDA/OpenCL syntax seems pretty small in comparison.
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#37Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#38I had forgotten just how much I hate java namespaces. import edu.syr.pcpratts.rootbeer.testcases.rootbeertest.serialization.MMult; This seems like a pretty amazing project if the claims are true, though - I wasn't aware that CUDA was able to express so many of the concepts used to implement Java applications. The performance data in the slides is certainly compelling!
Ruby has Modules, but many, many common libraries do not use them. I had fun recently debugging a project that (through transitive dependencies) relied on two different "progress bar" libraries, both with a class called "Progress", and neither of which was namespaced. Namespaces solve a real problem.
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#39I wonder if this is as big a win as it sounds. Regardless of what language you're using, you have to "think GPU" to get any performance from GPUs. The additional overhead of using CUDA/OpenCL syntax seems pretty small in comparison.
Decompressing a 5MP jpg then applying various filters is too lightweight a task to benefit. I thought that would be more or less a perfect GPU task, not so.
Running on OpenCL, the CPU with vector instructions horses a small GPU performance wise for this problem.
Re: Rootbeer GPU Compiler Lets Almost Any Java Code Run On the GPU
#40Earlier quoted context omitted.
This may be a problem if your truck breaks down in the desert, your 3g is out of range and you never thought to install an ide beforehand but apart from that when would you find yourself writing java without an ide?
When you're using somebody else's computer.