Today, as I wandered to the grocery store, I realised that a queue is literally just a whole lot of people walking in the same direction at the same y-coordinate (in a 2D world) where at some point the front person stops and therefore everyone behind them stops too (because they can’t keep moving). That is, rather than positioning a queue as some extra entity in the code, it’s also possible to think of a queue as an emergent behaviour stemming from how the agents in a system behave. You really only need a couple of “rules” to establish queuing – the idea that people stop if they run into the back of someone else, the idea that everyone is moving along in a line with each other, and the idea that the front person gets stopped by some external force (such as a ticket barrier, say). The queue just happens.
(via inininoutoutout) This looks like a Wolfram and Conaway insight.
