inline-java
inline-java copied to clipboard
Haskell/Java interop via inline Java code in Haskell modules.
There are three problems that could be addressed by the introduction of type-level regions: 1. Preventing reference leaks. Related #7 2. Caching class references (by using a reader monad). Related...
One well known difficulty of interoperating two languages with automatic memory management is that the two garbage collectors tend to cut the grass under each other's feet. This is because...
For calls from Haskell into the JVM `jni` relies on a cached pointer to JNI's `JavaVM` struct. This pointer is currently obtained via the `jvm` function that calls `JNI_GetCreatedJavaVMs`: https://github.com/tweag/inline-java/blob/master/jni/src/common/Foreign/JNI/Unsafe/Internal.hs#L363...
For use with haskell.nix, which relies on cabal, include `.cabal` and `.h` files: https://github.com/user16332/inline-java/commit/3fa95fde11c9c1731f08b1654d4626b0e1cefabb