mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-22 06:11:31 +03:00
lull,gall: %grow compiles
This commit is contained in:
parent
d137d78465
commit
1aa7b8105d
@ -2866,6 +2866,9 @@
|
|||||||
[%nuke =dude] :: delete agent
|
[%nuke =dude] :: delete agent
|
||||||
[%doff dude=(unit dude) ship=(unit ship)] :: kill subscriptions
|
[%doff dude=(unit dude) ship=(unit ship)] :: kill subscriptions
|
||||||
[%rake dude=(unit dude) all=?] :: reclaim old subs
|
[%rake dude=(unit dude) all=?] :: reclaim old subs
|
||||||
|
[%grow =path =noun] :: bind scry path
|
||||||
|
[%tomb =path] :: replace with hash
|
||||||
|
[%cull =path] :: delete older
|
||||||
$>(%init vane-task) :: set owner
|
$>(%init vane-task) :: set owner
|
||||||
$>(%trim vane-task) :: trim state
|
$>(%trim vane-task) :: trim state
|
||||||
$>(%vega vane-task) :: report upgrade
|
$>(%vega vane-task) :: report upgrade
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
same
|
same
|
||||||
(slog print)
|
(slog print)
|
||||||
::
|
::
|
||||||
|
++ scrub-case |=(=path (snap path 5 ''))
|
||||||
|
++ snag-case |=(=path (slav %ud (snag 5 path)))
|
||||||
|
::
|
||||||
:: $bug: debug printing configuration
|
:: $bug: debug printing configuration
|
||||||
::
|
::
|
||||||
:: veb: verbosity toggles
|
:: veb: verbosity toggles
|
||||||
@ -60,8 +63,14 @@
|
|||||||
contacts=(set ship)
|
contacts=(set ship)
|
||||||
yokes=(map term yoke)
|
yokes=(map term yoke)
|
||||||
blocked=(map term (qeu blocked-move))
|
blocked=(map term (qeu blocked-move))
|
||||||
|
sky=(map path path-state)
|
||||||
=bug
|
=bug
|
||||||
==
|
==
|
||||||
|
::
|
||||||
|
+$ path-state
|
||||||
|
$: bob=(unit @ud)
|
||||||
|
fan=(map @ud (each noun @uvI))
|
||||||
|
==
|
||||||
:: $routes: new cuff; TODO: document
|
:: $routes: new cuff; TODO: document
|
||||||
::
|
::
|
||||||
+$ routes
|
+$ routes
|
||||||
@ -155,6 +164,7 @@
|
|||||||
contacts=(set ship)
|
contacts=(set ship)
|
||||||
eggs=(map term egg)
|
eggs=(map term egg)
|
||||||
blocked=(map term (qeu blocked-move))
|
blocked=(map term (qeu blocked-move))
|
||||||
|
sky=(map path path-state)
|
||||||
=bug
|
=bug
|
||||||
==
|
==
|
||||||
:: $egg: migratory agent state; $yoke with .old-state instead of .agent
|
:: $egg: migratory agent state; $yoke with .old-state instead of .agent
|
||||||
@ -253,6 +263,42 @@
|
|||||||
?~ apps mo-core
|
?~ apps mo-core
|
||||||
=/ ap-core (ap-yoke:ap p.i.apps [~ our] q.i.apps)
|
=/ ap-core (ap-yoke:ap p.i.apps [~ our] q.i.apps)
|
||||||
$(apps t.apps, mo-core ap-abet:(ap-rake:ap-core all))
|
$(apps t.apps, mo-core ap-abet:(ap-rake:ap-core all))
|
||||||
|
::
|
||||||
|
++ mo-grow
|
||||||
|
|= [=path =noun]
|
||||||
|
^+ mo-core
|
||||||
|
=/ pit (scrub-case path)
|
||||||
|
=/ yon (snag-case path)
|
||||||
|
=/ old (~(get by sky.state) pit)
|
||||||
|
?~ old :: insert binding at new path
|
||||||
|
=. sky.state
|
||||||
|
%+ ~(put by sky.state) pit
|
||||||
|
`(~(put by fan:*path-state) yon [%& noun])
|
||||||
|
mo-core
|
||||||
|
=/ val (~(get by fan.u.old) yon)
|
||||||
|
?~ val :: insert binding at new case
|
||||||
|
=. sky.state
|
||||||
|
%+ ~(put by sky.state) pit
|
||||||
|
u.old(fan (~(put by fan.u.old) yon [%& noun]))
|
||||||
|
mo-core
|
||||||
|
?- -.u.val
|
||||||
|
%& ?> =(p.u.val noun) :: re-bind same value or die
|
||||||
|
mo-core
|
||||||
|
%| ?> =(p.u.val (shax (jam noun))) :: reinflate tombstoned case
|
||||||
|
=. sky.state
|
||||||
|
%+ ~(put by sky.state) pit
|
||||||
|
u.old(fan (~(put by fan.u.old) yon [%& noun]))
|
||||||
|
mo-core
|
||||||
|
==
|
||||||
|
::
|
||||||
|
++ mo-tomb
|
||||||
|
|= =path
|
||||||
|
^+ mo-core
|
||||||
|
!!
|
||||||
|
++ mo-cull
|
||||||
|
|= =path
|
||||||
|
^+ mo-core
|
||||||
|
!!
|
||||||
:: +mo-receive-core: receives an app core built by %ford.
|
:: +mo-receive-core: receives an app core built by %ford.
|
||||||
::
|
::
|
||||||
:: Presuming we receive a good core, we first check to see if the agent
|
:: Presuming we receive a good core, we first check to see if the agent
|
||||||
@ -1752,6 +1798,9 @@
|
|||||||
%nuke mo-abet:(mo-nuke:mo-core dude.task)
|
%nuke mo-abet:(mo-nuke:mo-core dude.task)
|
||||||
%doff mo-abet:(mo-doff:mo-core +.task)
|
%doff mo-abet:(mo-doff:mo-core +.task)
|
||||||
%rake mo-abet:(mo-rake:mo-core +.task)
|
%rake mo-abet:(mo-rake:mo-core +.task)
|
||||||
|
%grow mo-abet:(mo-grow:mo-core +.task)
|
||||||
|
%tomb mo-abet:(mo-tomb:mo-core +.task)
|
||||||
|
%cull mo-abet:(mo-cull:mo-core +.task)
|
||||||
%spew mo-abet:(mo-spew:mo-core veb.task)
|
%spew mo-abet:(mo-spew:mo-core veb.task)
|
||||||
%sift mo-abet:(mo-sift:mo-core dudes.task)
|
%sift mo-abet:(mo-sift:mo-core dudes.task)
|
||||||
%trim [~ gall-payload]
|
%trim [~ gall-payload]
|
||||||
@ -1887,6 +1936,7 @@
|
|||||||
^- spore
|
^- spore
|
||||||
%= old
|
%= old
|
||||||
- %11
|
- %11
|
||||||
|
bug [*(map path path-state) bug.old]
|
||||||
eggs
|
eggs
|
||||||
%- ~(urn by eggs.old)
|
%- ~(urn by eggs.old)
|
||||||
|= [a=term e=egg-10]
|
|= [a=term e=egg-10]
|
||||||
|
Loading…
Reference in New Issue
Block a user