project-ideas icon indicating copy to clipboard operation
project-ideas copied to clipboard

Java Native Interface (JNI) library

Open burner opened this issue 6 years ago • 2 comments

D's features allow to write cut down the boilerplate of wrapper drastically. See the recently published excel-d for a comparison between the C++ implementation for registering a function in Excel and the D way. Similarly a solid JNI library would open up new many new use cases and allow the Java community to profit even easier from D's features.

Previous work: DJni, djvm

burner avatar May 11 '19 13:05 burner

Adam has recently developed a JNI library that he is actively using. https://github.com/adamdruppe/arsd/blob/master/jni.d

As such this project idea needs revisiting.

rikkimax avatar Feb 03 '21 12:02 rikkimax

I highly recommend Adam's JNI library. I'd advocate for it to be officially adopted, if at all possible. If not, I'd highly recommend borrowing from his design. He has made working with JNI so convenient that I'm embarrassed to admit it's actually making me start to like Java.

quickfur avatar Feb 03 '21 15:02 quickfur