Skip to content

Undefinedly/ffmkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffmkit

A modern, type-safe abstraction over the Java Foreign Function & Memory (FFM) API.

ffmkit makes native interop on Java 22+ feel like a high-level library — not like programming the linker by hand.

Group / package io.github.undeffineddev.ffmkit
Module io.github.undeffineddev.ffmkit
Java 22+
Build Gradle
Status 0.1.0-EXPERIMENTAL

Why ffmkit?

Since Java 22, the supported way to talk to native code is FFM (Project Panama) — the modern replacement for JNI. FFM is powerful, but:

  • It is verbose and confusing for beginners (Arena, Linker, FunctionDescriptor, MethodHandle, …)
  • Memory management is easy to get wrong
  • Mapping C types ↔ Java by hand is repetitive

Then I thought about creating a small library to facilitate development

Warning

This is an experimental project, so expect breaking changes.


Documentation

About

A modern, type-safe abstraction over Java's Foreign Function & Memory API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Languages