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

Well… the moment you have to do FFI in Java is when you give up. It’s straight up the worst I’ve seen from all higher level languages. I rather do CGO than use JNI. Its actually less bad when using Rust but still bad.


This is supposed to replace JNI from what I gather: https://openjdk.org/jeps/442


Java is my go to for everything. In my entire career I’ve never had to use FFI.


Interesting, from 3 different jobs, all of them needed FFI. The first one was using C#. The second was Swift and Java (android). The current one is Java, NodeJS, C#, Python, Go.

This tends to happen when you want to write common shared libraries that are business critical and want one implementation only or when the library exist but in another language.


Never did FFI for exactly the stated reason; there are portable, mature libraries for almost anything.




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

Search: