arvo: moves |de out of +node, renames +node to +axal

This commit is contained in:
Joe Bryan 2020-11-21 14:23:05 -08:00
parent 15192ebd5b
commit a2abf1c992

View File

@ -24,7 +24,9 @@
:: ::
++ arvo %arvo-kelvin ++ arvo %arvo-kelvin
:: ::
:: $arch: fundamental node :: $arch: node identity
:: $axal: fundamental node, recursive
:: $axil: fundamental node
:: $beak: global context :: $beak: global context
:: $beam: global name :: $beam: global name
:: $bone: opaque duct handle :: $bone: opaque duct handle
@ -37,7 +39,14 @@
:: $ship: network identity :: $ship: network identity
:: $sink: subscription :: $sink: subscription
:: ::
+$ arch [fil=(unit @uvI) dir=(map @ta ~)] +$ arch (axil @uvI)
++ axal
|$ [item]
[fil=(unit item) dir=(map @ta $)] ::
++ axil
|$ [item]
[fil=(unit item) dir=(map @ta ~)]
::
+$ beam [beak s=path] +$ beam [beak s=path]
+$ beak (trel ship desk case) +$ beak (trel ship desk case)
+$ bone @ud +$ bone @ud
@ -104,59 +113,6 @@
(pair cord (each * (list mass))) (pair cord (each * (list mass)))
+$ monk (each ship (pair @tas @ta)) +$ monk (each ship (pair @tas @ta))
+$ move [=duct =ball] +$ move [=duct =ball]
:: $node: fundamental hierarchical node
::
:: XX s/b +arch
::
++ node
=< |$ [item]
[fil=(unit item) dir=(map @ta $)]
::
:: |de: node engine
::
|%
++ de
=| fat=(node)
|@
::
++ get
|= pax=path
^+ fat
?~ pax fat
=/ kid (~(get by dir.fat) i.pax)
?~ kid [~ ~]
$(fat u.kid, pax t.pax)
::
++ put
|* [pax=path dat=*]
=> .(dat `_?>(?=(^ fil.fat) u.fil.fat)`dat)
^+ fat
?~ pax fat(fil `dat)
=/ kid (~(get by dir.fat) i.pax)
=/ new (fall kid fat(fil ~, dir ~))
fat(dir (~(put by dir.fat) i.pax $(fat new, pax t.pax)))
::
++ gas
|= lit=(list (pair path _?>(?=(^ fil.fat) u.fil.fat)))
^+ fat
?~ lit fat
$(fat (put p.i.lit q.i.lit), lit t.lit)
::
++ tap
=| pax=path
=| out=(list (pair path _?>(?=(^ fil.fat) u.fil.fat)))
|- ^+ out
=? out ?=(^ fil.fat) :_(out [pax u.fil.fat])
=/ dir ~(tap by dir.fat)
|- ^+ out
?~ dir out
%= $
dir t.dir
out ^$(pax (weld pax /[p.i.dir]), fat q.i.dir)
==
-- :: de
-- :: node
::
+$ ovum (pair wire curd) +$ ovum (pair wire curd)
:: ::
+$ scry-sample +$ scry-sample
@ -240,7 +196,7 @@
lac=? :: laconic bit lac=? :: laconic bit
ver=vere :: runtime ver=vere :: runtime
lag=_| :: upgrade blocked lag=_| :: upgrade blocked
fat=(node (cask)) :: filesystem fat=(axal (cask)) :: filesystem
zus=vase :: %zuse zus=vase :: %zuse
van=(map term vane) :: modules van=(map term vane) :: modules
== ==
@ -376,6 +332,50 @@
%| `[p.fel ~] %| `[p.fel ~]
%& ?.((lte p.fel q.i.hav) `[i.hav `p.fel] $(hav t.hav)) %& ?.((lte p.fel q.i.hav) `[i.hav `p.fel] $(hav t.hav))
== ==
::
:: |de: axal engine
::
++ de
=| fat=(axal)
|@
::
++ get
|= pax=path
^+ fat
?~ pax fat
=/ kid (~(get by dir.fat) i.pax)
?~ kid [~ ~]
$(fat u.kid, pax t.pax)
::
++ put
|* [pax=path dat=*]
=> .(dat `_?>(?=(^ fil.fat) u.fil.fat)`dat)
^+ fat
?~ pax fat(fil `dat)
=/ kid (~(get by dir.fat) i.pax)
=/ new (fall kid fat(fil ~, dir ~))
fat(dir (~(put by dir.fat) i.pax $(fat new, pax t.pax)))
::
++ gas
|= lit=(list (pair path _?>(?=(^ fil.fat) u.fil.fat)))
^+ fat
?~ lit fat
$(fat (put p.i.lit q.i.lit), lit t.lit)
::
++ tap
=| pax=path
=| out=(list (pair path _?>(?=(^ fil.fat) u.fil.fat)))
|- ^+ out
=? out ?=(^ fil.fat) :_(out [pax u.fil.fat])
=/ dir ~(tap by dir.fat)
|- ^+ out
?~ dir out
%= $
dir t.dir
out ^$(pax (weld pax /[p.i.dir]), fat q.i.dir)
==
--
::
:: |part: arvo structures and engines :: |part: arvo structures and engines
:: ::
++ part ++ part
@ -444,8 +444,7 @@
:: ::
++ sole |=(a=(cask) `hoof`?>(?=([%hoon @t] a) q.a)) ++ sole |=(a=(cask) `hoof`?>(?=([%hoon @t] a) q.a))
-- --
=* de de:node |_ fat=(axal (cask))
|_ fat=(node (cask))
:: ::
:: +group: collate changes :: +group: collate changes
:: ::
@ -1132,7 +1131,7 @@
++ lod ++ lod
|= kel=(list (pair path (cask))) |= kel=(list (pair path (cask)))
^+ ..pith ^+ ..pith
=/ fat (~(gas de:node fat) kel) =/ fat (~(gas de fat) kel)
%+ mod %+ mod
(~(group adapt fat) fil) (~(group adapt fat) fil)
%+ lien kel %+ lien kel
@ -1506,7 +1505,7 @@
eny=(unit @) eny=(unit @)
lac=? lac=?
ver=(unit vere) ver=(unit vere)
fat=(unit (node (cask))) fat=(unit (axal (cask)))
bod=(unit (trap vase)) bod=(unit (trap vase))
van=(map term (trap vase)) van=(map term (trap vase))
== ==
@ -1569,7 +1568,7 @@
:: ::
%wack ..poke(eny `p.gub) %wack ..poke(eny `p.gub)
:: ::
%what =/ taf (fall fat *(node (cask))) %what =/ taf (fall fat *(axal (cask)))
=/ del (~(group adapt:part taf) p.gub) =/ del (~(group adapt:part taf) p.gub)
=/ tub (~(usurp adapt:part taf) del) =/ tub (~(usurp adapt:part taf) del)
?: &(?=(^ dir.taf) ?=(^ tub)) ?: &(?=(^ dir.taf) ?=(^ tub))
@ -1580,7 +1579,7 @@
=? taf =(~ dir.taf) :: XX TMI =? taf =(~ dir.taf) :: XX TMI
~| %larval-need-kernel ~| %larval-need-kernel
?> ?=(^ tub) ?> ?=(^ tub)
(~(gas de:node taf) q.u.tub) (~(gas de taf) q.u.tub)
:: ::
=^ job taf [p q]:(~(adorn adapt:part taf) del |) =^ job taf [p q]:(~(adorn adapt:part taf) del |)
=? bod ?=(^ zus.job) =? bod ?=(^ zus.job)