3 ms·
Can I use the Java implementations in another language without significant headache?
by bheadmaster 10mo ago
Can I use the Java implementations in another language without significant headache?
- fweimer 10mo agoIt's possible in practice (at least more so than with Go), but it's highly unusual. Back when free Java became a thing, I used it at first to obtain a memory-safe TLS implementation. It worked out well, I think, but there is a strong tendency for the JVM to become the trunk of your application that holds everything together.
- bheadmaster 9mo ago> at least more so than with Go It's actually quite easy to create a C bindings for a Go library, using CGo and -buildmode=c-shared. I'm not sure what effect the Go runtime has on the overall application, but it doesn't seem like it would be "less possible" than with Java.
- pjmlp 9mo agoDepends on what is done, GraalVM supports native libraries. https://www.graalvm.org/latest/reference-manual/native-image/guides/build-native-shared-library/ https://www.graalvm.org/latest/reference-manual/native-image... Then again, many times OS IPC is a much better option.