on master help sign in
rind
commit6d6b50c082dfb4e27a257939fe6c3bd7cdddd665 authordrbeefsupreme <drbeefsupreme@discordja.net> dateThu 8 Apr 2021, 14:41 (6 years ago) parent0e095e9
1 file changed+22−16
arvo/clay/data-types.md+22−16
arvo/clay/data-types.md+22−16
@@ -389,7 +389,8 @@ is all the subscribers from our ship to the foreign `desk`.
389389`regs` are `(map path rule)`, and so `per` is a `map` of read permissions by
390390`path` and `pew` is a `map` of write permissions by `path`.
391391
392−#### `++rind`, request manager
392+
393+#### `$rind`, foreign request manager
393394
394395```hoon
395396 ++ rind :: request manager
@@ -398,27 +399,32 @@ is all the subscribers from our ship to the foreign `desk`.
398399 fod=(map duct ,@ud) :: current requests
399400 haw=(map mood (unit)) :: simple cache
400401 == ::
402++$ rind :: request manager
403+ $: nix=@ud :: request index
404+ bom=(map @ud update-state) :: outstanding
405+ fod=(map duct @ud) :: current requests
406+ haw=(map mood (unit cage)) :: simple cache
407+ == ::
401408```
402409
403−This is the request manager for a foreign desk.
410+This is the request manager for a foreign `desk`. When we send a request to a
411+foreign ship, we keep track of it in here.
404412
405−`nix` is one more than the index of the most recent request. Thus, it is
406−the next available request number.
413+`nix` is one more than the index of the most recent request. Thus, it is the
414+next available request number.
407415
408−`bom` is the set of outstanding requests. The keys of this map are some
409−subset of the numbers between 0 and one less than `nix`. The members of
410−the map are exactly those requests that have not yet been fully
411−satisfied.
416+`bom` is the set of outstanding requests. The keys of this `map` are some subset
417+of the numbers between 0 and one less than `nix`. The members of the `map` are
418+exactly those requests that have not yet been fully satisfied.
412419
413−`fod` is the same set as `bom`, but from a different perspective. In
414−particular, the values of `fod` are the same as the values of `bom`, and
415−the `p` out of the values of `bom` are the same as the keys of `fod`.
416−Thus, we can map ducts to their associated request number and `++rave:clay`,
417−and we can map numbers to their associated duct and `++rave:clay`.
420+`fod` is the same set as `bom`, but from a different perspective. In particular,
421+the values of `fod` are the same as the keys of `bom`, and the `duct` of the
422+values of `bom` are the same as the keys of `fod`. Thus, we can map `duct`s to
423+their associated request number and `update-state`, and we can map request
424+numbers to their associated `duct`.
418425
419−`haw` is a map from simple requests to their values. This acts as a
420−cache for requests that have already been made. Thus, the second request
421−for a particular `++mood:clay` is nearly instantaneous.
426+`haw` is a map from `%sing` requests to their values. This acts as a cache for
427+requests that have already been filled.
422428
423429#### `++rang:clay`, data store
424430