I have zero-allocation on the hot paths, memory segments for prompts and tokens are allocated once inside confined Arenas. Raw pointers pass straight through down to the low C level. This avoids primitive array cloning and heap churn.
I mapped out the native structures from llama.cpp and whisper.cpp while matching the compiler's padding to maintain safe memory access.
I bundle pre-compiled native binaries in the jar for easy deployment.
This execution engine provides the foundation I need for work I'm doing on a spatio-temporal memory layer (L-TABB) to replace RAGs. I'd love to get technical feedback to polish any issues while I continue working on the next layer. Deep-dives from anyone hacking on Project Panama or low-latency systems in modern JDK would be very appreciated!
I'm much better with code than prose, so I'll let the code do most of the talking.
Happy Hacking! /David
Code: https://libargus.cc Project Landing Page: https://projectargus.cc
exabrial•44m ago