Saturday, November 12, 2011

Pointer arithmetic in G

In the standard G triple: (keyword,link,pointer) The element pointer tracks rank and file indexing for the nested structure. In the operation:
Z = @(X,Y)

Neither X, not Y have nor want any information about the current rank/file pointer on Z. Coputing the pointer for Z is simle if the current pointer state information is kept in G.

Hence, my G Machine has an installed sqlite3 function called pointer, it returns the proper value for any given append on Z. Thus, in the world of G where all of G is a result of convolutions on G, then all pointers must be consistent at any time. Just perform:
insert into result keyword,link, pointer() ....;
when emitting to result.

No comments: