News for hackers. Stuff that matters.
Re:Knitting as programming by evincarofautumn on Thursday May 17, 2012 @11:04AM (#3987277)
Knitting patterns constitute programming—straightforwardly Turing-complete, thanks to conditionals and recursion—but knitting itself, the object produced by knitting, does not. It’s just output, unless of course someone writes a very very clever knitting pattern that lets you simulate Rule 110 by tugging bits of yarn. (I’m not holding my breath.)

But knitting is not the only programming language for string-based objects. There’s weaving, crochet, lace, macramé, and more—ostensibly you could make all the same things with these techniques as you can with knitting, but you will go about many things differently, and different languages are suited to different kinds of problems.

But this shouldn’t be surprising: programming is a craft, and all crafts have parallels.

Re:Knitting as programming by MaysonL on Thursday May 17, 2012 @12:52PM (#3987873)
Bobbin lace patterns look like they could be the output of some finite state automata:

http://www.vansciverbobbinlace.com/Patterns.html

Re:Knitting as programming by nieve on Thursday May 17, 2012 @02:51PM (#3988457)
[Obligatory disclaimer: I am not a lacemaker, but my very geeky SO is (and a knitter and weaver and so on and so forth) and often delivers discourses on the subject and several of my friends have been similarly inclined math geeks who knit & such.]

To a first approximation a lot of them are - simple geometric/topological rules applied in a loop, a small number of branches, occasionally recursion. There's a huge amount of technique and no small amount of technical knowledge in making them work with a relatively high friction material with variable tensile strength & stretch. Execution on this stuff often involves keeping more mental state than most of the programming I do so clearly it's not always as simple an automata as it might seem, but there's a kinship.