Commit 2d3955d
docs: take the coordinates and the API baseline to 1.0.0 (#44)
* docs: take the coordinates and the API baseline to 1.0.0
1.0.0 shipped at 17:59 on 2026-08-03 and carries the chunk, instance and shared
instance work. The README still told readers to depend on 0.3.0, which is the
release before any of it.
apiBaselineVersion moves with it, and that is the part worth reading. Raising it
made the build fail on purpose:
api-breaks.properties declares accepted API breaks against baseline 0.3.0, but
apiBaselineVersion is 1.0.0. Every exception in that file was judged against
the older baseline and excludes its type from the check entirely, so each one
has to be re-examined and either deleted or re-justified before the version
moves.
That is what the baseline key exists for. The one exception in the file --
FalcoLightingChunk becoming final under US-3.06 -- was a break against 0.3.0 and
is not one against 1.0.0, because 1.0.0 is the release that shipped it. It is
deleted rather than carried forward, and japicmp compares the class again:
checked by making it package-private, which now fails the build, and reverted.
The README's performance section said every figure comes from a JMH benchmark.
One no longer does -- the 25 objects and 840 bytes of a fresh chunk are a jol
count, with no spread and no statement about speed. It is marked as such where
it appears, together with the fact that the instance benchmarks have never been
run as a baseline, so no timing about this work is quoted anywhere.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGpJqdmh7ZNH487GLqPJmK
* test(demo): compile the snippets the wiki shows for falco-instance
The wiki gained a usage page for the instance module, and a page is the one place
where an example can rot without anything noticing. This compiles every code
block on it: the builder, the chunk loader form, the light engine combination,
both lifecycle routes, the shared world, and the read-only storage accessors.
It found one error while being written. The light engine block said
`new ChunkLightScheduler(instance)`; the constructor takes a `ChunkLightService`
and there is no overload for an instance, so the snippet as first written would
not have compiled for anyone who copied it.
The class is never run and asserts nothing. Its whole value is failing to
compile, which was checked by breaking one line and watching
:falco-demo:compileTestJava fail, then reverting.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGpJqdmh7ZNH487GLqPJmK
* docs: make the quick start cover all three modules, and compile its snippets
The quick start built a server from falco-anvil and falco-light and mentioned
falco-instance only in prose. A reader following it never saw the module that
gives the world a chunk which allocates what it uses, cleans up when it is
unregistered, and can carry Falco's light on the same class -- which is the
combination the whole rewrite was for and which did not exist before 1.0.0.
Step 1 now declares the BOM and all three modules; the readme is where somebody
starts, and one pinned version for three artefacts is the thing to start with.
Step 5 is new and shows them together: loader, scheduler supplier, and the
builder form that closes the loader after saving, which is the part that is
easy to get wrong by hand because a loader closed before the save loses it.
It also names the two things that surprise people: getSections() materialises
all 24 sections because a caller may write into the result, and a chunk supplier
producing anything but a FalcoChunk is refused. And it says that Minestom's own
events still fire, so nobody rewrites a working GlobalEventHandler listener.
Every snippet of the quick start and of the wiki usage page is now compiled by
DocumentationSnippets in falco-demo, renamed from WikiSnippetCheck because it
covers both documents. Checked by breaking a line and watching
:falco-demo:compileTestJava fail.
The wiki called the quick start "four-step" in three places; it has five now.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGpJqdmh7ZNH487GLqPJmK
* docs: show what all three modules can do, not just one path through them
The quick start walks somebody to a running server, which is what a quick start
is for -- and it left most of Falco invisible. A reader finished it without ever
seeing that the anvil loader has a builder, that it counts what it could not
resolve instead of failing, that the light engine does sky light and incremental
updates, that the scheduler can be driven from a plain container, or that a
chunk can be read without materialising its sections.
A new section after the quick start lists the rest, grouped by module, each with
the shortest snippet that shows it:
falco-anvil the builder, compression, save parallelism, data version,
and diagnostics -- the counters that say a world contained
blocks or biomes this loader substituted
falco-light calculate, calculateSky, calculateWithNeighbours, blockLightAt;
the scheduler builder with executor, area size, cache size and
sky-light mode; ChunkLightListener for a plain container; and
markChanged/markDirty for changes made outside Falco
falco-instance the four parts an instance delegates to, the read-only storage
accessors, lifecycle listeners, and the generator that writes
into clones so a failure leaves the chunk untouched
Every snippet is compiled by DocumentationSnippets, which now covers the quick
start, this overview and the wiki usage page, grouped by which document each
block belongs to. That mattered here: the overview is thirteen new snippets
against an API nobody had written against before, and compiling them is the only
reason to believe them.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGpJqdmh7ZNH487GLqPJmK
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 895bb5d commit 2d3955d
5 files changed
Lines changed: 535 additions & 33 deletions
File tree
- falco-demo/src/test/java/net/onelitefeather/falco/demo
- gradle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
138 | 312 | | |
139 | 313 | | |
140 | 314 | | |
| |||
177 | 351 | | |
178 | 352 | | |
179 | 353 | | |
180 | | - | |
181 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
182 | 364 | | |
183 | 365 | | |
184 | 366 | | |
| |||
0 commit comments