Thread overview
D binding to JNI
Apr 02, 2014
monnoroch
Apr 02, 2014
Iain Buclaw
Apr 02, 2014
monnoroch
Apr 02, 2014
Russel Winder
Apr 02, 2014
Paulo Pinto
Apr 03, 2014
NVolcz
April 02, 2014
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.
April 02, 2014
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.
April 02, 2014
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.
April 02, 2014
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

April 02, 2014
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
April 03, 2014
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!