Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Bindings for Java via "Critical Natives" #14

Closed
erthink opened this issue Aug 17, 2017 · 4 comments
Closed

Bindings for Java via "Critical Natives" #14

erthink opened this issue Aug 17, 2017 · 4 comments

Comments

@erthink
Copy link
Owner

erthink commented Aug 17, 2017

JNIEXPORT jlong JNICALL
JavaCritical_com_package_t1ha_t1ha1_le(jint length, jbyte* buf, jlong seed) {
    return t1ha1_le(buf, length, seed);
}

Related to benalexau/hash-bench#4
Related to https://bugs.openjdk.java.net/browse/JDK-7013347

@erthink
Copy link
Owner Author

erthink commented Nov 28, 2017

@vlsi ?

@vlsi
Copy link

vlsi commented Nov 29, 2017

@leo-yuriev , A "binding" for Java should probably be a Java library that calls t1ha or even falls back to Java implementation (e.g. when native library cannot be loaded for some reason).

So it should probably be a separate project like https://github.com/lmdbjava/native

t1ha-java?

PS Relevant links: https://github.com/fusesource/hawtjni, https://github.com/netty/netty/tree/4.1/transport-native-epoll, jnr/jnr-ffi#86 (comment)

@erthink
Copy link
Owner Author

erthink commented Nov 17, 2018

Nowadays Java is ready to die.

@amughrabi
Copy link

AdoptOpenJDK will support LTS releases for 4 years (on this cycle backed by RedHat) after the release. For JDK11 support will be offered at least as long as September 2022. https://adoptopenjdk.net/support.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants