6# 4o: molds and mold builders
9Biblical names in hoon are primarily aliases for the compiler.
14 ++ abel typo :: original sin: type
29By convention, a short name for a category of atom. `++aura` is
30circularly defined, with [`@ta`]() being the `++aura` of the ASCII subset
31commonly used in urbit.
36 ++ aura ,@ta :: atom format
41See also: [`++base`](), [aura reference]()
54A Nock axis inside a [noun](). After the leading 1, in binary, a `1` signfies
60 ++ axis ,@ :: tree address
68 > :: 0 is not actually a valid axis
81A base type that [noun]()s are built from. A `++base` is either a noun, cell, boolean or
82null labelled with an [odor]().
87 ++ base ?([%atom p=odor] %noun %cell %bean %null) :: axils, @ * ^ ? ~
96 [%tsbr p=[%axil p=%cell] q=[%zpzp ~]]
99 [%tsbr p=[%axil p=[%atom p=~.t]] q=[%zpzp ~]]
101 [%tsbr p=[%axil p=%bean] q=[%zpzp ~]]
109`0`, `&`, or `%.y` are true, and `1`, `|`, and `%.n` are false.
114 ++ bean ,? :: 0=&=yes, 1=|=no
134Used to build [tape]()s internally.
139 ++ beer $|(@ [~ p=twig]) :: simple embed
146 > `beer`[~ (ream 'lan')]
147 [~ p=[%cnzz p=~[%lan]]]
153XML interpolation cases
160 ++ beet $| @ :: advanced embed
161 $% [%a p=twig] :: take tape
162 [%b p=twig] :: take manx
163 [%c p=twig] :: take marl
164 [%d p=twig] :: take $+(marl marl)
165 [%e p=twig q=(list tuna)] :: element literal
175Jet hint information that must be present in the body of a `~/` or `~%`
176rune. A `++chum` can optionally contain a kelvin version, jet vendor,
177and "{major}.{minor}" version number.
182 ++ chum $? lef=term :: jet name
183 [std=term kel=@] :: kelvin version
184 [ven=term pro=term kel=@] :: vendor and product
185 [ven=term pro=term ver=@ kel=@] :: all of the above
191XX there's a ++chum in zuse that's politely causing this not to work
196 > (ream '~/(%lob.314 !!)')
197 [%sgfs p=[std=%lob kel=314] q=[%zpzp ~]]
204Tuple of core information
206Variance `p`, subject type `q`, and `q`: optional compiled nock, and arms. Used as an
207intermediate step within Section 2fB. Converted by `++core` to %core type.
212 ++ coil $: p=?(%gold %iron %lead %zinc) :: core type
214 r=[p=?(~ ^) q=(map term foot)] ::
222Cases of arms by variance model.
224`%ash` arms are [`dry`]() and [geometric]().
229 ++ foot $% [%ash p=twig] :: dry arm, geometric
230 [%elm p=twig] :: wet arm, generic
231 [%oak ~] :: XX not used
232 [%yew p=(map term foot)] :: XX not used
238See also: [`++ap`](), [`++ut`]()
243 > (ream '|% ++ $ foo --')
244 [%brcn p={[p=%$ q=[%ash p=[%cnzz p=~[%foo]]]]}]
245 > +<+:(ream '|% ++ $ foo --')
247 > (foot +<+:(ream '|% ++ $ foo --'))
248 [%ash p=[%cnzz p=~[%foo]]]
249 > (foot +<+:(ream '|% +- $ foo --'))
250 [%elm p=[%cnzz p=~[%foo]]]
255 ++ limb $|(term $%([%& p=axis] [%| p=@ud q=term])) ::
259Reference into subject by name/axis
261See also: section 2fC-2fD
264 [%cnzz p=~[[%.n p=2 q=%$]]]
265 > (limb &2:(ream '^^$'))
267 > (limb &2:(ream '^^^$'))
280 ++ line ,[p=[%leaf p=odor q=@] q=tile] :: %kelp case
286 > (ream '$%([1 a] [%2 b])')
291 [ i=[p=[%leaf p=~.ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
292 t=~[[p=[%leaf p=~.ud q=2] q=[%herb p=[%cnzz p=~[%b]]]]]
296 > &3:(ream '$%([1 a] [%2 b])')
297 p=[p=[%leaf p=%ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
298 > (line &3:(ream '$%([1 a] [%2 b])'))
299 [p=[%leaf p=~.ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
305 ++ metl ?(%gold %iron %zinc %lead) :: core variance
309See also: [`++coil`]()
316Virtual machine. See [Nock doc]().
322 ++ nock $& [p=nock q=nock] :: autocons
323 [%3 p=nock] :: cell test
324 [%4 p=nock] :: increment
325 [%5 p=nock q=nock] :: equality test
326 [%6 p=nock q=nock r=nock] :: if, then, else
327 [%7 p=nock q=nock] :: serial compose
328 [%8 p=nock q=nock] :: push onto subject
329 [%9 p=@ q=nock] :: select arm and fire
330 [%10 p=?(@ [p=@ q=nock]) q=nock] :: hint
331 [%11 p=nock] :: grab data from sky
339 > (nock !=([+(.) 20]))
340 [p=[%4 p=[%0 p=1]] q=[%1 p=20]]
347 ++ noun ,* :: any noun
359 ++ null ,~ :: null, nil, etc
374Type and location of core-shaped thing? XX Compiler Internals
382 [%| p=axis q=(list ,[p=type q=foot])] ::
390 [p=0 q=[%.y p=%void]]
399A restricted text atom for canonical atom syntaxes. The prefix is `~.`.
400There are no escape sequences except `~~`, which means `~`, and `~-`,
401which means `_`. `-` and `.` encode themselves. No other characters
402besides numbers and lowercase letters are permitted.
407 ++ span ,@ta :: text-atom (ASCII)
439A `++wing` or `++twig`.
441 > (ream '=+ a=4 ?-(a @ ~)')
443 p=[%ktts p=p=%a q=[%dtzy p=%ud q=4]]
447 q=~[[p=[%axil p=[%atom p=~.]] q=[%bczp p=%null]]]
450 > (ream '=+ a=4 ?-(4 @ ~)')
452 p=[%ktts p=p=%a q=[%dtzy p=%ud q=4]]
455 p=[%.n p=~ q=[%dtzy p=%ud q=4]]
456 q=~[[p=[%axil p=[%atom p=~.]] q=[%bczp p=%null]]]
467A [face](), or tree of faces. A `++toga` is applied to anything assigned
470XX move to `++ut` and rune doc (for \^= examples)
475 ++ toga :: face control
476 [2 p=toga q=toga] :: cell toga
485 [%ktts p=p=%a q=[%dtzy p=%ud q=1]]
488 > (ream '[a b]=[1 2 3]')
491 q=[%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
496 > (ream '[a ~]=[1 2 3]')
498 p=[%2 p=p=%a q=[%0 ~]]
499 q=[%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
507Intermediate Nock computation result
509Similar to [`++toon`](), but stack trace is not yet rendered.
514 ++ tone $% [%0 p=*] :: success
519 > (mink [[20 21] 0 3] ,~)
522 > (mink [[0] !=(.^(cy//=main/1))] ,~)
523 [%1 p=~[[31.075 1.685.027.454 1.852.399.981 49 0]]]
524 > (path [31.075 1.685.027.454 1.852.399.981 49 0])
527 > (mink [[1 2] !=(~|(%hi +(.)))] ,~)
528 [%2 p=~[[~.yelp 26.984]]]
529 > (mink [[1 2] !=(!:(+(.)))] ,~)
536 \/159.445.990.350.374.058.574.398.238.344.143.957.205.628.479.572.65\/
562 [%d p=twig] :: dynamic list
563 [%e p=twig q=(list tuna)] :: element
564 [%f p=(list tuna)] :: subflow
570Leaf %a contains plain-text, %b an empty tag, %c a static list, %d a
571dynamic list, %e a full node element containing a twig and a list of
572tuna, and %f is a empty node.
574See also: [`++sail`]()
583List of [`++twig`]()s. In [`:*`](), for example, your contents is
589 ++ tusk (list twig) ::
595 [%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
596 > (tusk +:(ream '[1 2 3]'))
597 ~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]
606An expression, or AST.
608See Twig section of Hoon reference
617List of [`++unit`]() [`++twig`](), or gaps left to be inferred, in [`++path`]()
618parsing. When you use a path such as `/=main=/pub/src/doc` the path is in fact
619a `++tyke`, where the `=` are inferred from your current path.
625 ++ tyke (list (unit twig)) ::
630 > (scan "/==as=" porc:vast)
631 [0 ~[~ ~ [~ [%dtzy p=%tas q=29.537]] ~]]
632 > `tyke`+:(scan "/==as=" porc:vast)
633 ~[~ ~ [~ [%dtzy p=%tas q=29.537]] ~]
642Pointer for [`++type`](). `++typo` preserves the previous `++type` in your
648 ++ typo type :: old type
653See also: `++seem`, `++vise`, `++type`
662Associative list of [++term]() [`++twig`](), used in [jet]() hint processing.
667 ++ tyre (list ,[p=term q=twig]) ::
674Typed data. A `++vase` is used wherever typed data is explicitly worked
681 ++ vase ,[p=type q=*] :: type-value pair
688 [p=[%cube p=0 q=[%atom p=%n]] q=0]
697Used to convert from previously-typed data during reboot.
702 ++ vise ,[p=typo q=*] :: old vase
707See also: [`++typo`](), [`++seer`]()
714 ++ wing (list limb) ::
716Address in subject. A `++wing` is a path to a value in the subject. A
717term alone is the trivial case of a `++wing`.
722 [%cnzz p=~[%a [%.y p=3] %c]]
723 > (wing +:(ream 'a.+.c'))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list