We like to let TICK through WALK after WALK and stop it when we see something interesting. Michael Kelley Harris suggested that a new block could to do the looking for us. UNTIL is our response. New with version 0.1.8.
These are some fun sites to walk.
790 pages, 2502 links
3217 pages, 13483 links
683 pages, 6108 links
.
Starting randomly in each site, walk up to 5 links.
CLICK NEIGHBORS WALK PREVIEW graph
Walk ten times or until "done" when a node says Graph.
TICK 99 NEIGHBORS WALK PREVIEW graph
Walk without preview until "done".
TICK 10 NEIGHBORS WALK UNTIL Graph PREVIEW graph
.
We've used this opportunity for casual exploration of control structures but have gained more insight into basic rules of communication between blocks. We've used the object "state" to carry information forward and now have now signaled backwards to the next iteration of TICK.
while tick-- > 0 do stuff if condition tick = 0 do more stuff
We've used shell commands to prepare some of our examples. Here is how we chose "Graph" as a word likely to be found in at least one site.
curl -s ward.dojo.fed.wiki/system/sitemap.json |\ jq -r '.[].title' |\ perl -pe 's/ /\n/g' |\ sort | uniq -c | sort -n
We use a variation of this to measure link density for the sites we've chosen to explore.
curl -s http://fed.wiki/system/sitemap.json |\ jq -r '.[].links|select(.!=null)|keys|.[]' |\ wc -l