From 1c80042d52eb4ad8c4309d70587c66113fcdf873 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 1 Jan 2025 08:36:30 -0600 Subject: Use Daves example to experiment --- doc/code/pangemma.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/code/pangemma.md b/doc/code/pangemma.md index fe86f3f..a5e969b 100644 --- a/doc/code/pangemma.md +++ b/doc/code/pangemma.md @@ -90,5 +90,18 @@ Let's start with default GEMMA behaviour and create the first cells to get to ex We'll break down to inspecting cell levels after. The genofile cells contain a file name (string). When the file gets read we will capture the state in a file and carry the file name of the new file forward. -In this setup cells simply represent file names (for state). This allows us to simply read and write files in the C code. +In this setup cells simply represent file names (for state). +This allows us to simply read and write files in the C code. Later, when we wire up new propagators we may carry state in memory. The whole point of using this approach is that we really don't have to care! + +Our first simple implementation of the cell will simply contain a string referring to a file. +Cells can be work in progress and incrementally improved. + +## Create propagators + +A propagator contains a list of inputs and an output cell. So we wire up the graph by adding inputs to propagators. +Every propagator has state (too). I.e. it may be idle, computing and done. + +## The runner + +The runner visits the list of propagators and checks wether the inputs are complete and whether they have changed. On change computation has to happen updating the output cell. -- cgit v1.2.3