Meadows – a small language for stock-and-flow diagrams that run
https://lorezzed.github.io/meadows/
- discussion_url
- https://news.ycombinator.com/item?id=50019535
HN discussion
Based on 3 selected comments and replies.
The submitter, jjsalamon, describes building a small language for Donella Meadows-style stock-and-flow diagrams while reading "Thinking in Systems" and wanting to manipulate its diagrams rather than just look at them. You type a model such as |>inflow [water in tub: 50] =>outflow: 5| and get the stock-and-flow diagram, a chart of each stock over time, and an animation of the run on the diagram itself, with stocks and feedback loops pulsing. Each example carries notes in its source, diagrams can also be built by clicking, and it runs entirely in the browser with no account or backend; the whole model lives in the URL, so any diagram can be shared.
Commenter jamessb reports that the behaviour-over-time graphs do not render for the hunger, chicken-and-egg, burnout and predator-and-prey examples. The author replies that those early examples have no units attached, so in effect there is nothing to plot, though the system still renders; later examples add numbers to stock and flow nodes, which populates both graphs. He suggests this could be made clearer to users.