Elektrine lite

← Feed

@jhpratt@mastodon.social

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)