@clickhouse/rowbinary: when your library is also a parser compiler

4 points by peter-leonov


I used to do the "proper" parser generation work some time ago and found out that a good enough generator has to make so many opinionated decisions that it starts to feel like writing a… small natural language translation level nuanced machine. Thus the attempt to use modern coding LLMs to please each and every picky user.

josephjnk

How should users test the generated code? It could be nice to provide a deterministic compiler for producing fast-check arbitraries (which shouldn’t be as hard as generating a parser?) for generating sample input data. This would open up the option of using property-based tests to check things like floating point bounds errors or data round-tripping.