Beautiful work! I'm not even gonna wonder if any of it was AI-generated, because the code is clearly crafted meticulously by an experienced C engineer, very readable, and shorter than I expected.
[1]: https://github.com/orangeduck/mpc/commits?author=steve-chave...