Hi guys
Given that I'm quite ignorant on these matters, but I was just looking at this fantastic setup using Adobe Alchemy. For those who don't know, Alchemy allows Flash/ActionScript to access C++ natively compiled DLLs. And although it's not as fast as C++, it does run faster than native ActionScript.
Now, JNI/JNA does pretty much the same thing for Java; in fact these are likely where the idea for Adobe Alchemy came from (since Adobe loves to parrot Java).
Why is it that we even have JBox2d, then? Is it so much slower to access a DLL via something like JNA? OK, given, this is physics we're talking about -- pretty damn intensive computation, potentially... but I suspect that any sub-calls within the DLL itself would not experience latency, only calls to the DLL from Java (?)
❓
Just be interested to know what you lead devs thoughts are on this (especially ewjordan). And just so you don't get me wrong -- I really appreciate the work that's been put into JBox2d; working with Java and such a powerful library together is a pleasure. But the benefits, if JNI/JNA could possibly be fast enough, are quite obvious.
EDIT: I found this, relevant to the topic: How does JNA performance compare to custom JNI?
Given that I'm quite ignorant on these matters, but I was just looking at this fantastic setup using Adobe Alchemy. For those who don't know, Alchemy allows Flash/ActionScript to access C++ natively compiled DLLs. And although it's not as fast as C++, it does run faster than native ActionScript.
Now, JNI/JNA does pretty much the same thing for Java; in fact these are likely where the idea for Adobe Alchemy came from (since Adobe loves to parrot Java).
Why is it that we even have JBox2d, then? Is it so much slower to access a DLL via something like JNA? OK, given, this is physics we're talking about -- pretty damn intensive computation, potentially... but I suspect that any sub-calls within the DLL itself would not experience latency, only calls to the DLL from Java (?)
❓
Just be interested to know what you lead devs thoughts are on this (especially ewjordan). And just so you don't get me wrong -- I really appreciate the work that's been put into JBox2d; working with Java and such a powerful library together is a pleasure. But the benefits, if JNI/JNA could possibly be fast enough, are quite obvious.
EDIT: I found this, relevant to the topic: How does JNA performance compare to custom JNI?