dlang / project-ideas

Collection of impactful projects in the D ecosystem
36 stars 12 forks source link

Java Native Interface (JNI) library #19

Open burner opened 5 years ago

burner commented 5 years ago

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

rikkimax commented 3 years ago

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.

quickfur commented 3 years ago

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.