Arvo
The arvo.hoon file primarily contains the basic event processing and routing machinery of Arvo, but it also defines a number of useful types and other functions. Some of these have been excluded as they're obscure types only used internally by Arvo, but the rest are documented below.
$arch
Node identity
This represents a node in Clay, which may be a file or a directory.
Source
+$ arch (axil @uvI)Examples
> *arch
[fil=~ dir={}]
> .^(arch %cy %/sys)
[ fil=~
dir
{ [p=~.hoon q=~]
[p=~.lull q=~]
[p=~.kelvin q=~]
[p=~.vane q=~]
[p=~.arvo q=~]
[p=~.zuse q=~]
}
]
> .^(arch %cy %/sys/arvo/hoon)
[ fil
[ ~
0v1s.31due.jlkt7.btvob.bhil7.fusae.55huv.7pghe.2ql6f.l495n.pi6ah
]
dir={}
]+axal
Fundamental node, recursive
This mold builder creates a representation of a node in Clay like an $arch or +axil, but the directory map contains more +axals, so it contains the entire subtree rather than just one level.
Source
Examples
+axil
Fundamental node
This is the mold builder used to create a representation of a node in Clay. It's used by $arch.
Source
Examples
$beak
Global context
This is the unencoded global path prefix for a node in Clay. It's a triple of a $ship, $desk and $case. The $case is a revision reference.
Source
Examples
$beam
Global name
An unencoded global path to a node in Clay. The $beak denotes the $ship, $desk and $case (revision reference), and then .s is the path to the node therein.
Source
Examples
$bone
Opaque duct handle
This is used by Ames to identify a particular message flow over the network.
Source
Examples
$case
Global version
A reference to a particular revision in Clay. It may be one of:
%da: a date.%tas: a label (these are seldom used).%ud: a revision number. The initial commit is 1, and then each subsequent commit increments it.
Examples
$cage
Marked vase
A pair of a $mark and a $vase (type-value pair). These are extensively used for passing data around between vanes and agents.
Source
Example
+cask
Marked data builder
Like a $cage except rather than a $vase, the tail is whatever type was given to the mold builder. These are most frequently used for sending data over the network, as vases can only be used locally.
Source
Examples
$desk
Local workspace
The name of a desk in Clay.
Source
Examples
$dock
Message target
A pair of a $ship and Gall agent name. This is most frequently used when composing cards to other agents in a Gall agent.
Source
Examples
$gang
Infinite set of peers
This is used internally by the Scry interfaces in Arvo and its vanes.
Source
Examples
$mark
Symbolic content type
The name of a mark file. It will typically correspond to a file in the /mar directory of a desk.
Source
Examples
$mien
Orientation
Some basic information given to Arvo: the local ship's name, the current time, and some entropy.
Source
Examples
$page
Untyped cage
A pair of a mark and a raw, untyped noun. This is primarily used in Clay.
Source
Examples
+omen
Namespace path and data
Source
Examples
$ship
Network identity
Another name for a @p.
Source
Examples
$sink
Subscription
A triple of a $bone, $ship and $path.
Source
Examples
+hypo
Type-associated builder
A pair of a type and some value.
Source
Example
$meta
Meta-vase
Source
Examples
$maze
Vase, or meta-vase
Source
Examples
$ball
Dynamic kernel action
This contains the action or response in a kernel $move. One of:
[%hurl [%error-tag stack-trace] wite=pass-or-gift]: action failed; error.[%pass wire=/vane-name/etc note=[vane=%vane-name task=[%.y p=vase]]]: advance; request.[%slip note=[vane=%vane-name task=[%.y p=vase]]]: lateral; make a request as though you're a different vane.[%give gift=[%.y vase]: retreat; response.
Source
Examples
$card
Tagged, untyped event
Note this is not the same as a card:agent:gall used in Gall agents.
Source
Examples
$duct
Causal history
Arvo is designed to avoid the usual state of complex event networks: event spaghetti. We keep track of every event's cause so that we have a clear causal chain for every computation. At the bottom of every chain is a Unix I/O event, such as a network request, terminal input, file sync, or timer event. We push every step in the path the request takes onto the chain until we get to the terminal cause of the computation. Then we use this causal stack to route results back to the caller.
The Arvo causal stack is called a $duct. This is represented simply as a list of $wires (paths), where each path represents a step in the causal chain. The first element in the path is the vane handled that step in the computation, or an empty string for Unix.
Source
Examples
+hobo
%soft task builder
Source
Examples
$goof
Crash label and trace
Source
Examples
$mass
Memory usage
+whey produces a (list mass) for its memory report.
Source
Examples
$move
Cause and action
Arvo makes calls and produces results by processing $moves. The $duct is a call stack, and the $ball contains the action or response.
Source
Example
$ovum
card with cause
Source
Examples
$roof
Namespace
Source
$rook
Meta-namespace (super advanced)
Source
+room
Generic namespace
This is used internally for scry handlers.
Source
$roon
Partial namespace
Source
$root
Raw namespace
Source
$view
Namespace perspective
Source
+wind
Kernel action builder
This is similar to +wite but without the error case. It's most commonly used in the type of a card:agent:gall.
Source
Examples
$wire
Event pretext
Type-wise, a $wire is the same as a $path; a +list of $knots with the syntax of /foo/bar/baz. While a $path is typically used in requests to denote a scry or subscription endpoint, a $wire is used for responses.
On the kernel-level, $wires are used in $ducts to represent a causal step in a call stack for routing purposes. In userspace, they're used the same way under the hood, but practically speaking, they can be thought of as "tags" for responses. That is, when you make a request to a vane of Gall agent, you provide a $wire for any responses you get back, and you can use this to identity what the response is for.
Source
Examples
+wite
Kernel action/error builder
This is used by the kernel in $moves. See the $ball entry for further details.
Source
Examples
+en-beam
Encode a $beam in a $path
Accepts
A $beam
Produces
A $path
Source
Examples
+de-beam
Decode a $beam from a $path
Accepts
A $path
Produces
A $beam in a +unit, which is null if parsing failed.
Source
Examples
+de-case
Parse a $case
Accepts
A $knot
Produces
A $case in a +unit, which is null if parsing failed.
Source
Example
Last updated