Recent Posts

Ensuring the right usage of Java 21 new features

Last September 2023 a new version of Java was released as the latest LTS (Long Time Support). This 21st version brought lots of new features that will improve performance and clarity in our code base. But taking advantage of these changes and new features, which we are not used to including in our code, can be a tough task. Also, …

Read More »

Hello eBPF: Auto Layouting Structs (7)

Welcome back to my series on ebpf. In the last article, we learned how to use ring buffers with libbpf for efficient communication. This week, we’re looking into the memory layout and alignment of structs transferred between the kernel and user-land. Alignment is essential; it specifies how the compiler layouts the structs and variables and where to put the data …

Read More »

Calling Gemma with Ollama, TestContainers, and LangChain4j

Lately, for my Generative AI powered Java apps, I’ve used the Gemini multimodal large language model from Google. But there’s also Gemma, its little sister model. Gemma is a family of lightweight, state-of-the-art open models built from the same research and technology used to create the Gemini models. Gemma is available in two sizes: 2B and 7B. Its weights are …

Read More »