Wednesday, November 16, 2011

Latest from the lab

I loaded the most solid lab version of simple G I have. This version performs: @G(*,..)
Which stands for reading and executing a sequential list of G triples from the table store, one at a time. It includes installing operators, one sqlite3 statement at a time from the config store. It has the built in operator, CONFIG and POP. Pop just pops the node from self and looks up the operator. Otherwise, POP maintains its own pointer to self, and pop uses the gfun call back, it does:
select key,link,pointer from self where (gun(0,0) == rowid);
Since the G engine tracks its own pointer, it effectively single steps down self, one triple at a time.  The G function here delivers what might be called a program counter.

No comments: