Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Panama #38

Open
pschichtel opened this issue Mar 26, 2022 · 4 comments
Open

Project Panama #38

pschichtel opened this issue Mar 26, 2022 · 4 comments

Comments

@pschichtel
Copy link
Owner

It would be nice to have a version of JavaCAN that uses Project Panama for SocketCAN and epoll interaction instead of JNI, making this a pure Java project.

jextract might come in handy for generating the low-level glue-code:
http://cr.openjdk.java.net/~mcimadamore/panama/jextract_distilled.html

@splatch
Copy link
Contributor

splatch commented May 12, 2022

BTW have you thought of giving a try to jnr-ffi or JNA? I think both allow to cut JNI part with some performance sacrifices. I saw it used with dbus (for unix sockets) and systemd (to call its library). Both work with present releases of JVM.

@pschichtel
Copy link
Owner Author

Yes, both would work but face the exact same challenge as project panama.

@pschichtel
Copy link
Owner Author

labeling this for the next major version. I don't think it makes sense to do this without rethinking some API decisions.

@pschichtel
Copy link
Owner Author

Java 22 makes this Project Panama stable: https://openjdk.org/projects/jdk/22/

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

No branches or pull requests

2 participants