on master help sign in
blob
commit733772387accf25d4e4c8eb24be0c53332ba8b2b authordrbeefsupreme <drbeefsupreme@discordja.net> dateThu 8 Apr 2021, 15:09 (6 years ago) parent8e1b859
1 file changed+9−17
arvo/clay/data-types.md+9−17
arvo/clay/data-types.md+9−17
@@ -511,33 +511,25 @@ This is a hash of a `blob:clay`. These are most notably used in `lat:rang:clay`,
511511where they are associated with the actual `blob:clay`, and as the values in
512512`q:yaki:clay`, where `path`s are associated with their content hashes in a commit.
513513
514−#### `++blob:clay`, data
514+#### `$blob:clay`, data
515515
516516```hoon
517− ++ blob $% [%delta p=lobe q=lobe r=udon] :: delta on q
518− [%direct p=lobe q=* r=umph] ::
519− [%indirect p=lobe q=* r=udon s=lobe] ::
520− == ::
517+ +$ blob :: fs blob
518+ $% [%delta p=lobe q=[p=mark q=lobe] r=page] :: delta on q
519+ [%direct p=lobe q=page] :: immediate
521520```
522521
523522This is a node of data. In every case, `p` is the hash of the blob.
524523
525524`%delta` is the case where we define the data by a delta on other data.
526525In practice, the other data is always the previous commit, but nothing
527−depends on this. `q` is the hash of the parent blob, and `r` is the
526+depends on this. `p` is the hash of the new blob, `q.q` is the hash of the
527+parent blob, `p.q` is the `mark` of the parent blob, and `r` is the
528528delta.
529529
530−`%direct` is the case where we simply have the data directly. `q` is the
531−data itself, and `r` is any preprocessing instructions. These almost
532−always come from the creation of a file.
533−
534−`%indirect` is both of the preceding cases at once. `q` is the direct
535−data, `r` is the delta, and `s` is the parent blob. It should always be
536−the case that applying `r` to `s` gives the same data as `q` directly
537−(with the prepreprocessor instructions in `p.r`). This exists purely for
538−performance reasons. This is unused, at the moment, but in general these
539−should be created when there are a long line of changes so that we do
540−not have to traverse the delta chain back to the creation of the file.
530+`%direct` is the case where we simply have the data directly. `p` is the hash of
531+the data, and `q` is the data itself. These almost always come from the creation
532+of a file.
541533
542534#### `++udon`, abstract delta
543535