model-writtenrun 3416 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Dec 2023 - Apr 2024 · 26 entries
- Andrew Dunstan proposed a non-recursive, prediction-stack JSON parser for incremental input, especially large backup manifests, while noting its slower performance and possible callback-allocation leaks in #1.
- Robert Haas supported retaining both parsers for the memory savings and argued against interning field names in a hash table; Andrew chose to free unneeded values in client callbacks instead in #2, #4, #6, and #7.
- Nico Williams suggested a path-and-leaf streaming interface in #8, and Robert explained that it could be layered over the existing event-based interface in #9; it did not become part of this series.
- Jacob Champion supplied precomputed production lengths, reported an 8–15% speed improvement, and identified scalar state that could disappear between chunks in #10; Andrew incorporated those findings and added manifest infrastructure and all three callers in #12.
- The January revisions added TAP integration, repaired temporary-install assumptions, zero-initialized parser state, and corrected format arguments in #14, #15, and #16, but an intermittent manifest failure remained.
- Robert suggested logging the failing manifests in #18, leading to the diagnostic component in #19; after several weeks, Jacob reproduced the failure and traced it to copying beyond non-null-terminated chunk boundaries in #21 and #24.
- Andrew supplied bounded token copying and tests with trailing junk in #25, and Jacob confirmed that the failure was fixed while supplying Meson test integration in #26.
- Jacob's chunk-size sweep in #29 exposed an EOF mistake in the test program, diagnosed in #31; Andrew folded the tests, Meson support, fixes and rebase into #35.
- Jacob showed that trailing newlines concealed failures on top-level scalars in #36, prompting #37, and then identified inconsistent pointers between the main lexer and its partial-token lexer in #38.
- Andrew repaired partial-token error state and adopted json_errdetail() in #39; Jacob supplied broader inline tests and further pointer and array-error fixes in #40, which Andrew incorporated in #41.
- The next review round replaced lexer-mode exits with an error return, documented unsafe previous-token pointers, and fixed another partial-token error path through #44 and #45.
- Jacob objected to unbounded frontend prediction-stack growth in #48 and #49; Andrew added a nesting-limit error for both frontend and backend parsing and introduced semantic-callback tests in #54.
- Those tests exposed ignored callback return values in #55; Andrew propagated callback errors, added impossible-case assertions, removed debugging remnants and folded the semantic tests into the parser component in #56.
- Jacob marked the final series ready in #57, while proposing future lexer simplification; Andrew deferred that architectural work because of performance concerns in #58.
- Andrew landed the three components of #56 as 3311ea86ed, ea7b4e9a2a, and 222e11a10a, announcing the push in #59; the manifest components matched exactly, and the parser component gained only whitespace and a typedef-list entry.
- Tom Lane immediately reported duplicate-typedef build failures in #60 and supplied the repair in #63, which Andrew applied with explanatory comments in #64.
- Tom also found missing ignore and cleaning rules in #65, while Jelte Fennema-Nio reported a missing Meson test executable in #67; Jacob supplied an explicit dependency in #70, and Jelte confirmed that it fixed his failure in #74.
- Nathan Bossart reported uninitialized-value warnings in #68; Andrew's first repair in #72 left one warning, so he revised it in #78, obtained Nathan's approval in #79, and announced the push in #80.
- Tom's Coverity report in #81 exposed leaked incremental manifest state; Andrew added a shutdown function and calls in all three clients, also repairing freeJsonLexContext() cleanup, in #85.
- Jacob reduced the oversized JSON fixture in #83; Michael Paquier identified a remaining live URL and questioned the fixture's complexity in #86, leading Jacob to replace hostnames with example.com in #93.
- Michael's review in #86 and #87 requested a smoke test for the performance utility, clearer buffer constants, corrected documentation and an explanation of deliberately appended junk; Andrew accepted those changes while defending deterministic fixtures in #88.
- Jacob preferred removing the performance utility if carrying it required routine execution and described future LLVM fuzzing work in #91 and #92; Andrew's consolidated series in #94 instead retained the utility with a single-iteration smoke test, alongside memory repairs, fixture reduction and cleanups.
- Andrew revised the cleanup component with Alexander Lakhin's typo findings in #95; the fixture component then landed unchanged as b8a7bfa333, and the cleanup landed with additional comment fixes as 42fa4b6601.
- Michael reviewed the landed cleanup in #97, finding temporary files left in /tmp, missing escape coverage, missing test documentation and unchecked file operations; he and Robert pressed for standard temporary-directory handling in #99 and #100.
- Andrew implemented that later discussion without posting another patchset, producing ba3e6e2bca with standard temporary-directory placement, more coverage, error checks, comments and formatting.
- Michael then reported assertion failures from uninitialized frontend logging in the performance utility in #101, and Andrew announced a fix in the final message, #102; the feature and cleanup work had landed, while lexer simplification and broader fuzzing remained future work.