Image: reddit.com · htcw_buffers: declare binary wire protocols and file formats with simple C headers
htcw_buffers, wire protocols declared as C headers
Python code generators, written by Claude over months and reviewed by the maker, that turn C headers into embedded-friendly serialisation code for C, C# and JS.
Credits
- Reddit poster honeyCrisis Source ↗
- Repository account codewitch-honey-crisis Source ↗
Earliest dated source:
The full story
htcw_buffers is an alternative to tools like protobuf aimed at embedded work: you declare a wire protocol or file format as a C header and it generates zero-allocation code in C, C# and JavaScript.
The maker, who has ethical problems with AI but keeps a minimal subscription for work, says all the code was written by Claude over months of prompting, then unit tested. They reviewed the generated output and APIs carefully, but only gave the Python scripts themselves a cursory look.
How it was done
Tools
Themes
Loading themes…
Sources
From a short post by the maker, so the details are as they tell them.
- Reddit: htcw_buffers: declare binary wire protocols and file formats with simple C headersReddit poster: honeyCrisisPosted
The maker's post on r/esp32.
If it disappears: archived copy of Reddit: htcw_buffers: declare binary wire protocols and file formats with simple C headers (opens in a new tab)
- The code: github.comRepository account: codewitch-honey-crisis
Linked in the post.