@chris441 @huahaiy possibly interesting: https://www.blog.akhil.cc/static-jni
Awesome!! I will check this out.
That post links to an issue that will hopefully result in formal support for that pathway.
The article about Multi-tier compilation in GraalVM https://medium.com/graalvm/multi-tier-compilation-in-graalvm-5fbc65f92402
Thanks. This is JNI specific, but what would be really cool is to make the substrateVM API available for regular JVM, because it is direct native access , much faster than JNI, and the API is nice to use too. Statically linking native libraries with substrateVM API is not a problem. I am already doing that in Datalevin.