Hacker GitHub

← All repos

java-native-access/jna

View on GitHub ↗ ★ 8,933 Java

Java Native Access

18 mentions on Hacker News by 14 people: 0 stories, 18 comments · first 2016-06-24 · latest 2025-02-04

Mentions per year 18 mentions · busiest year 2024 (6)
20082026
  1. https://github.com/java-native-access/jna/pull/1608 Much of this configuration could be automatic if more attention were given to GraalVM by library authors.
  2. …problem. I'm not sure if you've used JNA before? That's been the state of the art for many years: https://github.com/java-native-access/jna public interface MSVCRT extends Library { public static MSVCRT Instance = (MSVCRT)…
  3. …way, and how Cassandra does it. https://docs.oracle.com/en/java/javase/21/core/calling-c-lib... https://github.com/java-native-access/jna
    comment by papercrane · 2024-05-30 · in Vector indexing all of Wikipedia on a laptop
  4. It does! Code is here https://github.com/java-native-access/jna/blob/40f0a1249b5ad...
  5. According to JNA it's not safe to unload the DLL: https://github.com/java-native-access/jna/blob/40f0a1249b5ad... Do NOT force the class loader to unload the native library, since that introduces issues with cleaning up any extant JNA bits…
  6. …the library to a temp file, then load it. JNA does this? FYI: JNA = Java Native Access project: https://github.com/java-native-access/jna
  7. Wonder if this will make JNA (Java Native Access) redundant at some point: https://github.com/java-native-access/jna Very useful, especially the prebundled platform bindings.
  8. As far as I understand it, with JNA, all calls into C code go through libffi: https://github.com/java-native-access/jna/blob/master/www/Fu... This means that every call sets up some libffi data structures and libffi uses this information…
  9. …a pure java solution. Something like this has existed in third-party form for a while as JNA ( https://github.com/java-native-access/jna ), but now it's going to be built into the JRE itself (if the proposal passes through review)
  10. JNA looks reasonable for accessing native code from Java: https://github.com/java-native-access/jna/blob/master/www/Ge...
  11. I was the de facto maintainer of JNA ( https://github.com/java-native-access/jna ) win32 bindings for years. The API metadata is welcome - we have always based all work on header files in the visual studio / windows SDK. Now there’s a…
  12. …isn't thread-local by default, and you have to -D_THREAD_SAFE_ERRNO to get a thread-safe errno. [1] https://github.com/java-native-access/jna/issues/237
    comment by skissane · 2020-05-29 · in PowerPC Solaris on the RS/6000
  13. …native access these days. JNA overhead is pretty low, and it’s much simpler to use versus JNI. [1] https://github.com/java-native-access/jna
    comment by cobbzilla · 2019-05-10 · in IT Runs on Java 8
  14. …signals on your own, close file descriptors, etc). No surprises there. Let's say I am using JNA – https://github.com/java-native-access/jna – under Java. It is safe to call posix_spawn from Java code using JNA. It is safe to call the…
    comment by skissane · 2017-01-16 · in Systemd Sucks, Long Live Systemd
  15. …you actually start to write code against JNI, of course. JNA[1] makes things much simpler. [1] https://github.com/java-native-access/jna
    comment by wtetzner · 2017-01-11 · in Go 1.8 Release Candidate 1 is released
  16. …JNI, you can use JNA [1] (which I believe uses JNI to link to libffi, and libffi for the rest). [1] https://github.com/java-native-access/jna
    comment by wtetzner · 2016-10-27 · in JEP 295: Ahead-of-Time Compilation
  17. …version panama[2] will offer similar functionality to JNR. [0] https://github.com/jnr/jnr-ffi [1] https://github.com/java-native-access/jna [2] http://openjdk.java.net/projects/panama/
    comment by the8472 · 2016-10-27 · in JEP 295: Ahead-of-Time Compilation
  18. …be Project Panama[2] which will provide that out of the box. [0] https://github.com/jnr/jnr-ffi [1] https://github.com/java-native-access/jna/blob/master/www/Ge... [1] http://openjdk.java.net/projects/panama/