Automatic pull-based manufacturing of a drill

by byorgey
GNU/Linux ◆ xterm-256color ◆ zsh 702 views

Each robot is responsible for providing a specific entity. It places one entity in front of it as a “shingle” so other robots know where to come to find that thing. When it runs out, it goes and fetches the necessary ingredients to make more. Everything is done in a threadsafe way using atomic, so it’s easy to add more capacity just by adding more robots to provide a certain item.

Code is here: https://github.com/byorgey/swarm-defs/blob/main/defs.sw