An open API service indexing awesome lists of open source software.

https://github.com/keynmol/scala-native-java-ffm-template

Call Scala Native from Java/Scala using FFI
https://github.com/keynmol/scala-native-java-ffm-template

jextract scala scala-native scala3 sn-bindgen

Last synced: about 2 months ago
JSON representation

Call Scala Native from Java/Scala using FFI

Awesome Lists containing this project

README

          

## SBT template demonstrating Java and Scala Native interop via FFM

Powered by [sbt-jextract plugin](https://github.com/indoorvivants/sbt-jextract), uses setup described in my [blog post](https://blog.indoorvivants.com/2025-02-16-scala-native-from-java-via-ffm).

**This project requires JDK 23+ to work**

If you have [Coursier](https://get-coursier.io/docs/overview) installed, you can launch SBT with `cs launch sbt --jvm 23`,
or just run the Java code with `cs launch sbt --jvm 23 -- jvmSide/run`