Runnable examples live under
src/examples/java/io/github/elevateddev/lattice/examples/.
Each is public static void main and uses only the public API.
| Example | What it shows |
|---|---|
| PreallocatedSourceSinkExample | Reusing payloads through a preallocated source and slab pool. |
| FusedLinearPipelineExample | Linear chain that the compiler fuses into a single owner thread. |
| RoutingJoinExample | Broadcast fan-out plus stamped join with explicit policy. |
| MetricsDiagnosticsExample | Reading graph / stage / edge / placement metrics at runtime. |
| CompilationReportExample | Printing fusion, source specialization, and fallback decisions. |
| BenchmarkStyleFastPathExample | The hot-path discipline used by the JMH suite. |
| OrdersPipelineExample | Minimal validate -> sink order pipeline with wait, overflow, and memory knobs. |
./gradlew runOrdersPipelineExampleOther example tasks follow the same name pattern, for example
runFusedLinearPipelineExample, runRoutingJoinExample,
runMetricsDiagnosticsExample, and runCompilationReportExample.
The examples deliberately use the same hot-path discipline as the JMH benchmarks (no logging, no allocation in stage bodies, hot-counter flags disabled) so they are useful as starting templates, not just demos.