Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.





Yes, nowadays with Panama, and before Rust was around, JNA was already there so using JNI wasn't strictly necessary.

JNA is a whole dependency of its own, shame it's not built into the JRE

It is nowadays, that is what Panama is for.

Unless one is stuck with Android Java, Google's J++.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: