www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D binding to JNI

reply "monnoroch" <monnoroch gmail.com> writes:
I created a D binding to JNI and some convenient wrappers around 
it.
Here it is: https://github.com/Monnoroch/DJni

Note, that this is a port from similar C++ lib, so it can be not 
the best D code, but it's a start.
I would love if someone would contribute to the project.
Apr 02 2014
next sibling parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
On 2 April 2014 17:53, monnoroch <monnoroch gmail.com> wrote:
 I created a D binding to JNI and some convenient wrappers around it.
 Here it is: https://github.com/Monnoroch/DJni

 Note, that this is a port from similar C++ lib, so it can be not the best D
 code, but it's a start.
 I would love if someone would contribute to the project.
Nice, have you tested this against gcj by any chance? If not I could give it a whirl and report back.
Apr 02 2014
parent "monnoroch" <monnoroch gmail.com> writes:
On Wednesday, 2 April 2014 at 18:13:01 UTC, Iain Buclaw wrote:
 Nice, have you tested this against gcj by any chance?  If not I 
 could
 give it a whirl and report back.
No, only dmd, somwhat around 2.053. Report would be awesome.
Apr 02 2014
prev sibling next sibling parent reply Russel Winder <russel winder.org.uk> writes:
On Wed, 2014-04-02 at 19:12 +0100, Iain Buclaw wrote:
[…]
 
 Nice, have you tested this against gcj by any chance?  If not I could
 give it a whirl and report back.
I am not sure there is much point in testing against gcj, the only real market is OpenJDK, Oracle (which is OpenJDK just packaged), J9, Azul. Of course the chances of accessing the latter two are probably zero ;-) -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
Apr 02 2014
parent Paulo Pinto <pjmlp progtools.org> writes:
Am 02.04.2014 21:19, schrieb Russel Winder:
 On Wed, 2014-04-02 at 19:12 +0100, Iain Buclaw wrote:
 […]
 Nice, have you tested this against gcj by any chance?  If not I could
 give it a whirl and report back.
I am not sure there is much point in testing against gcj, the only real market is OpenJDK, Oracle (which is OpenJDK just packaged), J9, Azul. Of course the chances of accessing the latter two are probably zero ;-)
Not sure why, I have J9 right here on my laptop. And anyone can get an evaluation version from IBM. As for gcj, lets bury it. It is dead since 2009. For those that care about native code compilers for Java, there is RoboVM, Aonix, Excelsior JET, Aicas and a few other ones. -- Paulo
Apr 02 2014
prev sibling parent "NVolcz" <volcz kth.se> writes:
On Wednesday, 2 April 2014 at 16:53:28 UTC, monnoroch wrote:
 I created a D binding to JNI and some convenient wrappers 
 around it.
 Here it is: https://github.com/Monnoroch/DJni

 Note, that this is a port from similar C++ lib, so it can be 
 not the best D code, but it's a start.
 I would love if someone would contribute to the project.
Could not find any examples or descriptive unittests. I would be very interested in using something like this!
Apr 03 2014