mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-13 08:38:43 +03:00
progress toward sub-booting
This commit is contained in:
parent
55e8072b3b
commit
092a2822e9
166
arvo/clay.hoon
166
arvo/clay.hoon
@ -65,7 +65,7 @@
|
|||||||
$: %c :: to %clay
|
$: %c :: to %clay
|
||||||
$% [%font p=@p q=@tas r=@p s=@tas] ::
|
$% [%font p=@p q=@tas r=@p s=@tas] ::
|
||||||
[%info p=@p q=@tas r=nori] :: internal edit
|
[%info p=@p q=@tas r=nori] :: internal edit
|
||||||
[%merg p=@p q=@tas r=mizu] ::
|
[%merg p=@p q=@tas r=@p s=@tas t=germ] :: merge desks
|
||||||
[%warp p=sock q=riff] ::
|
[%warp p=sock q=riff] ::
|
||||||
== == ::
|
== == ::
|
||||||
$: %d ::
|
$: %d ::
|
||||||
@ -84,7 +84,8 @@
|
|||||||
[%went p=ship q=cape] ::
|
[%went p=ship q=cape] ::
|
||||||
== == ::
|
== == ::
|
||||||
$: %c :: by %clay
|
$: %c :: by %clay
|
||||||
$% [%writ p=riot] ::
|
$% [%mere p=(each (set path) (pair term (list tank)))]
|
||||||
|
[%writ p=riot] ::
|
||||||
== == ::
|
== == ::
|
||||||
$: %f ::
|
$: %f ::
|
||||||
$% [%made p=(each bead (list tank))] ::
|
$% [%made p=(each bead (list tank))] ::
|
||||||
@ -658,18 +659,18 @@
|
|||||||
:: (echa:wake:(checkout-ankh hed))
|
:: (echa:wake:(checkout-ankh hed))
|
||||||
::
|
::
|
||||||
++ take-foreign-update :: external change
|
++ take-foreign-update :: external change
|
||||||
|= [inx=@ud rot=riot]
|
|= [inx=@ud rut=(unit rand)]
|
||||||
^+ +>
|
^+ +>
|
||||||
?> ?=(^ ref)
|
?> ?=(^ ref)
|
||||||
|- ^+ +>+.$
|
|- ^+ +>+.$
|
||||||
=+ ruv=(~(get by bom.u.ref) inx)
|
=+ ruv=(~(get by bom.u.ref) inx)
|
||||||
?~ ruv +>+.$
|
?~ ruv +>+.$
|
||||||
=> ?. |(?=(~ rot) ?=(& -.q.u.ruv)) .
|
=> ?. |(?=(~ rut) ?=(& -.q.u.ruv)) .
|
||||||
%_ .
|
%_ .
|
||||||
bom.u.ref (~(del by bom.u.ref) inx)
|
bom.u.ref (~(del by bom.u.ref) inx)
|
||||||
fod.u.ref (~(del by fod.u.ref) p.u.ruv)
|
fod.u.ref (~(del by fod.u.ref) p.u.ruv)
|
||||||
==
|
==
|
||||||
?~ rot
|
?~ rut
|
||||||
=+ rav=`rave`q.u.ruv
|
=+ rav=`rave`q.u.ruv
|
||||||
%= +>+.$
|
%= +>+.$
|
||||||
lim
|
lim
|
||||||
@ -679,23 +680,80 @@
|
|||||||
?. ?=(& -.rav) haw.u.ref
|
?. ?=(& -.rav) haw.u.ref
|
||||||
(~(put by haw.u.ref) p.rav ~)
|
(~(put by haw.u.ref) p.rav ~)
|
||||||
==
|
==
|
||||||
?< ?=(%v p.p.u.rot)
|
?- p.p.u.rut
|
||||||
=. haw.u.ref
|
%u
|
||||||
(~(put by haw.u.ref) [p.p.u.rot q.p.u.rot q.u.rot] ~ r.u.rot)
|
~| %im-thinkin-its-prolly-a-bad-idea-to-request-rang-over-the-network
|
||||||
?. ?=(%w p.p.u.rot) +>+.$
|
!!
|
||||||
|- ^+ +>+.^$
|
::
|
||||||
=+ nez=[%w [%ud let.dom] ~]
|
%v
|
||||||
=+ nex=(~(get by haw.u.ref) nez)
|
~| %weird-we-shouldnt-get-a-dome-request-over-the-network
|
||||||
?~ nex +>+.^$
|
!!
|
||||||
?~ u.nex +>+.^$ :: should never happen
|
::
|
||||||
=. nak.u.ref `((hard nako) q.q.u.u.nex)
|
%x
|
||||||
=. +>+.^$
|
=< ?> ?=(^ ref) .
|
||||||
=+ roo=(validate-plops for bar:(need nak.u.ref))
|
(rand-to-rant u.rut)
|
||||||
?>(?=(^ ref.roo) roo)
|
::
|
||||||
%= $
|
%w
|
||||||
haw.u.ref (~(del by haw.u.ref) nez)
|
=. haw.u.ref
|
||||||
|
%+ ~(put by haw.u.ref)
|
||||||
|
[p.p.u.rut q.p.u.rut q.u.rut]
|
||||||
|
:+ ~
|
||||||
|
p.r.u.rut
|
||||||
|
?+ p.r.u.rut ~| %strange-w-over-nextwork !!
|
||||||
|
%aeon !>(((hard aeon) q.r.u.rut))
|
||||||
|
%nako !>(((hard nako) q.r.u.rut))
|
||||||
|
==
|
||||||
|
?. ?=(%nako p.r.u.rut) +>+.$
|
||||||
|
|- ^+ +>+.^$
|
||||||
|
=+ nez=[%w [%ud let.dom] ~]
|
||||||
|
=+ nex=(~(get by haw.u.ref) nez)
|
||||||
|
?~ nex +>+.^$
|
||||||
|
?~ u.nex +>+.^$ :: should never happen
|
||||||
|
=. nak.u.ref `((hard nako) q.q.u.u.nex)
|
||||||
|
=. +>+.^$
|
||||||
|
=+ roo=(validate-plops for bar:(need nak.u.ref))
|
||||||
|
?>(?=(^ ref.roo) roo)
|
||||||
|
%= $
|
||||||
|
haw.u.ref (~(del by haw.u.ref) nez)
|
||||||
|
==
|
||||||
|
::
|
||||||
|
%y
|
||||||
|
%_ +>+.$
|
||||||
|
haw.u.ref
|
||||||
|
%+ ~(put by haw.u.ref)
|
||||||
|
[p.p.u.rut q.p.u.rut q.u.rut]
|
||||||
|
`[p.r.u.rut !>(((hard arch) q.r.u.rut))]
|
||||||
|
==
|
||||||
|
::
|
||||||
|
%z
|
||||||
|
~| %its-prolly-reasonable-to-request-ankh-over-the-network-sorry
|
||||||
|
!!
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
|
++ rand-to-rant
|
||||||
|
|= rut=rand
|
||||||
|
^+ +>
|
||||||
|
~| %x-over-network-not-implemented !!
|
||||||
|
:: =- %_(+>.$ tag [- tag])
|
||||||
|
:: :* hen
|
||||||
|
:: [%foreign-plops (scot %p who) (scot %p for) syd ~]
|
||||||
|
:: %f %exec who ~ %tabl
|
||||||
|
:: ^- (list (pair silk silk))
|
||||||
|
:: %+ turn (~(tap in pop))
|
||||||
|
:: |= a=plop
|
||||||
|
:: ?- -.a
|
||||||
|
:: %delta
|
||||||
|
:: :- [%done ~ %blob !>([%delta p.a q.a *cage])]
|
||||||
|
:: [%vale p.r.a him q.r.a]
|
||||||
|
:: ::
|
||||||
|
:: %direct
|
||||||
|
:: :- [%done ~ %blob !>([%direct p.a *cage])]
|
||||||
|
:: [%vale p.q.a him q.q.a]
|
||||||
|
:: ::
|
||||||
|
:: %indirect ~| %foreign-indirect-not-implemented !!
|
||||||
|
:: ==
|
||||||
|
:: ==
|
||||||
|
::
|
||||||
++ validate-plops
|
++ validate-plops
|
||||||
|= [him=ship pop=(set plop)]
|
|= [him=ship pop=(set plop)]
|
||||||
^+ +>
|
^+ +>
|
||||||
@ -790,51 +848,6 @@
|
|||||||
^- rove
|
^- rove
|
||||||
[%| p.p.rav q.p.rav r.p.rav ~]
|
[%| p.p.rav q.p.rav r.p.rav ~]
|
||||||
::
|
::
|
||||||
++ merge-desks
|
|
||||||
|= [her=@p sud=@tas gem=germ rot=riot]
|
|
||||||
^+ +>.$
|
|
||||||
?~ rot
|
|
||||||
~& "autosync from {<sud>} on {<her>} to {<syd>} on {<who>} stopped"
|
|
||||||
+>.$
|
|
||||||
?: ?=(%y p.p.u.rot)
|
|
||||||
%= +>.$
|
|
||||||
yel
|
|
||||||
[[hen %note ';' %leaf "starting to sync desk {(trip syd)}..."] yel]
|
|
||||||
tag
|
|
||||||
:_ tag
|
|
||||||
:* hen /auto/(scot %p who)/[syd]/(scot %p her)/[sud]/v
|
|
||||||
%c %warp [who her] sud
|
|
||||||
`[%& %v q.p.u.rot /]
|
|
||||||
==
|
|
||||||
==
|
|
||||||
?> ?=(%v p.p.u.rot)
|
|
||||||
=+ der=((hard dome) r.u.rot)
|
|
||||||
=+ ^= lum
|
|
||||||
^- (unit (unit mizu))
|
|
||||||
~
|
|
||||||
::%^ construct-merge:ze
|
|
||||||
:: ?:(=(0 let.dom) %init %meld)
|
|
||||||
:: who
|
|
||||||
:::+ syd
|
|
||||||
:: `saba`[her sud [0 let.der] der]
|
|
||||||
::now
|
|
||||||
?~ lum
|
|
||||||
~& "autosync from {<sud>} on {<her>} to {<syd>} on {<who>} failed"
|
|
||||||
~& "please merge manually"
|
|
||||||
+>.$
|
|
||||||
?~ u.lum
|
|
||||||
~& "autosync from {<sud>} on {<her>} to {<syd>} on {<who>} up to date"
|
|
||||||
+>.$
|
|
||||||
%= +>.$
|
|
||||||
yel
|
|
||||||
[[hen %note ';' %leaf "successfully synced desk {(trip syd)}..."] yel]
|
|
||||||
tag
|
|
||||||
:_ tag
|
|
||||||
:* hen /auto/(scot %p who)/[syd]/(scot %p her)/[sud]/merg
|
|
||||||
%c %merg who syd u.u.lum
|
|
||||||
==
|
|
||||||
==
|
|
||||||
::
|
|
||||||
++ wake :: update subscribers
|
++ wake :: update subscribers
|
||||||
^+ .
|
^+ .
|
||||||
=+ xiq=(~(tap by qyx) ~)
|
=+ xiq=(~(tap by qyx) ~)
|
||||||
@ -1899,10 +1912,10 @@
|
|||||||
?: (~(has by sor.ruf) +.q.hic) `..^$
|
?: (~(has by sor.ruf) +.q.hic) `..^$
|
||||||
:_ ..^$(sor.ruf (~(put by sor.ruf) +.q.hic hen))
|
:_ ..^$(sor.ruf (~(put by sor.ruf) +.q.hic hen))
|
||||||
:: XX pass %merg and handle response
|
:: XX pass %merg and handle response
|
||||||
:~ :* hen %pass
|
:~ ^- move
|
||||||
|
:* hen %pass
|
||||||
/auto/(scot %p p.q.hic)/[q.q.hic]/(scot %p r.q.hic)/[s.q.hic]/y
|
/auto/(scot %p p.q.hic)/[q.q.hic]/(scot %p r.q.hic)/[s.q.hic]/y
|
||||||
%c %warp [p.q.hic r.q.hic] s.q.hic
|
%c %merg [p q r s %init]:q.hic
|
||||||
`[%& %y [%da now] /]
|
|
||||||
==
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
@ -2139,7 +2152,8 @@
|
|||||||
=+ ^= zat
|
=+ ^= zat
|
||||||
=< wake
|
=< wake
|
||||||
%- take-foreign-update:(do now hen p.+.q.hin syd ruf)
|
%- take-foreign-update:(do now hen p.+.q.hin syd ruf)
|
||||||
[inx ((hard riot) q.+.q.hin)]
|
~& [%rand q.+.q.hin ((soft (unit rand)) q.+.q.hin)]
|
||||||
|
[inx ((hard (unit rand)) q.+.q.hin)]
|
||||||
=^ mos ruf
|
=^ mos ruf
|
||||||
=+ zot=abet.zat
|
=+ zot=abet.zat
|
||||||
[-.zot (posh q.p.+.q.hin syd +.zot ruf)]
|
[-.zot (posh q.p.+.q.hin syd +.zot ruf)]
|
||||||
@ -2156,11 +2170,15 @@
|
|||||||
::
|
::
|
||||||
%writ
|
%writ
|
||||||
?> ?=([@ @ *] tea)
|
?> ?=([@ @ *] tea)
|
||||||
|
~| i=i.tea
|
||||||
|
~| it=i.t.tea
|
||||||
=+ our=(slav %p i.tea)
|
=+ our=(slav %p i.tea)
|
||||||
=+ him=(slav %p i.t.tea)
|
=+ him=(slav %p i.t.tea)
|
||||||
:_ ..^$
|
:_ ..^$
|
||||||
:~ :- hen
|
:~ :* hen %pass ~ %a
|
||||||
[%pass ~ %a [%want [our him] [%r %re %c t.t.tea] p.+.q.hin]]
|
%want [our him] [%r %re %c t.t.tea]
|
||||||
|
(bind p.+.q.hin rant-to-rand)
|
||||||
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
%went
|
%went
|
||||||
@ -2168,6 +2186,12 @@
|
|||||||
~& [%clay-lost p.+.q.hin tea]
|
~& [%clay-lost p.+.q.hin tea]
|
||||||
[~ ..^$]
|
[~ ..^$]
|
||||||
==
|
==
|
||||||
|
::
|
||||||
|
++ rant-to-rand
|
||||||
|
|= rant
|
||||||
|
^- rand
|
||||||
|
[p q [p q.q]:r]
|
||||||
|
::
|
||||||
++ khan-to-soba
|
++ khan-to-soba
|
||||||
|= [ank=(unit ankh) kan=(unit khan)]
|
|= [ank=(unit ankh) kan=(unit khan)]
|
||||||
^- soba
|
^- soba
|
||||||
|
@ -9738,7 +9738,7 @@
|
|||||||
== ::
|
== ::
|
||||||
++ desk ,@tas :: ship desk case spur
|
++ desk ,@tas :: ship desk case spur
|
||||||
++ cage (cask vase) :: global metadata
|
++ cage (cask vase) :: global metadata
|
||||||
++ cask |*(a=$+(* *) (pair mark a)) :: global data
|
++ cask |*(a=_,* (pair mark a)) :: global data
|
||||||
++ cuff :: permissions
|
++ cuff :: permissions
|
||||||
$: p=kirk :: readers
|
$: p=kirk :: readers
|
||||||
q=(set monk) :: authors
|
q=(set monk) :: authors
|
||||||
|
@ -3108,6 +3108,11 @@
|
|||||||
q=path :: spur
|
q=path :: spur
|
||||||
r=cage :: data
|
r=cage :: data
|
||||||
== ::
|
== ::
|
||||||
|
++ rand :: vaseless rant
|
||||||
|
$: p=[p=care q=case r=@tas] :: clade release book
|
||||||
|
q=path :: spur
|
||||||
|
r=(cask) :: data
|
||||||
|
== ::
|
||||||
++ rave :: general request
|
++ rave :: general request
|
||||||
$% [& p=mood] :: single request
|
$% [& p=mood] :: single request
|
||||||
[| p=moat] :: change range
|
[| p=moat] :: change range
|
||||||
|
Loading…
Reference in New Issue
Block a user