Oriel — AI & technology worth noticing, every day.

An OS with no threads - The Actor Model

Web page · https://timdbg.com/posts/dbgos-actor-model

First seen by Oriel on .

AI summary

The author describes DbgOS, a Rust operating system built around actors, bounded message handlers, and schema-based state migration to avoid shared writable memory and hot-swap whole modules without losing state.

  • Each actor owns its state and processes one message at a time; actors communicate through messages and reply slots, while Rust futures support asynchronous tasks.
  • The kernel prohibits blocking and writable segments, limits handler execution time, and kills handlers that exceed the limit, enabling cooperative scheduling without locks or re-entrancy.
  • Actors have no suspended stacks or register contexts, reducing idle-instance memory overhead, but CPU-intensive work must be split into resumable chunks.
  • Module swaps pause new messages, wait for active handlers to finish, then migrate persistent data using type metadata generated with #[derive(Schema)].
  • The author reports hot-swapping UI, graphics, storage, and application modules without rebooting or losing app state, supporting rapid live debugging.

#actor model #operating systems #rust #hot swapping

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 351, latest observation ; +337 over observed period since
  • Lobsters: 50, latest observation ; +48 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 155, latest observation ; +154 over observed period since
  • Lobsters: 29, latest observation ; +29 over observed period since

Aliases

SourceExternal IDURL
Hacker News50758542https://www.timdbg.com/posts/dbgos-actor-model/ Read discussion
Lobsterskr9skuhttps://www.timdbg.com/posts/dbgos-actor-model/ Read discussion