Debian Codegraph @

tests/inputs/arvo.hoon

raw
1 :< first 120 lines of https://raw.githubusercontent.com/urbit/arvo/master/sys/arvo.hoon
2 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::
3 :::::: :::::: Postface ::::::
4 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::
5 => +7
6 ~> %slog.[0 leaf+"%arvo-assembly"]
7 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::
8 :::::: :::::: volume 3, Arvo models and skeleton ::::::
9 :::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::
10 =>
11 ~% %hex + ~
12 |%
13 ++ arch {fil/(unit @uvI) dir/(map @ta $~)} :: fundamental node
14 ++ arvo (wind {p/term q/mill} mill) :: arvo card
15 ++ beam {{p/ship q/desk r/case} s/path} :: global name
16 ++ beak {p/ship q/desk r/case} :: garnish with beak
17 ++ bone @ud :: opaque duct
18 ++ case :: version
19 $% {$da p/@da} :: date
20 {$tas p/@tas} :: label
21 {$ud p/@ud} :: sequence
22 == ::
23 ++ desk @tas :: ship desk case spur
24 ++ cage (cask vase) :: global metadata
25 ++ cask |*(a/mold (pair mark a)) :: global data
26 ++ cuff :: permissions
27 $: p/(unit (set monk)) :: can be read by
28 q/(set monk) :: caused or created by
29 == ::
30 ++ curd {p/@tas q/*} :: typeless card
31 ++ duct (list wire) :: causal history
32 ++ hypo |*(a/mold (pair type a)) :: type associated
33 ++ hobo |* a/mold :: kiss wrapper
34 $? $% {$soft p/*} ::
35 == ::
36 a ::
37 == ::
38 ++ kirk (unit (set monk)) :: audience
39 ++ lens :: observation core
40 $_ ^? ::
41 |% ++ u *(unit (unit $~)) :: existence
42 ++ v *(unit (unit cage)) :: full history
43 ++ w *(unit (unit (unit cage))) :: latest diff
44 ++ x *(unit (unit cage)) :: data at path
45 ++ y *(unit (unit arch)) :: directory
46 ++ z *(unit (unit cage)) :: current subtree
47 -- ::
48 ++ marc :: structured mark
49 $@ mark :: plain mark
50 $% {$tabl p/(list (pair marc marc))} :: map
51 == ::
52 ++ mark @tas :: content type
53 ++ mash |=(* (mass +<)) :: producing mass
54 ++ mass (pair cord (each noun (list mash))) :: memory usage
55 ++ mill (each vase milt) :: vase+metavase
56 ++ milt {p/* q/*} :: metavase
57 ++ monk (each ship {p/@tas q/@ta}) :: general identity
58 ++ muse {p/@tas q/duct r/arvo} :: sourced move
59 ++ move {p/duct q/arvo} :: arvo move
60 ++ ovum {p/wire q/curd} :: typeless ovum
61 ++ pane (list {p/@tas q/vase}) :: kernel modules
62 ++ pone (list {p/@tas q/vise}) :: kernel modules old
63 ++ ship @p :: network identity
64 ++ sink (trel bone ship path) :: subscription
65 ++ sley $- {* (unit (set monk)) term beam} :: namespace function
66 (unit (unit cage)) ::
67 ++ slyd $- {* (unit (set monk)) term beam} :: super advanced
68 (unit (unit (cask))) ::
69 ++ slyt $-({* *} (unit (unit))) :: old namespace
70 ++ vile :: reflexive constants
71 $: typ/type :: -:!>(*type)
72 duc/type :: -:!>(*duct)
73 pah/type :: -:!>(*path)
74 mev/type :: -:!>([%meta *vase])
75 == ::
76 ++ wind :: new kernel action
77 |* {a/mold b/mold} :: forward+reverse
78 $% {$pass p/path q/a} :: advance
79 {$slip p/a} :: lateral
80 {$give p/b} :: retreat
81 == ::
82 ++ wire path :: event pretext
83 ++ sloy
84 !:
85 |= sod/slyd
86 ^- slyt
87 |= {ref/* raw/*}
88 =+ pux=((soft path) raw)
89 ?~ pux ~
90 ?. ?=({@ @ @ @ *} u.pux) ~
91 =+ :* hyr=(slay i.u.pux)
92 fal=(slay i.t.u.pux)
93 dyc=(slay i.t.t.u.pux)
94 ved=(slay i.t.t.t.u.pux)
95 tyl=t.t.t.t.u.pux
96 ==
97 ?. ?=({$~ $$ $tas @} hyr) ~
98 ?. ?=({$~ $$ $p @} fal) ~
99 ?. ?=({$~ $$ $tas @} dyc) ~
100 ?. ?=(^ ved) ~
101 =+ ron=q.p.u.hyr
102 =+ bed=[[q.p.u.fal q.p.u.dyc (case p.u.ved)] (flop tyl)]
103 =+ bop=(sod ref ~ ron bed)
104 ?~ bop ~
105 ?~ u.bop [~ ~]
106 [~ ~ +.q.u.u.bop]
107 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
108 :: section 3bE, Arvo core ::
109 ::
110 ++ vent :: vane core
111 |= {lal/@tas vil/vile bud/vase sew/(pair worm vase)}
112 ~% %vent +>+ ~
113 |%
114 ++ ruck :: update vase
115 |= {pax/path txt/@ta}
116 ^+ +>
117 =- ?:(?=($| -.res) ((slog p.res) +>.$) p.res)
118 ^= res %- mule |.
119 =+ arg=[~2000.1.1 0 =>(~ |~(* ~))]
120 =+ rig=(slym q.sew arg)