This part is all about the process of knitting as seen through the lens of a computer scientist. [W]e will now take a look at hand-knitting as computation.
First off we can observe, that hand knitting needles both have a storage and a stitch processing function. For example when knitting socks, three or more needles may be used, only two of which are operated by the bi-manual human, while the other needles only serve to hold the stitches.
This is really quite brilliant:
- Knitting needles as abstract data types stack and deque.
- Free memory as expressed by the yarn ball.
- Stitches modeled by a data structure with pointers to subordinate stitches.
- The finishing work representing allocated memory.
- Dropped stitches as an accounting for automatic garbage collection.
- Thread processing units…twiste stitches…
While the needles constitute the main memory, there is an immense amount of external memory available. Free memory usually takes the form of the yarn ball, whereas allocated memory is constituted by the finished knitwork. Once a stitch is dropped off the needle it is automatically saved to the external memory.
Photo via feminspire.