Skip to content

TypedMemory #2

Description

@mambastudio

Hi Marco,

I've been developing a library for a while (a lot of research due to bytecode concepts and analysis) called TypedMemory. What if you could model a struct using records and flatten them to native memory. It is based on jdk 25, and takes advantage of FFM and ClassFile-API. Doesn't use any reflection unless during initialisation. It's quite fast, and did some internal benchmarks, and competes quite well with native code (c code, you can find it in the test package). Just released it a few days ago, and published it in maven (hope it reflects soon), but you can give it a try. Tried my best to polish everything including API. Hope this will be useful, since I needed a very nice type model for native memory interoperability, especially when I use device based libraries such as JOCL. Honestly, ClassFile-API is a quite a blessing for java.

Joe.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions