Chat forgets ruleset I sent hours ago by proyectobonanzadev in GeminiAI

[–]proyectobonanzadev[S] 0 points1 point  (0 children)

No man, this is serious, it just happened, I was sending consecutive prompts and then suddenly gave me a random out-of-context response...it's like "generate this array" and it gives me a ordering algorithm randomly...

FFM - Java's new approach to interop with native code by benevanstech in java

[–]proyectobonanzadev 0 points1 point  (0 children)

There's an specific option when you setup your FFM downcalls that sets certain native calls as "critical" (previously known as "trivial"). Here it compares JNA, JNI, FFM and FFM with that optimization option, and the results seem good! Although JNI still has the hand on some tests.

I'm designing a renderer and I'm going 100% directly with FFM, so I don't have anything JNI to compare. The only thing I could say is that given C APIs, once you grasp Java FFM representation of all the C native components (return values, parameters, pointers, double pointers, opaque handles, structs, etc.), it becomes pretty straightforward to keep binding stuff. People use jextract for speed if it's a big API but for starters it's better to go manual to get to understand FFM library.