News for hackers. Stuff that matters.
Re:I/O is no longer the bottleneck? (2022) by digdugdirk on Tuesday January 06, 2026 @12:17AM (#46509007)
Pydantic was the first thing I thought of when I saw this. The possibilities are very intriguing.

Do you have any thoughts/recommendations for someone if they were to try making a pydantic interface layer for lite3?

Re:I/O is no longer the bottleneck? (2022) by eliasdejong on Tuesday January 06, 2026 @11:02AM (#46514053)
The library contains iterator functions that can be used to recursively traverse a message from the root and discover the entire structure. Then every value can be checked for defined constraints appropriately while at the same time validating the traversal paths. Also a schema description format is needed, perhaps something like JSONSchema can be used.

Doing this by definition requires processing an entire message which can be a little slow, so it is best done in C and exposed through CPython bindings / CFFI.