branch: externals/crdt commit b31d05aa1887af3387a942b46577ed83b6be6128 Author: Qiantan Hong <qh...@mit.edu> Commit: Qiantan Hong <qh...@mit.edu>
remove status buffer hack section in HACKING.org --- HACKING.org | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/HACKING.org b/HACKING.org index 38745a6..fe4af36 100644 --- a/HACKING.org +++ b/HACKING.org @@ -14,21 +14,6 @@ For base IDs, last two bytes are always representing site ID. Stored strings are BASE-ID:OFFSETs. So the last two bytes represent offset, and second last two bytes represent site ID. -* Session structure - -=CRDT--SESSION-LIST= is a list of "CRDT status buffer"s. -Currently those buffers are always empty, but they have some buffer local variables, -which are used as "session variables" that can be accessed from any buffer shared in the same session. - -For a buffer shared in some session, this buffer always has its buffer local variable -=CRDT--STATUS-BUFFER= set to a CRDT status buffer. It can then access any session variables through it. - -For a network process dedicated to a session, its ='status-buffer= process property is always set to the status buffer for that session. - -The macro =CRDT--DEFVAR-SESSION= do the chores of defining a buffer local variable for status buffer, -and creating a function (together with =SETF= setter) with the same name as the variables, and can -be invoked with no argument in any CRDT shared buffer to access or modify that session variable. - * Protocol Text-based version