May 2021

36 bookmarks saved in May 2021

Pretty State Machine Patterns in Rust

https://hoverbear.org/blog/rust-state-machine-pattern
Rust lets us represent State Machines in a fairly good way. In an ideal situation we'd be able to make enums with restricted transitions between variants, but that's not the case. Instead, we can harness the power of generics and the ownership system to create something expressive, safe, and understandable.

1990: LambdaMOO

https://if50.substack.com/p/1990-lambdamoo?token=eyJ1c2VyX2lkIjozNDg4OTkwLCJwb3N0X2lkIjozNjMwNDk0NSwiXyI6IlFVeHZjIiwiaWF0IjoxNjIxNjUwOTM1LCJleHAiOjE2MjE2NTQ1MzUsImlzcyI6InB1Yi0yMzU2MDQiLCJzdWIiOiJwb3N0LXJlYWN0aW9uIn0.VrhkcDxfDp4duAL0zWbQuA10odv1nB3q244xM2xaBmc