Login
You're viewing the mister.computer public feed.
  • Nov 23, 2026, 11:13 PM

    🏛️

    I have released a new Swift package: State Machine.

    It provides a suite of macros to help you define type-safe state machines whose graphs are checked at compile time. This is part of the never-ending quest toward the ultimate guarantee: if it compiles, it’s correct.

    github.com/kylehughes/swift-st

    💬 1🔄 0⭐ 3

Replies

  • Nov 23, 2026, 11:13 PM

    Here is an example of a state machine definition. The schema (shown) is separate from the host that operates the state machine. There are many different types of hosts depending on the ownership semantics required, e.g. dedicated actor, MainActor, Sendable class, a struct that you drive…

    Swift code block showing the definition of a state machine for operating a search, with three states: idle, searching, and found.
    💬 1🔄 0⭐ 1
  • Nov 23, 2026, 11:13 PM

    This is the most ambitious project to come out of my autonomous software factory. It would have been my crowning open source achievement, but instead it is merely something I wanted.

    GPT-6 Pro designed it, Claude Opus 5.5 built it, GPT-6.2 Astra reviewed it, and Gemini 4 Neon documented it.

    💬 0🔄 0⭐ 2