reddit: https://www.reddit.com/r/Zig/comments/1lhfbjk/polystate_comp...