Elektrine lite

โ† Feed

@mpeterma@mastodon.bsd.cafe

2026-04-26 10:24 UTC

What comes to mind when you think about config files? YAML, JSON, INI โ€” or HCL? Iโ€™ve always liked HCL: structured (๐Ÿ‘€ INI), readable, supports comments (๐Ÿ‘€ JSON), and no whitespace sensitivity (๐Ÿ‘€ YAML). It comes from HashiCorp and is used in tools like Nomad. But in my โ€œCells for NetBSDโ€ rewrite, it wasnโ€™t an option โ†’ no Go in the base system. So I went a different route: ๐Ÿ‘‰ Lua as a config/DSL layer (already part of NetBSD) Works surprisingly well โ€” feels a lot like HCL, just without extra dependencies. Side note: cellman is now in C, logic lives in libcellman, shared by CLI + TUI โ†’ no IPC glue near the control plane ๐Ÿ‘ ๐Ÿ‘‰ Curious: Have you ever considered Lua as a config parser? Details: https://github.com/MatthiasPetermann/netbsd-src/blob/netbsd-11-cellman/doc/specs/cells/02-dsl-and-desired-state.md

Replies (0)

No replies.