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
- Host: GitHub
- URL: https://github.com/keynmol/scala-native-java-ffm-template
- Owner: keynmol
- Created: 2025-02-15T15:02:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T10:44:27.000Z (over 1 year ago)
- Last Synced: 2025-10-15T10:12:19.585Z (8 months ago)
- Topics: jextract, scala, scala-native, scala3, sn-bindgen
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`