Example files

Article: https://youdozi.github.io/en/posts/2026-10-31-project-valhalla-value-objects/

Extract into a new empty directory and run commands from that directory.

Environment
JDK 28 EA with matching javac/java; observed on OpenJDK 28-ea+21-1707 for macOS AArch64. Preview flags are required at compilation and runtime. No dependencies or network requests from the program.

Commands
javac --enable-preview --release 28 ValhallaExample.java
java --enable-preview ValhallaExample

Scope
Compares ordinary/value records, field-state versus domain equality, identity, a nullable array slot and a handled monitor rejection. Semantic demonstration only; no layout, allocation, GC or throughput measurements and no production migration. This preview is not a finalized feature.

Read the article for outputs, conditions and failure cases. PROVENANCE.json records the source and file hashes; hashes establish identity, not correctness.
