diff options
author | Pjotr Prins | 2025-01-01 08:36:30 -0600 |
---|---|---|
committer | Pjotr Prins | 2025-01-01 08:36:30 -0600 |
commit | 1c80042d52eb4ad8c4309d70587c66113fcdf873 (patch) | |
tree | ee614c1ff31150bd2910bf04d63d3b9f47cf5681 /doc | |
parent | 8338631464da191d937bb305a2bed4f3fa4c771e (diff) | |
download | pangemma-1c80042d52eb4ad8c4309d70587c66113fcdf873.tar.gz |
Use Daves example to experiment
Diffstat (limited to 'doc')
-rw-r--r-- | doc/code/pangemma.md | 15 |
1 files changed, 14 insertions, 1 deletions
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. |