# Davide Angelocola

Homepage of Davide Angelocola

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## FFM Design Patterns

DevFeed: [FFM Design Patterns](<https://devfeed.tech/articles/ffm-design-patterns-134459.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/ffm-design-patterns.html>)

Author: Davide Angelocola

Published: 2026-11-15T00:00:00Z

Content type: article

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [atomic reference counting](<https://devfeed.tech/topics/atomic-reference-counting.md>), [coding patterns](<https://devfeed.tech/topics/coding-patterns.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [c](<https://devfeed.tech/tags/c.md>), [design](<https://devfeed.tech/tags/design.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [java](<https://devfeed.tech/tags/java.md>), [memory](<https://devfeed.tech/tags/memory.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [project-panama](<https://devfeed.tech/tags/project-panama.md>)

### AI overview

The draft's central rule is to make each native pointer's ownership and lifetime explicit: use confined arenas for call-scoped memory, platform layouts for C types such as `size_t`, and wrapper patterns for owned, transferred, borrowed, parent-owned, or shared resources. It illustrates why parent-child cleanup order matters, why close operations may need to refuse before releasing state, and why shared references need reference counting to prevent use-after-free races. Longer-lived buffers and upcall stubs must live as long as the native object that uses them; callbacks must catch failures, and `critical` downcalls must neither call back into Java nor block. It also recommends translating library-specific errors at the Java boundary, keeping raw FFM bindings separate from an idiomatic public API, and granting native access through launcher configuration. The text distinguishes implemented project patterns from proposals, including refcounting for shared dictionary references, and notes known race and lifecycle limitations.

### Source excerpt

Java's Foreign Function & Memory API, one of the outcomes of Project Panama, is well documented as an API. Wrapping a real C library with it is a different problem: who owns each pointer, who frees it, and when, is left to you. These are the patterns I use.

## A Tour of the Vortex Columnar Format with vortex-java

DevFeed: [A Tour of the Vortex Columnar Format with vortex-java](<https://devfeed.tech/articles/a-tour-of-the-vortex-columnar-format-with-vortex-java-85841.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/a-tour-of-the-vortex-columnar-format-with-vortex-java.html>)

Author: Davide Angelocola

Published: 2026-10-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [parquet](<https://devfeed.tech/topics/parquet.md>), [CSV](<https://devfeed.tech/topics/csv.md>), [Plover](<https://devfeed.tech/topics/plover.md>)

Tags: [bit-packing](<https://devfeed.tech/tags/bit-packing.md>), [compression](<https://devfeed.tech/tags/compression.md>), [csv](<https://devfeed.tech/tags/csv.md>)

### AI overview

A hands-on tour of the Vortex columnar file format using vortex-java and Binance market data. It explains how Vortex selects and combines encodings by column and chunk, compares storage and query performance with CSV and Zstandard, and demonstrates inspecting and querying the resulting file.

### Source excerpt

Vortex is a columnar file format whose compressor picks an encoding per column and per chunk. It follows the BtrBlocks paper: a handful of simple encodings, combined recursively, instead of one clever encoding. This is a tour of the format using the vortex-java library on a public CSV file. It is for someone new to Vortex: what went in, how it is laid out, and which encoding each column ended up with, and why. If you would rather start with pictures, SpiralDB's Vortex: One Format for Any Shape animates the dictionary, run-end and bit-packing encodings used below, and how they cascade.

## A Tour of the Vortex Columnar Format: using vortex-java

DevFeed: [A Tour of the Vortex Columnar Format: using vortex-java](<https://devfeed.tech/articles/a-tour-of-the-vortex-columnar-format-using-vortex-java-84683.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/vortex-on-a-real-dataset.html>)

Author: Davide Angelocola

Published: 2026-10-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [parquet](<https://devfeed.tech/topics/parquet.md>), [CSV](<https://devfeed.tech/topics/csv.md>), [Jackson](<https://devfeed.tech/topics/jackson.md>), [Plover](<https://devfeed.tech/topics/plover.md>), [Handlebars](<https://devfeed.tech/topics/handlebars.md>)

Tags: [compression](<https://devfeed.tech/tags/compression.md>), [csv](<https://devfeed.tech/tags/csv.md>), [data-lakes](<https://devfeed.tech/tags/data-lakes.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [java](<https://devfeed.tech/tags/java.md>)

### AI overview

This tutorial uses vortex-java to explain Vortex, a columnar file format, by compressing a year of Binance candlestick data. It walks through per-column and per-chunk encodings, reports size and timing comparisons with CSV and zstd, and demonstrates querying the file with DuckDB and the Vortex CLI. The author also describes a compact preset and notes that read speed for compact files was not measured.

### Source excerpt

Vortex is a columnar file format whose compressor picks an encoding per column and per chunk. It follows the BtrBlocks paper: a handful of simple encodings, combined recursively, instead of one clever encoding. This is a tour of the format using the vortex-java library on a public CSV file. It is for someone new to Vortex: what went in, how it is laid out, and which encoding each column ended up with, and why. If you would rather start with pictures, SpiralDB's Vortex: One Format for Any Shape animates the dictionary, run-end and bit-packing encodings used below, and how they cascade.

## RFC 9842 for Microservices: It Depends

DevFeed: [RFC 9842 for Microservices: It Depends](<https://devfeed.tech/articles/rfc-9842-for-microservices-it-depends-55614.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/rfc-9842-for-microservices.html>)

Author: Davide Angelocola

Published: 2026-09-14T00:00:00Z

Content type: comparison

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [gRPC](<https://devfeed.tech/topics/grpc.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>)

Tags: [compression](<https://devfeed.tech/tags/compression.md>), [grpc](<https://devfeed.tech/tags/grpc.md>), [http](<https://devfeed.tech/tags/http.md>), [latency](<https://devfeed.tech/tags/latency.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [migration](<https://devfeed.tech/tags/migration.md>), [sdks](<https://devfeed.tech/tags/sdks.md>)

### AI overview

The article examines RFC 9842's compression dictionary negotiation for HTTP services, especially microservices and public APIs. It compares shared-dictionary compression with changing payload formats over gRPC, and discusses tradeoffs involving latency, deployment coordination, client control, and dictionary rotation.

### Source excerpt

RFC 9842 -- Compression Dictionary Transport, published September 2025 -- lets HTTP clients and servers negotiate a shared compression dictionary, then compress responses against it (dcb for Brotli, dcz for Zstandard). It was written with browsers in mind: the spec's two motivating use cases (§1.1) are a delta-compressed JS bundle against the previous version, and a dictionary of common HTML/template boilerplate shared across pages.

## RocksDB Performance and Zero-Copy

DevFeed: [RocksDB Performance and Zero-Copy](<https://devfeed.tech/articles/rocksdb-performance-and-zero-copy-41530.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/rocksdb-performance-and-zero-copy.html>)

Author: Davide Angelocola

Published: 2026-08-08T00:00:00Z

Content type: article

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [rocksdb](<https://devfeed.tech/topics/rocksdb.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Java](<https://devfeed.tech/topics/java.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [java](<https://devfeed.tech/tags/java.md>), [library](<https://devfeed.tech/tags/library.md>), [memory](<https://devfeed.tech/tags/memory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rocksdb](<https://devfeed.tech/tags/rocksdb.md>), [zero-copy](<https://devfeed.tech/tags/zero-copy.md>)

### AI overview

This article examines zero-copy reads for an FFM-based RocksDB binding between C++ and Java. It describes callback-scoped memory management, pinned data, resource lifetimes, and benchmark results showing that zero-copy is not always faster for small values.

### Source excerpt

rocksdbffm, the FFM-based RocksDB binding I wrote about last time. Here's what it took to get reads down to zero allocations -- and what the benchmarks had to say about it.

## zstd-ffm: A Java 25 Zstandard Binding Using the Foreign Function & Memory API

DevFeed: [zstd-ffm: A Java 25 Zstandard Binding Using the Foreign Function & Memory API](<https://devfeed.tech/articles/announcing-zstd-ffm-41521.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/announcing-zstd-ffm.html>)

Author: Davide Angelocola

Published: 2026-07-26T00:00:00Z

Content type: release

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [compression](<https://devfeed.tech/tags/compression.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [java](<https://devfeed.tech/tags/java.md>), [library](<https://devfeed.tech/tags/library.md>)

### AI overview

The author introduces zstd-ffm, a Zstandard binding for Java 25 built with the Foreign Function & Memory API. It trades compatibility with older Java versions for typed Java bindings, managed memory lifetimes, and cross-platform native builds, while zstd-jni remains the option for Java 8 through 21.

### Source excerpt

I needed Zstandard compression for vortex-java, a pure-Java implementation of the Vortex columnar format I've been building. The obvious choice was zstd-jni -- mature, tracks upstream zstd closely, ships to Maven Central and Android, and runs in production everywhere. But it's a JNI binding: a compiled shim per platform, built against whatever Java version its users still run. I wanted to know what a Zstd binding looks like starting from JDK 25 instead of JDK 8. The result is zstd-ffm -- not a replacement for zstd-jni, but a bet on three things modern Java gives you for free.

## AI coding needs automated feedback loops and testing harnesses

DevFeed: [AI coding needs automated feedback loops and testing harnesses](<https://devfeed.tech/articles/build-the-loop-not-the-prompt-41522.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/build-the-loop-not-the-prompt.html>)

Author: Davide Angelocola

Published: 2026-07-06T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Java](<https://devfeed.tech/topics/java.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [java](<https://devfeed.tech/tags/java.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

### AI overview

The article argues that effective AI coding depends less on better prompts than on automated feedback loops. Compilers, CI, mutation testing, and other checks can detect errors cheaply before human review, making tight feedback loops essential when agents produce code faster than teams can inspect it.

### Source excerpt

Recently I built three small Java libraries using JDK 25 and the Foreign Function & Memory API: rocksdbffm, vortex-java, and zstd-ffm. Most of the code was written by an AI agent. The lesson that stuck wasn't about the model: an agent is only as good as the harness around it -- a safe language to write in, and a tight loop of tools to catch it when it's wrong.

## Software Engineering Rules Explained Through Stories, Trade-offs, and Decision Records

DevFeed: [Software Engineering Rules Explained Through Stories, Trade-offs, and Decision Records](<https://devfeed.tech/articles/earn-your-rules-41525.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/earn-your-rules.html>)

Author: Davide Angelocola

Published: 2026-07-04T00:00:00Z

Content type: article

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [engineering-culture](<https://devfeed.tech/topics/engineering-culture.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [Wiki](<https://devfeed.tech/topics/wiki.md>), [trust](<https://devfeed.tech/topics/trust.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [repo](<https://devfeed.tech/tags/repo.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [wiki](<https://devfeed.tech/tags/wiki.md>)

### AI overview

The author revisits a list of software engineering rules, retaining principles grounded in personal experience and explaining the reasoning behind them. The article emphasizes documenting trade-offs through mechanisms such as code comments, project wikis, and Architecture Decision Records, including in repositories used by AI-assisted development workflows.

### Source excerpt

Once in a while, someone shares an "X rules of software engineering" list and I find myself agreeing with about a third of it. This is my pass through one such list -- keeping what I've actually had to write down somewhere, dropping what I haven't, and rewriting the rest in my own language. Each rule opens with an extract from the story where it was earned.

## Project Valhalla Uses Java Value Classes to Reduce Domain-Primitive Overhead

DevFeed: [Project Valhalla Uses Java Value Classes to Reduce Domain-Primitive Overhead](<https://devfeed.tech/articles/rethink-domain-primitives-with-valhalla-41529.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/rethink-domain-primitives-with-valhalla.html>)

Author: Davide Angelocola

Published: 2026-05-16T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Project Valhalla](<https://devfeed.tech/topics/project-valhalla.md>), [JEP-401](<https://devfeed.tech/topics/jep-401.md>), [Scala](<https://devfeed.tech/topics/scala.md>), [Java](<https://devfeed.tech/topics/java.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>)

Tags: [compiler](<https://devfeed.tech/tags/compiler.md>), [heap](<https://devfeed.tech/tags/heap.md>), [java](<https://devfeed.tech/tags/java.md>), [jep-401](<https://devfeed.tech/tags/jep-401.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [memory](<https://devfeed.tech/tags/memory.md>), [performance](<https://devfeed.tech/tags/performance.md>), [project-valhalla](<https://devfeed.tech/tags/project-valhalla.md>), [scala](<https://devfeed.tech/tags/scala.md>), [valhalla](<https://devfeed.tech/tags/valhalla.md>)

### AI overview

The article examines how Project Valhalla value classes can make domain-specific types more practical in performance-sensitive Java code. It focuses on flattening wrappers into arrays, registers, and object fields to reduce heap allocation, indirection, memory use, cache misses, and garbage-collection overhead.

### Source excerpt

Your Compiler Is Already Part of Your Security Team made the case for domain primitives: encode constraints in types, the compiler enforces them forever. The recurring objection -- a wrapper class per int is one heap object per value, plus a pointer to reach it. Fine at the boundary; questionable in a hot loop where allocations and cache misses dominate.

## The Cost of Implicitness

DevFeed: [The Cost of Implicitness](<https://devfeed.tech/articles/the-cost-of-implicitness-41531.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/the-cost-of-implicitness.html>)

Author: Davide Angelocola

Published: 2026-05-09T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [opinion](<https://devfeed.tech/tags/opinion.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [teams](<https://devfeed.tech/tags/teams.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This self-reflection post argues that implicit assumptions create deferred costs in software teams, code, and service boundaries. It advocates encoding assumptions in documentation, types, versioned contracts, tests, and CI so they become verifiable and reversible.

### Source excerpt

You don't pay for implicit assumptions when you write them. You pay when a new joiner interprets them differently, when two teams deploy on different schedules and discover the shared understanding was never shared, when a hotfix swaps two int arguments that meant two different things and the compiler had no opinion. The cost is deferred, invisible, and always larger than expected.

## Stabilizing a Failing Java Web Application with Daily Production Outages

DevFeed: [Stabilizing a Failing Java Web Application with Daily Production Outages](<https://devfeed.tech/articles/the-slow-fix-41533.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/the-slow-fix.html>)

Author: Davide Angelocola

Published: 2026-04-30T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [shared mutable state](<https://devfeed.tech/topics/shared-mutable-state.md>), [Code](<https://devfeed.tech/topics/code.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [Spring MVC](<https://devfeed.tech/topics/spring-mvc.md>), [Hibernate](<https://devfeed.tech/topics/hibernate.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [business logic](<https://devfeed.tech/topics/business-logic.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [database](<https://devfeed.tech/tags/database.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [developers](<https://devfeed.tech/tags/developers.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [java](<https://devfeed.tech/tags/java.md>), [mvc](<https://devfeed.tech/tags/mvc.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [shared-mutable-state](<https://devfeed.tech/tags/shared-mutable-state.md>), [spring](<https://devfeed.tech/tags/spring.md>)

### AI overview

A consultant recounts efforts to stabilize a large Java web application that was suffering roughly daily production outages. The system had unsynchronized shared state, database connection leaks, unbounded memory growth, layered frameworks, mixed MySQL table engines, and hard-to-debug reflective business logic.

### Source excerpt

This is a success story from when I was working as a consultant in the mid 2010s. This is an extract from notes I took at that time. The inspiration is "The Phoenix Project" -- minus the novel format. The goal here is simpler: document what happened, in case it's useful to someone standing at the same starting point.

## From BPF to eBPF, Twenty Years Later

DevFeed: [From BPF to eBPF, Twenty Years Later](<https://devfeed.tech/articles/from-bpf-to-ebpf-twenty-years-later-41526.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/from-bpf-to-ebpf-twenty-years-later.html>)

Author: Davide Angelocola

Published: 2026-04-19T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [eBPF](<https://devfeed.tech/topics/ebpf.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [compiler](<https://devfeed.tech/tags/compiler.md>), [ebpf](<https://devfeed.tech/tags/ebpf.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [network](<https://devfeed.tech/tags/network.md>)

### AI overview

A retrospective traces Berkeley Packet Filter from hand-written bytecode in a 2004 packet sniffer to eBPF running in the Linux kernel. It explains how verifier constraints support safe execution and how the original bytecode remained compatible across kernel generations.

### Source excerpt

In 2004, I wrote a packet sniffer called pangolin. It filtered network traffic using BPF -- Berkeley Packet Filter. Raw bytecode. No compiler, no abstraction. Instructions for a virtual machine running inside the Linux kernel, written by hand. Twenty years later, I compiled pangolin on kernel 6.17 on ARM64. One type fix -- size_t -> socklen_t -- and it ran. The bytecode in filters.c was untouched. That got me curious. The bytecode survived twenty years unchanged -- what did the tooling around it become? Brendan Gregg's eBPF overview was the map I used to find out.

## Building an Experimental Java RocksDB Wrapper with the Foreign Function & Memory API

DevFeed: [Building an Experimental Java RocksDB Wrapper with the Foreign Function & Memory API](<https://devfeed.tech/articles/java-rocksdb-jni-41527.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/java-plus-rocksdb-minus-jni.html>)

Author: Davide Angelocola

Published: 2026-04-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [rocksdb](<https://devfeed.tech/topics/rocksdb.md>), [C](<https://devfeed.tech/topics/c.md>), [Code](<https://devfeed.tech/topics/code.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [java](<https://devfeed.tech/tags/java.md>), [llm](<https://devfeed.tech/tags/llm.md>), [rocksdb](<https://devfeed.tech/tags/rocksdb.md>)

### AI overview

This article describes rocksdbffm, an experimental Java wrapper for RocksDB that uses Java's Foreign Function & Memory API instead of JNI. It explains FFM concepts, generated low-level bindings from RocksDB's C API, and the idiomatic Java API built on top.

### Source excerpt

The best way I know to learn something is to build something real with it. I wanted to understand Java's Foreign Function & Memory (FFM) API properly -- not just read the Javadoc, but actually use it. RocksDB was the obvious vehicle: I'm a long-time user of RocksDB and it has a well-defined C API and a problem space I already understood. The result is rocksdbffm: an experimental RocksDB wrapper for Java using FFM instead of JNI.

## Coding with Claude Code: A Week on hosh

DevFeed: [Coding with Claude Code: A Week on hosh](<https://devfeed.tech/articles/coding-with-claude-code-a-week-on-hosh-41523.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/coding-with-claude-code.html>)

Author: Davide Angelocola

Published: 2026-03-29T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Code](<https://devfeed.tech/topics/code.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Java](<https://devfeed.tech/topics/java.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-coding-agent](<https://devfeed.tech/tags/ai-coding-agent.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [java](<https://devfeed.tech/tags/java.md>), [junit](<https://devfeed.tech/tags/junit.md>), [shell](<https://devfeed.tech/tags/shell.md>), [sonarqube](<https://devfeed.tech/tags/sonarqube.md>), [speed](<https://devfeed.tech/tags/speed.md>)

### AI overview

An experiment using Claude Code on hosh, a mature Java shell project, found that project-specific context and guardrails improved the quality and consistency of AI-generated changes. The author also found that rapid review and iteration were valuable, while delegating larger tasks without supervision reduced quality.

### Source excerpt

I've been experimenting with Claude Code on my side project hosh, an experimental shell written in Java. After a few days of pairing with an AI agent on real tasks -- adding features, fixing bugs, resolving SonarQube warnings -- here's what I found.

## Java SIGINT Handling: Why Replacing an Internal API Changed Shell Behavior

DevFeed: [Java SIGINT Handling: Why Replacing an Internal API Changed Shell Behavior](<https://devfeed.tech/articles/the-joy-of-proper-encapsulation-41532.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/the-joy-of-proper-encapsulation.html>)

Author: Davide Angelocola

Published: 2026-03-27T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [POSIX](<https://devfeed.tech/topics/posix.md>), [Process](<https://devfeed.tech/topics/process.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [posix](<https://devfeed.tech/tags/posix.md>), [process](<https://devfeed.tech/tags/process.md>), [risk](<https://devfeed.tech/tags/risk.md>)

### AI overview

The author describes replacing Java's internal signal-handling API in the hosh interactive shell after stronger module encapsulation in newer JDKs. The replacement used a shutdown hook, which changed Ctrl+C behavior from cancelling the current command while preserving the JVM to terminating the entire process.

### Source excerpt

Today I pushed a commit to hosh. The commit message was innocent enough: fix: avoid usage of jdk.internal.Signal. The diff was 20 lines added, 31 removed. And it was wrong -- not syntactically, but semantically. It changed the behavior of my program in a way I didn't fully appreciate until I sat down and thought about what the Java Platform Module System was actually telling me. This is a story about that mistake, and about why I think Java's module system, for all the grief it gets, is one of the best things that happened to the platform.

## Decouple Allocations from Request Volume

DevFeed: [Decouple Allocations from Request Volume](<https://devfeed.tech/articles/decouple-allocations-from-request-volume-41524.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/decouple-allocations-from-request-volume.html>)

Author: Davide Angelocola

Published: 2023-11-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [rocksdb](<https://devfeed.tech/topics/rocksdb.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Java](<https://devfeed.tech/topics/java.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rocksdb](<https://devfeed.tech/tags/rocksdb.md>)

### AI overview

The article examines a RocksDB read path whose allocation rate grew with request volume rather than concurrency. It uses a JMH benchmark to identify heap-allocation and garbage-collection costs, then discusses pooled direct buffers and RocksDB's Java API as a way to reduce per-request copying and allocation.

### Source excerpt

Millions of requests per day. RocksDB as the storage engine, returning variable-size values. Nothing about this load profile suggests a performance problem. The implementation has a structural flaw: allocation rate scales with request rate, when it should scale with concurrency.

## Designing Versioned APIs with Explicit Contracts and Isolated DTOs

DevFeed: [Designing Versioned APIs with Explicit Contracts and Isolated DTOs](<https://devfeed.tech/articles/make-the-implicit-explicit-41528.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/make-the-implicit-explicit.html>)

Author: Davide Angelocola

Published: 2022-06-10T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [testing](<https://devfeed.tech/tags/testing.md>), [versioning](<https://devfeed.tech/tags/versioning.md>)

### AI overview

A retrospective on an authorization service shared by separate teams. It explains how versioned API contracts, point-in-time consistency, isolated DTOs, OpenAPI specifications, and contract testing enabled independent releases and safer migration through breaking changes.

### Source excerpt

A Data API with per-request authorization -- entitlements delegated to an Entitlement API owned by a separate team. A series of forced decisions -- versioned contracts, point-in-time consistency, decorator-based composition -- each driven by a different problem. This is a retrospective on a real system.

## Your Compiler is already part of your Security Team

DevFeed: [Your Compiler is already part of your Security Team](<https://devfeed.tech/articles/your-compiler-is-already-part-of-your-security-team-41535.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/your-compiler-is-already-part-of-your-security-team.html>)

Author: Davide Angelocola

Published: 2021-01-04T00:00:00Z

Content type: article

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Java](<https://devfeed.tech/topics/java.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [java](<https://devfeed.tech/tags/java.md>), [security](<https://devfeed.tech/tags/security.md>), [type-system](<https://devfeed.tech/tags/type-system.md>), [validation](<https://devfeed.tech/tags/validation.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

This article argues that domain-specific types can make invalid values unrepresentable and shift validation into the compiler and type system. It uses a Java example involving swapped integer arguments and warns that unbounded regular-expression validation can enable ReDoS through a single HTTP request.

### Source excerpt

It's 3am. Your phone is ringing. A few hours earlier you deployed a hotfix -- straightforward change, reviewed in a hurry, went out clean. Now some important data is being published under the wrong market. Instruments from exchange A showing up under exchange B. Clients are seeing it. Someone is already asking if it's a breach. It isn't. It's worse, in a way: the hotfix swapped two arguments. The method took a marketId and an instrumentId, both ints, and the caller got them the wrong way round. The compiler saw two ints, both positive, both in range. Code compiled, tests passed, CI was green.

## Testing and Branching Lessons from Building a Financial Reference Data Platform

DevFeed: [Testing and Branching Lessons from Building a Financial Reference Data Platform](<https://devfeed.tech/articles/write-down-the-why-41534.md>)

Original publisher: [Read original article](<https://dfa1.github.io/articles/write-down-the-why.html>)

Author: Davide Angelocola

Published: 2020-10-01T00:00:00Z

Content type: opinion

Language: en

Sources: [Davide Angelocola](<https://devfeed.tech/sources/davide-angelocola.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Git](<https://devfeed.tech/topics/git.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [branch](<https://devfeed.tech/tags/branch.md>), [containerized](<https://devfeed.tech/tags/containerized.md>), [developers](<https://devfeed.tech/tags/developers.md>), [git](<https://devfeed.tech/tags/git.md>), [test-coverage](<https://devfeed.tech/tags/test-coverage.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

An engineering team building a financial reference data platform found that tests tied to live systems became noisy because data and environments changed independently of the code. The article distinguishes test coverage from data coverage and examines the tradeoffs of long-lived Git Flow branches.

### Source excerpt

Late 2019, early 2020. A newly formed team, building the next generation of a financial reference data platform from scratch. Several developers who never worked together, a greenfield project, a deadline, and two problems we had not yet named: a testing approach that would take us a while to outgrow, and a branching model we had not agreed on yet. Every team has a moment where brute force stops working. Ours came on two fronts at once. Without a shared "why" every engineer filled in the gaps differently.