1# 4o: molds and mold builders
4Biblical names in hoon are primarily aliases for the compiler.
9 ++ abel typo :: original sin: type
24By convention, a short name for a category of atom. `++aura` is
25circularly defined, with [`@ta`]() being the `++aura` of the ASCII subset
26commonly used in urbit.
31 ++ aura ,@ta :: atom format
36See also: [`++base`](), [aura reference]()
49A Nock axis inside a [noun](). After the leading 1, in binary, a `1` signfies
55 ++ axis ,@ :: tree address
63 > :: 0 is not actually a valid axis
76A base type that [noun]()s are built from. A `++base` is either a noun, cell, boolean or
77null labelled with an [odor]().
82 ++ base ?([%atom p=odor] %noun %cell %bean %null) :: axils, @ * ^ ? ~
91 [%tsbr p=[%axil p=%cell] q=[%zpzp ~]]
94 [%tsbr p=[%axil p=[%atom p=~.t]] q=[%zpzp ~]]
96 [%tsbr p=[%axil p=%bean] q=[%zpzp ~]]
104`0`, `&`, or `%.y` are true, and `1`, `|`, and `%.n` are false.
109 ++ bean ,? :: 0=&=yes, 1=|=no
129Used to build [tape]()s internally.
134 ++ beer $|(@ [~ p=twig]) :: simple embed
141 > `beer`[~ (ream 'lan')]
142 [~ p=[%cnzz p=~[%lan]]]
148XML interpolation cases
155 ++ beet $| @ :: advanced embed
156 $% [%a p=twig] :: take tape
157 [%b p=twig] :: take manx
158 [%c p=twig] :: take marl
159 [%d p=twig] :: take $+(marl marl)
160 [%e p=twig q=(list tuna)] :: element literal
170Jet hint information that must be present in the body of a `~/` or `~%`
171rune. A `++chum` can optionally contain a kelvin version, jet vendor,
172and "{major}.{minor}" version number.
177 ++ chum $? lef=term :: jet name
178 [std=term kel=@] :: kelvin version
179 [ven=term pro=term kel=@] :: vendor and product
180 [ven=term pro=term ver=@ kel=@] :: all of the above
186XX there's a ++chum in zuse that's politely causing this not to work
191 > (ream '~/(%lob.314 !!)')
192 [%sgfs p=[std=%lob kel=314] q=[%zpzp ~]]
199Tuple of core information
201Variance `p`, subject type `q`, and `q`: optional compiled nock, and arms. Used as an
202intermediate step within Section 2fB. Converted by `++core` to %core type.
207 ++ coil $: p=?(%gold %iron %lead %zinc) :: core type
209 r=[p=?(~ ^) q=(map term foot)] ::
217Cases of arms by variance model.
219`%ash` arms are [`dry`]() and [geometric]().
224 ++ foot $% [%ash p=twig] :: dry arm, geometric
225 [%elm p=twig] :: wet arm, generic
226 [%oak ~] :: XX not used
227 [%yew p=(map term foot)] :: XX not used
233See also: [`++ap`](), [`++ut`]()
238 > (ream '|% ++ $ foo --')
239 [%brcn p={[p=%$ q=[%ash p=[%cnzz p=~[%foo]]]]}]
240 > +<+:(ream '|% ++ $ foo --')
242 > (foot +<+:(ream '|% ++ $ foo --'))
243 [%ash p=[%cnzz p=~[%foo]]]
244 > (foot +<+:(ream '|% +- $ foo --'))
245 [%elm p=[%cnzz p=~[%foo]]]
250 ++ limb $|(term $%([%& p=axis] [%| p=@ud q=term])) ::
254Reference into subject by name/axis
256See also: section 2fC-2fD
259 [%cnzz p=~[[%.n p=2 q=%$]]]
260 > (limb &2:(ream '^^$'))
262 > (limb &2:(ream '^^^$'))
275 ++ line ,[p=[%leaf p=odor q=@] q=tile] :: %kelp case
281 > (ream '$%([1 a] [%2 b])')
286 [ i=[p=[%leaf p=~.ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
287 t=~[[p=[%leaf p=~.ud q=2] q=[%herb p=[%cnzz p=~[%b]]]]]
291 > &3:(ream '$%([1 a] [%2 b])')
292 p=[p=[%leaf p=%ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
293 > (line &3:(ream '$%([1 a] [%2 b])'))
294 [p=[%leaf p=~.ud q=1] q=[%herb p=[%cnzz p=~[%a]]]]
300 ++ metl ?(%gold %iron %zinc %lead) :: core variance
304See also: [`++coil`]()
311Virtual machine. See [Nock doc]().
317 ++ nock $& [p=nock q=nock] :: autocons
318 [%3 p=nock] :: cell test
319 [%4 p=nock] :: increment
320 [%5 p=nock q=nock] :: equality test
321 [%6 p=nock q=nock r=nock] :: if, then, else
322 [%7 p=nock q=nock] :: serial compose
323 [%8 p=nock q=nock] :: push onto subject
324 [%9 p=@ q=nock] :: select arm and fire
325 [%10 p=?(@ [p=@ q=nock]) q=nock] :: hint
326 [%11 p=nock] :: grab data from sky
334 > (nock !=([+(.) 20]))
335 [p=[%4 p=[%0 p=1]] q=[%1 p=20]]
342 ++ noun ,* :: any noun
354 ++ null ,~ :: null, nil, etc
369Type and location of core-shaped thing? XX Compiler Internals
377 [%| p=axis q=(list ,[p=type q=foot])] ::
385 [p=0 q=[%.y p=%void]]
394A restricted text atom for canonical atom syntaxes. The prefix is `~.`.
395There are no escape sequences except `~~`, which means `~`, and `~-`,
396which means `_`. `-` and `.` encode themselves. No other characters
397besides numbers and lowercase letters are permitted.
402 ++ span ,@ta :: text-atom (ASCII)
434A `++wing` or `++twig`.
436 > (ream '=+ a=4 ?-(a @ ~)')
438 p=[%ktts p=p=%a q=[%dtzy p=%ud q=4]]
442 q=~[[p=[%axil p=[%atom p=~.]] q=[%bczp p=%null]]]
445 > (ream '=+ a=4 ?-(4 @ ~)')
447 p=[%ktts p=p=%a q=[%dtzy p=%ud q=4]]
450 p=[%.n p=~ q=[%dtzy p=%ud q=4]]
451 q=~[[p=[%axil p=[%atom p=~.]] q=[%bczp p=%null]]]
462A [face](), or tree of faces. A `++toga` is applied to anything assigned
465XX move to `++ut` and rune doc (for \^= examples)
470 ++ toga :: face control
471 [2 p=toga q=toga] :: cell toga
480 [%ktts p=p=%a q=[%dtzy p=%ud q=1]]
483 > (ream '[a b]=[1 2 3]')
486 q=[%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
491 > (ream '[a ~]=[1 2 3]')
493 p=[%2 p=p=%a q=[%0 ~]]
494 q=[%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
502Intermediate Nock computation result
504Similar to [`++toon`](), but stack trace is not yet rendered.
509 ++ tone $% [%0 p=*] :: success
514 > (mink [[20 21] 0 3] ,~)
517 > (mink [[0] !=(.^(cy//=main/1))] ,~)
518 [%1 p=~[[31.075 1.685.027.454 1.852.399.981 49 0]]]
519 > (path [31.075 1.685.027.454 1.852.399.981 49 0])
522 > (mink [[1 2] !=(~|(%hi +(.)))] ,~)
523 [%2 p=~[[~.yelp 26.984]]]
524 > (mink [[1 2] !=(!:(+(.)))] ,~)
531 \/159.445.990.350.374.058.574.398.238.344.143.957.205.628.479.572.65\/
557 [%d p=twig] :: dynamic list
558 [%e p=twig q=(list tuna)] :: element
559 [%f p=(list tuna)] :: subflow
565Leaf %a contains plain-text, %b an empty tag, %c a static list, %d a
566dynamic list, %e a full node element containing a twig and a list of
567tuna, and %f is a empty node.
569See also: [`++sail`]()
578List of [`++twig`]()s. In [`:*`](), for example, your contents is
584 ++ tusk (list twig) ::
590 [%cltr p=~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]]
591 > (tusk +:(ream '[1 2 3]'))
592 ~[[%dtzy p=%ud q=1] [%dtzy p=%ud q=2] [%dtzy p=%ud q=3]]
601An expression, or AST.
603See Twig section of Hoon reference
612List of [`++unit`]() [`++twig`](), or gaps left to be inferred, in [`++path`]()
613parsing. When you use a path such as `/=main=/pub/src/doc` the path is in fact
614a `++tyke`, where the `=` are inferred from your current path.
620 ++ tyke (list (unit twig)) ::
625 > (scan "/==as=" porc:vast)
626 [0 ~[~ ~ [~ [%dtzy p=%tas q=29.537]] ~]]
627 > `tyke`+:(scan "/==as=" porc:vast)
628 ~[~ ~ [~ [%dtzy p=%tas q=29.537]] ~]
637Pointer for [`++type`](). `++typo` preserves the previous `++type` in your
643 ++ typo type :: old type
648See also: `++seem`, `++vise`, `++type`
657Associative list of [++term]() [`++twig`](), used in [jet]() hint processing.
662 ++ tyre (list ,[p=term q=twig]) ::
669Typed data. A `++vase` is used wherever typed data is explicitly worked
676 ++ vase ,[p=type q=*] :: type-value pair
683 [p=[%cube p=0 q=[%atom p=%n]] q=0]
692Used to convert from previously-typed data during reboot.
697 ++ vise ,[p=typo q=*] :: old vase
702See also: [`++typo`](), [`++seer`]()
709 ++ wing (list limb) ::
711Address in subject. A `++wing` is a path to a value in the subject. A
712term alone is the trivial case of a `++wing`.
717 [%cnzz p=~[%a [%.y p=3] %c]]
718 > (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