mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
arvo: removes obsolete engines
This commit is contained in:
parent
624a40331c
commit
8187c58ee5
@ -22,7 +22,6 @@
|
||||
=>
|
||||
|%
|
||||
++ arch {fil/(unit @uvI) dir/(map @ta $~)} :: fundamental node
|
||||
++ arvo (wind {p/term q/mill} mill) :: arvo card
|
||||
++ beam {{p/ship q/desk r/case} s/path} :: global name
|
||||
++ beak {p/ship q/desk r/case} :: garnish with beak
|
||||
++ bone @ud :: opaque duct
|
||||
@ -50,8 +49,6 @@
|
||||
++ mill (each vase milt) :: vase+metavase
|
||||
++ milt {p/* q/*} :: metavase
|
||||
++ monk (each ship {p/@tas q/@ta}) :: general identity
|
||||
++ muse {p/@tas q/duct r/arvo s/@ud} :: sourced move
|
||||
++ move {p/duct q/arvo} :: arvo move
|
||||
++ ovum {p/wire q/curd} :: typeless ovum
|
||||
++ pane (list {p/@tas q/vase}) :: kernel modules
|
||||
++ pone (list {p/@tas q/vise}) :: kernel modules old
|
||||
@ -718,216 +715,6 @@
|
||||
::
|
||||
+:(~(slap wa worm.vane) rig [%limb %scry])
|
||||
==
|
||||
::
|
||||
++ wink :: deploy
|
||||
|= {now/@da eny/@ ski/slyd}
|
||||
=^ rig worm.vane
|
||||
~| [%failed-vane-activation-for lal]
|
||||
(~(slym wa worm.vane) vase.vane `vane-sample`[who +<]) :: activate vane
|
||||
~% %wink +>+> ~
|
||||
|%
|
||||
++ slid
|
||||
|= {hed/mill tal/mill}
|
||||
^- mill
|
||||
?: &(?=(%& -.hed) ?=(%& -.tal))
|
||||
[%& (slop p.hed p.tal)]
|
||||
[%| [%cell p.p.hed p.p.tal] [q.p.hed q.p.tal]]
|
||||
::
|
||||
++ slix
|
||||
|= hil/mill
|
||||
^- mill
|
||||
?- -.hil
|
||||
%& [%& (slop [typ.vil p.p.hil] p.hil)]
|
||||
%| [%| [%cell typ.vil p.p.hil] p.hil]
|
||||
==
|
||||
::
|
||||
++ slur :: call gate on
|
||||
|= {gat/vase hil/mill}
|
||||
^- (unit (pair vase worm))
|
||||
=^ sam worm.vane
|
||||
~| [%failed-slot-in lal]
|
||||
(~(slot wa worm.vane) 6 gat)
|
||||
=^ hig worm.vane
|
||||
~| [%failed-nest-in lal]
|
||||
?- -.hil
|
||||
%& (~(nest wa worm.vane) p.sam p.p.hil)
|
||||
%| (~(nets wa worm.vane) p.sam p.p.hil)
|
||||
==
|
||||
?. hig
|
||||
~
|
||||
~| [%failed-slym-in lal]
|
||||
`(~(slym wa worm.vane) gat +>.hil)
|
||||
::
|
||||
++ slur-a ~/(%slur-a |=({gat/vase hil/mill} =+(%a (slur gat hil))))
|
||||
++ slur-b ~/(%slur-b |=({gat/vase hil/mill} =+(%b (slur gat hil))))
|
||||
++ slur-c ~/(%slur-c |=({gat/vase hil/mill} =+(%c (slur gat hil))))
|
||||
++ slur-d ~/(%slur-d |=({gat/vase hil/mill} =+(%d (slur gat hil))))
|
||||
++ slur-e ~/(%slur-e |=({gat/vase hil/mill} =+(%e (slur gat hil))))
|
||||
++ slur-f ~/(%slur-f |=({gat/vase hil/mill} =+(%f (slur gat hil))))
|
||||
++ slur-g ~/(%slur-g |=({gat/vase hil/mill} =+(%g (slur gat hil))))
|
||||
++ slur-i ~/(%slur-i |=({gat/vase hil/mill} =+(%i (slur gat hil))))
|
||||
++ slur-j ~/(%slur-j |=({gat/vase hil/mill} =+(%j (slur gat hil))))
|
||||
++ slur-z ~/(%slur-z |=({gat/vase hil/mill} =+(%z (slur gat hil))))
|
||||
::
|
||||
++ slur-pro :: profiling slur
|
||||
~/ %slur-pro
|
||||
|= {lal/@tas gat/vase hil/mill}
|
||||
?+ lal (slur-z gat hil)
|
||||
$a (slur-a gat hil)
|
||||
$b (slur-b gat hil)
|
||||
$c (slur-c gat hil)
|
||||
$d (slur-d gat hil)
|
||||
$e (slur-e gat hil)
|
||||
$f (slur-f gat hil)
|
||||
$g (slur-g gat hil)
|
||||
$i (slur-i gat hil)
|
||||
$j (slur-j gat hil)
|
||||
==
|
||||
::
|
||||
++ song :: reduce metacard
|
||||
~/ %song ::
|
||||
|= mex/vase :: mex: vase of card
|
||||
^- (unit (pair mill worm)) ::
|
||||
=^ hip worm.vane (~(nell wa worm.vane) p.mex) ::
|
||||
?. hip ~ :: a card is a cell
|
||||
?. ?=($meta -.q.mex) `[[%& mex] worm.vane] :: ordinary card
|
||||
=^ tiv worm.vane (~(slot wa worm.vane) 3 mex) ::
|
||||
=^ hip worm.vane (~(nell wa worm.vane) p.tiv) ::
|
||||
?. hip ~ :: a vase is a cell
|
||||
=^ vax worm.vane (~(slot wa worm.vane) 2 tiv) ::
|
||||
=^ hip worm.vane (~(nest wa worm.vane) typ.vil p.vax) ::
|
||||
?. hip ~ :: vase head is type
|
||||
%+ biff ::
|
||||
=+ mut=(milt q.tiv) :: card type, value
|
||||
|- ^- (unit (pair milt worm)) ::
|
||||
?. ?=({$meta p/* q/milt} q.mut) `[mut worm.vane] :: ordinary metacard
|
||||
=^ hip worm.vane (~(nets wa worm.vane) mev.vil p.mut)::
|
||||
?. hip ~ :: meta-metacard
|
||||
$(mut +.q.mut) :: descend into meta
|
||||
|=(a/(pair milt worm) `[[%| p.a] q.a]) :: milt to mill
|
||||
::
|
||||
++ sump :: vase to move
|
||||
~/ %sump
|
||||
|= wec/vase
|
||||
^- (unit (pair move worm))
|
||||
%+ biff ((soft duct) -.q.wec)
|
||||
|= a/duct
|
||||
%+ bind
|
||||
=- ?- -.har
|
||||
%| ~& [%dead-card p.har] ~ :: XX properly log?
|
||||
%& (some p.har)
|
||||
==
|
||||
^= har ^- (each (pair arvo worm) term)
|
||||
=^ caq worm.vane (~(spot wa worm.vane) 3 wec)
|
||||
?+ q.caq [%| (cat 3 %funk (symp q.caq))]
|
||||
::
|
||||
{$pass p/* q/@tas r/{p/@tas q/*}}
|
||||
%- (bond |.([%| p.r.q.caq]))
|
||||
%+ biff ((soft @) q.q.caq)
|
||||
|= lal/@tas
|
||||
?. ((sane %tas) lal) ~
|
||||
%+ biff ((soft path) p.q.caq)
|
||||
|= pax/path
|
||||
=^ xav worm.vane (~(spot wa worm.vane) 7 caq)
|
||||
=^ yav worm.vane (~(spot wa worm.vane) 3 xav)
|
||||
%+ bind (song yav)
|
||||
|= {hil/mill vel/worm}
|
||||
[%& [%pass pax lal hil] vel]
|
||||
::
|
||||
{$give p/{p/@tas q/*}}
|
||||
%- (bond |.([%| p.p.q.caq]))
|
||||
=^ yav worm.vane (~(spot wa worm.vane) 3 caq)
|
||||
%+ bind (song yav)
|
||||
|= {hil/mill vel/worm}
|
||||
[%& [%give hil] vel]
|
||||
::
|
||||
{$slip p/@tas q/{p/@tas q/*}}
|
||||
%- (bond |.([%| p.q.q.caq]))
|
||||
%+ biff ((soft @) p.q.caq)
|
||||
|= lal/@tas
|
||||
?. ((sane %tas) lal) ~
|
||||
=^ xav worm.vane (~(spot wa worm.vane) 3 caq)
|
||||
=^ yav worm.vane (~(spot wa worm.vane) 3 xav)
|
||||
%+ bind (song yav)
|
||||
|= {hil/mill vel/worm}
|
||||
[%& [%slip lal hil] vel]
|
||||
==
|
||||
|=(b/(pair arvo worm) [`move`[a p.b] q.b])
|
||||
::
|
||||
++ said :: vase to (list move)
|
||||
|= vud/vase
|
||||
|- ^- (pair (list move) worm)
|
||||
?: =(~ q.vud) [~ worm.vane]
|
||||
=^ hed worm.vane (~(slot wa worm.vane) 2 vud)
|
||||
=^ tal worm.vane (~(slot wa worm.vane) 3 vud)
|
||||
=^ mov worm.vane (need (sump hed))
|
||||
=^ moz worm.vane $(vud tal)
|
||||
[[mov moz] worm.vane]
|
||||
::
|
||||
++ scry :: read namespace
|
||||
~/ %scry
|
||||
|= $: fur/(unit (set monk))
|
||||
ren/@t
|
||||
bed/beam
|
||||
==
|
||||
^- (unit (unit (cask milt)))
|
||||
:: ~& [%arvo-scry ren bed]
|
||||
=/ old=scry-sample
|
||||
:* fur
|
||||
ren
|
||||
[%& p.bed]
|
||||
q.bed
|
||||
`coin`[%$ r.bed]
|
||||
(flop s.bed)
|
||||
==
|
||||
^- (unit (unit (cask milt)))
|
||||
=+ fun=-:(~(slap wa worm.vane) rig [%limb %scry])
|
||||
::
|
||||
%- (unit (unit (cask milt)))
|
||||
(slum q.fun old)
|
||||
::
|
||||
++ soar :: scrub vane
|
||||
|= sev/vase
|
||||
^- vase
|
||||
?: &(=(-.q.vase.vane -.q.sev) =(+>.q.vase.vane +>.q.sev))
|
||||
vase.vane :: unchanged, use old
|
||||
=| sam=vane-sample
|
||||
sev(+<.q sam(ski =>(~ |~(* ~)))) :: clear to stop leak
|
||||
::
|
||||
++ swim
|
||||
~/ %swim
|
||||
|= $: org/@tas
|
||||
pux/(unit wire)
|
||||
hen/duct
|
||||
hil/mill
|
||||
==
|
||||
^- [(list move) _vane]
|
||||
~| [%failed-swim lal org pux]
|
||||
:: ~& [%swim-wyt `@ud`~(wyt in worm.vane)]
|
||||
=+ ^= pru
|
||||
?~ pux
|
||||
~| [%swim-call-vane lal (symp ?@(+.p.hil +.p.hil +<.p.hil))]
|
||||
=^ vax worm.vane (~(slap wa worm.vane) rig [%limb %call])
|
||||
%^ slur-pro lal vax
|
||||
(slid [%& duc.vil hen] (slix hil))
|
||||
~| [%swim-take-vane lal (symp ?@(+.p.hil +.p.hil +<.p.hil))]
|
||||
=^ vax worm.vane (~(slap wa worm.vane) rig [%limb %take])
|
||||
%^ slur-pro lal vax
|
||||
;: slid
|
||||
[%& pah.vil u.pux]
|
||||
[%& duc.vil hen]
|
||||
(slix (slid [%& [%atom %tas `org] org] hil))
|
||||
==
|
||||
?~ pru
|
||||
~& [%swim-lost lal (symp +>-.hil)]
|
||||
[~ [vase.vane worm.vane]]
|
||||
=^ pro worm.vane (need pru)
|
||||
=^ moz worm.vane (~(slot wa worm.vane) 2 pro)
|
||||
=^ vem worm.vane (~(slot wa worm.vane) 3 pro)
|
||||
:: =^ sad worm.vane (said moz)
|
||||
=^ sad worm.vane (~(refine-moves me:part worm.vane typ.vil) moz)
|
||||
[sad [(soar vem) worm.vane]]
|
||||
--
|
||||
--
|
||||
::
|
||||
++ vint :: create vane
|
||||
@ -960,23 +747,6 @@
|
||||
++ is :: operate in time
|
||||
|= [who=ship vil=vile eny=@ bud=vase vanes=(list [label=@tas =vane])]
|
||||
|_ now/@da
|
||||
++ beck
|
||||
^- slyd
|
||||
|= {typ/* fur/(unit (set monk)) ron/term bed/beam}
|
||||
^- (unit (unit (cask milt)))
|
||||
=> .(fur ?^(fur fur `[[%& p.bed] ~ ~])) :: XX heinous
|
||||
=+ lal=(end 3 1 ron)
|
||||
=+ ren=(@t (rsh 3 1 ron))
|
||||
|- ^- (unit (unit (cask milt)))
|
||||
?~ vanes ~
|
||||
?. =(lal label.i.vanes) $(vanes t.vanes)
|
||||
~| [%failed-scry ron bed]
|
||||
%- scry:(wink:(vent who lal vil bud vane.i.vanes) now eny ..^$)
|
||||
[fur ren bed]
|
||||
::
|
||||
++ dink :: vase by char
|
||||
|= din/@tas ^- vase
|
||||
?~(vanes !! ?:(=(din label.i.vanes) vase.vane.i.vanes $(vanes t.vanes)))
|
||||
::
|
||||
++ dint :: input routing
|
||||
|= hap/path ^- @tas
|
||||
@ -990,115 +760,6 @@
|
||||
{@ $http-server *} %e
|
||||
{@ $behn *} %b
|
||||
==
|
||||
::
|
||||
++ hurl :: start loop
|
||||
|= {lac/? ovo/ovum}
|
||||
~? !lac ["" %unix -.q.ovo p.ovo now]
|
||||
:: ^- {p/(list ovum) q/(pair worm (list {p/@tas q/vase}))}
|
||||
^- {p/(list ovum) q=(list [label=@tas =vane])}
|
||||
?> ?=(^ p.ovo)
|
||||
%+ kick lac
|
||||
:~ :* i.p.ovo
|
||||
~
|
||||
:^ %pass t.p.ovo
|
||||
(dint p.ovo)
|
||||
:+ %&
|
||||
[%cell [%atom %tas `%soft] %noun]
|
||||
[%soft q.ovo]
|
||||
0
|
||||
==
|
||||
==
|
||||
::
|
||||
++ race :: take
|
||||
|= {org/@tas lal/@tas pux/(unit wire) hen/duct hil/mill =vane}
|
||||
^- [p=(list move) q=_vane]
|
||||
=+ ven=(vent who lal vil bud vane)
|
||||
~| [%failed-take lal]
|
||||
=+ win=(wink:ven now eny beck)
|
||||
(swim:win org pux hen hil)
|
||||
::
|
||||
++ fire :: execute
|
||||
|= {org/term deh/@ud lal/term pux/(unit wire) hen/duct hil/mill}
|
||||
^- {{p/(list ovum) q/(list muse)} _vanes}
|
||||
?: &(?=(^ pux) ?=($~ hen))
|
||||
[[[[lal u.pux] (curd +>.hil)]~ ~] vanes]
|
||||
=+ naf=vanes
|
||||
|- ^- {{p/(list ovum) q/(list muse)} _vanes}
|
||||
?~ naf [[~ ~] ~]
|
||||
?. =(lal label.i.naf)
|
||||
~| [%lal lal label.i.naf]
|
||||
=+ tuh=$(naf t.naf)
|
||||
[-.tuh [+<.tuh [i.naf +>.tuh]]]
|
||||
::
|
||||
=+ fiq=(race org lal pux hen hil vane.i.naf)
|
||||
:- [~ (turn p.fiq |=(a/move [lal p.a q.a +(deh)]))]
|
||||
[[label.i.naf q.fiq] t.naf]
|
||||
::
|
||||
++ jack :: dispatch card
|
||||
|= {lac/? gum/muse}
|
||||
^- {{p/(list ovum) q/(list muse)} _vanes}
|
||||
~| %failed-jack
|
||||
:: =. lac |(lac ?=(?(%g %f) p.gum))
|
||||
:: =. lac &(lac !?=($b p.gum))
|
||||
%^ fire
|
||||
p.gum
|
||||
s.gum
|
||||
?- -.r.gum
|
||||
$pass
|
||||
~? &(!lac !=(%$ p.gum))
|
||||
:- (runt [s.gum '|'] "")
|
||||
:^ %pass [p.gum p.q.r.gum]
|
||||
?: ?=(?(%deal %deal-gall) +>-.q.q.r.gum)
|
||||
:- :- +>-.q.q.r.gum
|
||||
(,[[ship ship] term term] [+>+< +>+>- +>+>+<]:q.q.r.gum)
|
||||
p.r.gum
|
||||
[(symp +>-.q.q.r.gum) p.r.gum]
|
||||
q.gum
|
||||
[p.q.r.gum ~ [[p.gum p.r.gum] q.gum] q.q.r.gum]
|
||||
::
|
||||
$give
|
||||
?. &(?=(^ q.gum) ?=(^ i.q.gum))
|
||||
~| [%jack-bad-duct q.gum]
|
||||
~| [%jack-bad-card p.gum (symp +>-.p.r.gum)]
|
||||
!!
|
||||
~? &(!lac |(!=(%blit +>-.p.r.gum) !=(%d p.gum)))
|
||||
:- (runt [s.gum '|'] "")
|
||||
:^ %give p.gum
|
||||
?: ?=(%unto +>-.p.r.gum)
|
||||
[+>-.p.r.gum (term +>+<.p.r.gum)]
|
||||
(symp +>-.p.r.gum)
|
||||
`duct`q.gum
|
||||
[i.i.q.gum [~ t.i.q.gum] t.q.gum p.r.gum]
|
||||
::
|
||||
$slip
|
||||
~? !lac
|
||||
:- (runt [s.gum '|'] "")
|
||||
[%slip p.gum (symp +>-.q.p.r.gum) q.gum]
|
||||
[p.p.r.gum ~ q.gum q.p.r.gum]
|
||||
==
|
||||
::
|
||||
++ kick :: new main loop
|
||||
|= {lac/? mor/(list muse)}
|
||||
=| ova/(list ovum)
|
||||
|- ^- {p/(list ovum) q=(list [label=@tas =vane])}
|
||||
?~ mor
|
||||
[ova vanes]
|
||||
=^ nyx vanes (jack lac i.mor)
|
||||
:: we emit ova to unix in fifo order, but emit internal moves depth-first
|
||||
::
|
||||
$(ova (weld ova p.nyx), mor (weld q.nyx t.mor))
|
||||
:: +spam: kick every vane with :ovum
|
||||
::
|
||||
++ spam
|
||||
|= [lac=? ovo=ovum]
|
||||
^- [(list ovum) (list [label=@tas =vane])]
|
||||
=/ card
|
||||
:+ %&
|
||||
[%cell [%atom %tas `%soft] %noun]
|
||||
[%soft q.ovo]
|
||||
%+ kick lac
|
||||
%+ turn vanes
|
||||
|=([label=@tas *] [label ~ [%pass p.ovo label card] 0])
|
||||
--
|
||||
--
|
||||
=< :: Arvo larval stage
|
||||
|
Loading…
Reference in New Issue
Block a user