[cap-talk] capability based 3D whiteboard.

John Carlson john.carlson3 at sbcglobal.net
Sun Feb 17 02:45:17 EST 2008


Say I want to implement a very simple line oriented network protocol  
for a 3D whiteboard.  An example of my protocol would look like this:

GROUP|0|CREATE
POINT|1|PUT|0
POINT|1|WRITE|0.07589227|0.77753556|0.9378134|0.49620187| 
3.6635360717773438|4.982316970825195|-0.46894264221191406|0.0|0.0|0.0
POINT|2|PUT|0
POINT|2|WRITE|0.17503554|0.87944275|0.17774671| 
0.081947625|-0.9268670082092285|-3.4614038467407227|1.8925933837890625| 
0.0|0.0|0.0
POINT|3|PUT|0
POINT|3|WRITE|0.4814551|0.6131105|0.7484166|0.6129137| 
1.9376473426818848|-0.4361252784729004|3.439117431640625|0.0|0.0|0.0
POINT|4|PUT|0
POINT|4|WRITE|0.79163355|0.036456525|0.3622344| 
0.15570736|-2.8275222778320312|-3.131004571914673|4.2700395584106445| 
0.0|0.0|0.0
POINT|5|PUT|0
POINT|5|WRITE|0.8005094|0.029935539|0.71107644| 
0.63172174|-0.26860713958740234| 
1.6509385108947754|-0.9731335639953613|-0.01513671875|0.0|0.0
POLYGON|6|PUT|0
POLYGON|6|WRITE|5|1|2|3|4|5
GROUP|7|CREATE
GROUP|0|COPY|7
GROUP|0|PUT|7
POLYGON|6|REMOVE|0
POINT|1|REMOVE|0
POINT|2|REMOVE|0
POINT|3|REMOVE|0
POINT|4|REMOVE|0
POINT|5|REMOVE|0
GROUP|0|REMOVE|7
GROUP|0|DELETE
GROUP|7|DELETE

Groups are windows or tables or views or folders or directories of  
points and polygons and groups.  You can think of a polygon as an  
ordered group.  Points are regular files.  Polygons inherit color and  
position from points.

Basically, I would be using SQL like operators (CRUD) on points,  
polygons and groups.  Where should I add in capabilities if I want  
people to have private groups, and be able to share groups?  I am  
hoping that Jed will see the similarity between GUI, DBMS and  
Filesystems and realize he is an expert in all of them (not  
withstanding the mindbending SQL requires).

Should I add COMMIT and ROLLBACK while I am at it? I already have a  
form of rollback, because points keep track of their original locations.

John


More information about the cap-talk mailing list