Post #2463333
2026-03-25 08:30 UTC
@unsafe@m.webtoo.ls Parsing format descriptions! I used to do it in a single pass, straight into the final vec, but changed it to a mini-compiler a couple years ago. It made maintenance _much_ easier and allowed me to add new components quite easily. Now I'm adding some optimizations to the macro (but not runtime parser) to eliminate some not-uncommon situations that are a tad slower than necessary.
Replies (2)
-
@unsafe@m.webtoo.ls 2026-03-25 08:48
@jhpratt@mastodon.social ahhh yep that makes sense! kinda crazy though
-
@argv_minus_one@mastodon.sdf.org 2026-03-25 21:25
@jhpratt@mastodon.social What code does it generate? Rust source code? @unsafe@m.webtoo.ls