4 ms·
In pieces of my code, I need to call setuserid() to manage some of the security that I designed in 2010. There was no Rust at that point, and I used the most b
by chasil 9mo ago
In pieces of my code, I need to call setuserid() to manage some of the security that I designed in 2010.
There was no Rust at that point, and I used the most basic tool that could do it.
Could I have done this in Java with gymnastics of JNI, linking C into the JRE?
Definite maybe.
- pjmlp 9mo agoYes, nowadays with Panama, and before Rust was around, JNA was already there so using JNI wasn't strictly necessary.
- direwolf20 9mo agoJNA is a whole dependency of its own, shame it's not built into the JRE
- pjmlp 9mo agoIt is nowadays, that is what Panama is for. Unless one is stuck with Android Java, Google's J++.