2014-05-07 21:42:31 +04:00
|
|
|
!: :: %gall, user-level extension
|
2014-04-30 21:04:07 +04:00
|
|
|
!? 164
|
|
|
|
::::
|
|
|
|
|= pit=vase
|
|
|
|
^- vane
|
|
|
|
=> =~
|
2014-05-20 21:36:10 +04:00
|
|
|
|% :: clams
|
2014-04-30 21:04:07 +04:00
|
|
|
++ axle :: all %gall state
|
2014-05-14 04:25:59 +04:00
|
|
|
$: ven=%0 ::
|
2014-05-20 21:36:10 +04:00
|
|
|
pol=(map ship mast) :: apps by ship
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
2014-05-07 21:42:31 +04:00
|
|
|
++ bone ,@ud :: opaque duct
|
2014-05-26 07:51:39 +04:00
|
|
|
++ bull ,[p=bone q=(mold note gift)] :: urbit action
|
|
|
|
++ bump :: urbit event
|
|
|
|
$: ost=bone :: channel
|
|
|
|
him=ship :: client
|
|
|
|
law=(unit chop) :: authority
|
|
|
|
val=curd :: data
|
2014-05-20 21:36:10 +04:00
|
|
|
== ::
|
2014-05-26 07:51:39 +04:00
|
|
|
++ view ,[p=cork q=@da r=(unit ,@dr)] :: timeline
|
|
|
|
++ gift :: outbound result
|
|
|
|
%$ [%back ~] :: acknowledgment
|
|
|
|
[%crud p=(list tank)] :: error notification
|
|
|
|
[%seen p=@da q=*] :: view update
|
|
|
|
== ::
|
|
|
|
++ kiss :: inbound request
|
|
|
|
$% [%send p=sock q=term r=curd] :: urbit message
|
|
|
|
[%turd p=(list tank) q=kiss] :: error rebound
|
|
|
|
[%user p=(unit chop) q=kiss] :: restriction
|
|
|
|
[%view p=ship q=view r=path] :: subscription
|
|
|
|
== ::
|
|
|
|
++ sign curd :: inbound result V-<
|
|
|
|
++ note curd :: outbound request V->
|
|
|
|
++ hypo |*(a=$+(* *) (pair type a))
|
|
|
|
++ debt :: pending operation
|
|
|
|
$% [%pear p=ship q=(unit chop) r=curd] :: message
|
|
|
|
[%peer p=(unit chop) q=view r=path] :: subscription
|
|
|
|
[%peak p=(hypo card)] :: result
|
2014-05-21 20:32:24 +04:00
|
|
|
==
|
2014-05-07 21:42:31 +04:00
|
|
|
++ seat :: living app
|
2014-05-20 21:36:10 +04:00
|
|
|
$: huv=(unit vase) :: current hive
|
2014-05-21 20:32:24 +04:00
|
|
|
dep=(set ,[p=ship q=desk]) :: dependencies
|
2014-05-26 07:51:39 +04:00
|
|
|
orm=(unit ,@da) :: last buildtime
|
2014-04-30 21:04:07 +04:00
|
|
|
eny=@ :: entropy
|
2014-05-20 21:36:10 +04:00
|
|
|
lat=@da :: time of last tick
|
|
|
|
tik=@ud :: tick computed
|
2014-05-26 07:51:39 +04:00
|
|
|
zos=(map bone ,[p=(unit chop) q=duct]) :: bone to duct
|
2014-05-20 21:36:10 +04:00
|
|
|
zam=[p=@ud q=(map duct ,@ud)] :: duct to bone
|
2014-05-26 07:51:39 +04:00
|
|
|
vey=(qeu ,[p=bone q=debt]) :: blocked queue
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
2014-05-16 00:17:54 +04:00
|
|
|
++ mast :: apps by ship
|
2014-05-26 07:51:39 +04:00
|
|
|
$: bum=(map ,@ta seat) :: apps by name
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
2014-05-20 21:36:10 +04:00
|
|
|
++ mitt :: execution context
|
2014-05-26 07:51:39 +04:00
|
|
|
$: $: ost=bone :: source
|
2014-05-20 21:36:10 +04:00
|
|
|
pax=path :: hivepath
|
2014-05-26 07:51:39 +04:00
|
|
|
law=(unit chop) :: rights
|
2014-05-20 21:36:10 +04:00
|
|
|
== ::
|
|
|
|
++ wren :: waiting card
|
|
|
|
$: tig=mitt :: context
|
|
|
|
fav=card :: content
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
2014-05-20 21:36:10 +04:00
|
|
|
-- ::
|
|
|
|
|% :: implicit clams
|
|
|
|
++ cork ?(%u %v %w %x %y %z) :: view angle
|
2014-05-26 07:51:39 +04:00
|
|
|
++ gift ::
|
|
|
|
|
2014-05-20 21:36:10 +04:00
|
|
|
++ hawk (gaff card) ::
|
2014-04-30 21:04:07 +04:00
|
|
|
++ hide :: engine state
|
|
|
|
$: own=[p=ship q=@tas] :: static identity
|
2014-05-20 21:36:10 +04:00
|
|
|
bec=beak :: installation path
|
2014-05-07 21:42:31 +04:00
|
|
|
^= seq :: dynamic sequence
|
|
|
|
$: num=@ud :: change number
|
|
|
|
eny=@ :: entropy
|
2014-05-20 21:36:10 +04:00
|
|
|
lat=@da :: date of last tick
|
2014-04-30 21:04:07 +04:00
|
|
|
== == ::
|
|
|
|
++ hive :: typed engine
|
|
|
|
$_ ^? ::
|
2014-05-20 21:36:10 +04:00
|
|
|
|_ hide :: hive state
|
|
|
|
++ pack * :: save
|
2014-05-26 07:51:39 +04:00
|
|
|
++ pear :: request
|
|
|
|
|+ $: ost=bone :: channel
|
|
|
|
law=(unit chop) :: authority
|
|
|
|
him=ship :: client
|
|
|
|
fov=(hypo card) :: favor
|
|
|
|
== ::
|
|
|
|
:_(+> (list bull)) ::
|
|
|
|
:: ::
|
|
|
|
++ peer :: subscribe
|
|
|
|
|+ %
|
|
|
|
|
2014-05-20 21:36:10 +04:00
|
|
|
++ poke |+(lima [*(list ,[p=bone q=hawk]) +>]) :: do
|
|
|
|
++ peek |+(lira *(unit (unit luge))) :: see
|
|
|
|
++ prep |+(* +>) :: load
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
2014-05-20 21:36:10 +04:00
|
|
|
++ lima :: wren other side
|
2014-05-26 07:51:39 +04:00
|
|
|
$: $: ost=bone :: source
|
|
|
|
law=(unit chop) :: permission
|
2014-05-20 21:36:10 +04:00
|
|
|
pax=path :: logical position
|
|
|
|
==
|
|
|
|
fav=* :: present event
|
|
|
|
== ::
|
|
|
|
++ lira :: general query
|
2014-05-26 07:51:39 +04:00
|
|
|
$: for=(set monk) :: p.u.law
|
2014-05-20 21:36:10 +04:00
|
|
|
roc=cork :: desired aspect
|
|
|
|
pax=path :: internal path
|
|
|
|
== ::
|
|
|
|
-- ::
|
|
|
|
|% ::
|
|
|
|
++ ho :: per card
|
2014-05-26 07:51:39 +04:00
|
|
|
=| $: ost=bone :: opaque cause
|
2014-05-20 21:36:10 +04:00
|
|
|
hen=duct :: kernel cause
|
2014-05-26 07:51:39 +04:00
|
|
|
law=(unit chop) :: rights
|
2014-05-20 21:36:10 +04:00
|
|
|
mow=(list move) :: direct moves
|
|
|
|
now=@da :: current date
|
|
|
|
eny=@ :: current entropy
|
|
|
|
our=@p :: ship
|
|
|
|
app=@tas :: application name
|
|
|
|
sat=seat :: application state
|
2014-04-30 21:04:07 +04:00
|
|
|
== ::
|
|
|
|
|%
|
|
|
|
++ abet
|
2014-05-20 21:36:10 +04:00
|
|
|
^- [(list move) seat]
|
|
|
|
[(flop mow) sat]
|
|
|
|
::
|
2014-05-21 20:32:24 +04:00
|
|
|
++ apex :: returning card
|
|
|
|
|= [pan=term pax=path fav=card]
|
|
|
|
?+ pan !!
|
|
|
|
%boot (boot pax fav)
|
|
|
|
%poke (poke pax fav)
|
|
|
|
%user (axon pax fav)
|
|
|
|
%wait (wait pax fav)
|
2014-05-20 21:36:10 +04:00
|
|
|
==
|
|
|
|
::
|
2014-05-21 20:32:24 +04:00
|
|
|
++ axon :: user card
|
|
|
|
|= [pax=path fav=card]
|
|
|
|
?> ?=(
|
|
|
|
::
|
2014-05-20 21:36:10 +04:00
|
|
|
++ babe :: poke or wait
|
|
|
|
|= [pax=path fav=card]
|
2014-05-21 20:32:24 +04:00
|
|
|
?> ?=(%meta -.fav)
|
|
|
|
|
2014-05-20 21:36:10 +04:00
|
|
|
?~ huv.sat
|
|
|
|
(bait pax fav)
|
|
|
|
%= +>
|
|
|
|
huv.sat ~
|
|
|
|
=+ gat=(slap u.huv.sat [%cnzy %poke])
|
2014-05-26 07:51:39 +04:00
|
|
|
=+ sam=:(slop !>(law) !>(pax) cav)
|
2014-05-20 21:36:10 +04:00
|
|
|
=+
|
|
|
|
::
|
|
|
|
++ boot :: boot result
|
|
|
|
|= rew=wren
|
|
|
|
?> ?=(%made -.fav.rew)
|
|
|
|
?- -.p.fav.rew
|
|
|
|
| (drip [%crud %gall p.p.fav])
|
|
|
|
& (dear p.fav q.q.fav)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ poke :: poke result
|
|
|
|
|= rew=wren
|
|
|
|
?> ?=(%made -.fav.rew)
|
|
|
|
?- -.p.fav.rew
|
|
|
|
| (drip [%crud %gall p.p.fav])
|
|
|
|
& (pone q.q.p.fav)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ pone :: poke product
|
|
|
|
|= vax=vase
|
|
|
|
^+ +>
|
|
|
|
?~ q.vax +>
|
|
|
|
=+ hed=(slot 2 vax)
|
|
|
|
=. +>.$ (poof (slot 2 vax))
|
|
|
|
$(vax (slot 3 vax))
|
|
|
|
::
|
|
|
|
++ poof :: apply effect
|
|
|
|
|= vax=vase
|
2014-05-21 20:32:24 +04:00
|
|
|
^+ +>
|
2014-05-20 21:36:10 +04:00
|
|
|
=+ nab=(,@ q:(slot 2 vax))
|
2014-05-21 20:32:24 +04:00
|
|
|
=+ vib=(need (~(get by zos.sat) nab))
|
2014-05-26 07:51:39 +04:00
|
|
|
=: ost nab
|
|
|
|
law p.vib
|
2014-05-21 20:32:24 +04:00
|
|
|
hen q.vib
|
|
|
|
==
|
|
|
|
(puss (slot 3 vax))
|
2014-05-20 21:36:10 +04:00
|
|
|
::
|
|
|
|
++ puss :: poke gaff
|
|
|
|
|= vax=vase
|
2014-05-21 20:32:24 +04:00
|
|
|
^+ +>
|
2014-05-20 21:36:10 +04:00
|
|
|
=. vax (spec vax)
|
|
|
|
?+ -.q.vax !!
|
|
|
|
%call
|
|
|
|
=+ ney=`@tas`(sane %tas ((hard ,@) q:(slot 6 vax)))
|
|
|
|
=+ cav=(quod (slot 7 vax))
|
2014-05-21 20:32:24 +04:00
|
|
|
(call ney %used [%meta our cav])
|
|
|
|
::
|
2014-05-20 21:36:10 +04:00
|
|
|
%drip
|
2014-05-21 20:32:24 +04:00
|
|
|
(drip [%meta our (slot 3 vax)])
|
|
|
|
::
|
2014-05-20 21:36:10 +04:00
|
|
|
%stop
|
2014-05-26 07:51:39 +04:00
|
|
|
+>.$(zos (~(del by zos) ost))
|
2014-05-20 21:36:10 +04:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ quod :: typecheck hive
|
|
|
|
|= vax=vase
|
2014-05-21 20:32:24 +04:00
|
|
|
vax :: XX
|
2014-05-20 21:36:10 +04:00
|
|
|
::
|
|
|
|
++ kick :: run engine
|
|
|
|
|- ^+ +
|
|
|
|
?~ vey.sat +.$
|
|
|
|
?~ huv.sat +.$
|
2014-05-21 20:32:24 +04:00
|
|
|
=^ lef vey.sat ~(get to vey.sat)
|
|
|
|
|
2014-05-20 21:36:10 +04:00
|
|
|
++ blam :: block on slam
|
|
|
|
|= [cod=@tas gat=vase sam=vase]
|
|
|
|
^+ +>
|
|
|
|
|
|
|
|
++ dear :: reset
|
2014-05-21 20:32:24 +04:00
|
|
|
|= [dep=(set beam) vax=vase]
|
|
|
|
deep(huv.sat `vax)
|
|
|
|
|
2014-05-20 21:36:10 +04:00
|
|
|
::
|
|
|
|
++ call :: advance a card
|
2014-05-21 20:32:24 +04:00
|
|
|
|= [vay=term pan=term fav=card]
|
|
|
|
^+ +>
|
|
|
|
%= +> mow :_ mow
|
|
|
|
^- move
|
|
|
|
:+ [~ %iron our]
|
|
|
|
^- duct
|
|
|
|
[[vay ~] [/g (scot %p our) app pan ~]
|
|
|
|
fav
|
|
|
|
==
|
2014-05-20 21:36:10 +04:00
|
|
|
::
|
|
|
|
++ drip :: return a card
|
|
|
|
|= fav=card
|
|
|
|
^+ +>
|
|
|
|
+>(mow :_(mow [[~ %iron our] hen fav]))
|
|
|
|
::
|
|
|
|
++ spec :: specialize kelp
|
|
|
|
|= vax=vase
|
|
|
|
^- vase
|
|
|
|
?. &(?=(^ q.vax) ?=(@ -.q.vax))
|
|
|
|
vax
|
|
|
|
%+ slap vax
|
|
|
|
^- twig
|
|
|
|
:+ %wtgr
|
|
|
|
[%wtts [%dtzz %tas -.q.vax] [%$ 2]]
|
|
|
|
[%$ 1]
|
|
|
|
::
|
|
|
|
++ more
|
|
|
|
|- ^+ +
|
|
|
|
?> ?=(^ huv.sat)
|
|
|
|
?~ vey.sat +.$
|
|
|
|
=^ lef vey.sat ~(get to vey.sat)
|
|
|
|
::
|
|
|
|
++ axon :: advancing card
|
|
|
|
|= fav=card
|
|
|
|
?~ huv.sat :: if blocked
|
|
|
|
(bait pax cav)
|
|
|
|
?~ pax :: call, essentially
|
|
|
|
=+ ^= sam
|
|
|
|
;: slop
|
2014-05-26 07:51:39 +04:00
|
|
|
!>(law)
|
2014-05-20 21:36:10 +04:00
|
|
|
==
|
|
|
|
=+ gat=(slap u.huv.sat [%cnzy %poke])
|
|
|
|
!!
|
|
|
|
::
|
|
|
|
::
|
|
|
|
++ bait :: boot/wait
|
|
|
|
|= [pax=path cav=vase]
|
|
|
|
^+ +>
|
|
|
|
?> ?=(~ huv.sat)
|
|
|
|
=+ new==(~ vey.sat)
|
|
|
|
=. vey.sat (~(put to vey.sat) `wren
|
|
|
|
?: =(~ vey.sat)
|
|
|
|
::
|
|
|
|
++ boob ::
|
|
|
|
::
|
|
|
|
++ boot :: send boot
|
|
|
|
^+ .
|
|
|
|
(dyke %boot %boil %core [(scot %p our) %main (scot %da now) %app ~])
|
|
|
|
::
|
|
|
|
++ dyke :: send to compute
|
|
|
|
|= [pan=@tas kas=silk]
|
|
|
|
^+ +>
|
|
|
|
%= +> mow :_ mow
|
|
|
|
^- move
|
|
|
|
:+ [~ %iron our]
|
|
|
|
^- duct
|
|
|
|
[/f [/g (scot %p our) app pan ~]
|
|
|
|
^- card
|
|
|
|
[%exec kas]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ feed
|
|
|
|
|=
|
|
|
|
|
|
|
|
--
|
|
|
|
--
|
2014-04-30 21:04:07 +04:00
|
|
|
. ==
|
|
|
|
=| axle
|
|
|
|
=* lex -
|
2014-05-20 21:36:10 +04:00
|
|
|
|= [now=@da eny=@ ska=$+(* (unit (unit)))] :: activate
|
2014-04-30 21:04:07 +04:00
|
|
|
^? :: opaque core
|
|
|
|
|% ::
|
2014-05-26 07:51:39 +04:00
|
|
|
++ call :: inbound card
|
|
|
|
|= [hen=duct typ=type sin
|
2014-05-21 20:32:24 +04:00
|
|
|
!!
|
|
|
|
++ dive
|
|
|
|
|= [hen=duct loc=path
|
|
|
|
!!
|
2014-04-30 21:04:07 +04:00
|
|
|
++ beat :: process move
|
2014-05-26 07:51:39 +04:00
|
|
|
|= [pax=path hen=duct typ=type fav=card]
|
2014-04-30 21:04:07 +04:00
|
|
|
^- [p=(list move) q=vane]
|
2014-05-20 21:36:10 +04:00
|
|
|
=+ ^= def
|
|
|
|
|. ^- seat
|
|
|
|
%* . *seat
|
|
|
|
eny (shax (mix now eny))
|
|
|
|
lat now
|
|
|
|
==
|
2014-05-07 21:42:31 +04:00
|
|
|
=^ mos lex
|
2014-05-20 21:36:10 +04:00
|
|
|
?: =(~ tea)
|
|
|
|
?. ?=(%mean -.fav) ~|(%gall-what !!)
|
|
|
|
=+ ^= mat ^- mast
|
|
|
|
=+ mat=(~(get by pol.lex) p.fav)
|
|
|
|
?~(mat *mast u.mat)
|
|
|
|
=+ ^= sat ^- seat
|
|
|
|
=+ sat=(~(get by bum.mat) q.fav)
|
|
|
|
?~(sat *def u.sat)
|
2014-05-26 07:51:39 +04:00
|
|
|
=^ ost sat
|
2014-05-20 21:36:10 +04:00
|
|
|
^- [bone seat]
|
|
|
|
=+ byn=(~(get by zam.sat) hen)
|
|
|
|
?^ byn u.byn
|
|
|
|
[p.zam.sat sat(p.zam +(p.zam), q.zam (~(put by q.sam) hen p.zam.sat)]
|
|
|
|
=+ ^= tox
|
2014-05-26 07:51:39 +04:00
|
|
|
:* ost
|
2014-05-20 21:36:10 +04:00
|
|
|
now
|
|
|
|
eny
|
|
|
|
r.fav
|
|
|
|
*(list move)
|
|
|
|
p.fav
|
|
|
|
q.fav
|
|
|
|
sat
|
|
|
|
==
|
|
|
|
=^ mos sat abet:(~(axon za tox) fav)
|
|
|
|
:- mos
|
|
|
|
%= lex
|
|
|
|
pol (~(put by pol.lex) p.fav mat(bum (~(put by bum.mat) q.fav sat)))
|
|
|
|
==
|
|
|
|
?> ?=([@ @ *] tea)
|
|
|
|
=+ [our=(need (slaw %p i.tea)) app=(need (slaw %tas i.t.tea))]
|
|
|
|
=+ mat=(need (~(get by pol.lex) our))
|
|
|
|
=+ sat=(need (~(get by bum.mat) app))
|
2014-05-26 07:51:39 +04:00
|
|
|
=+ ost=(need (~(get by q.zam.sat) hen))
|
|
|
|
=+ law=p:(need (~(get by zos.sat) ost))
|
2014-05-20 21:36:10 +04:00
|
|
|
=+ ^= tox
|
2014-05-26 07:51:39 +04:00
|
|
|
:* ost
|
2014-05-20 21:36:10 +04:00
|
|
|
now
|
|
|
|
eny
|
2014-05-26 07:51:39 +04:00
|
|
|
law
|
2014-05-20 21:36:10 +04:00
|
|
|
*(list move)
|
|
|
|
our
|
|
|
|
app
|
|
|
|
sat
|
|
|
|
==
|
|
|
|
=^ mos sat abet:(~(axon za tox) t.t.tea fav)
|
|
|
|
:- mos
|
|
|
|
lex(pol (~(put by pol.lex) p.fav mat(bum (~(put by bum.mat) q.fav sat))))
|
|
|
|
==
|
|
|
|
[`(list move)`mos ..^$]
|
2014-04-30 21:04:07 +04:00
|
|
|
::
|
|
|
|
++ come
|
|
|
|
|= [sam=? old=vase]
|
|
|
|
^- vane
|
|
|
|
(load old)
|
|
|
|
::
|
|
|
|
++ doze
|
|
|
|
|= [now=@da hen=duct]
|
|
|
|
^- (unit ,@da)
|
|
|
|
~
|
|
|
|
::
|
|
|
|
++ load
|
|
|
|
|= old=vase
|
|
|
|
^- vane
|
2014-05-07 21:42:31 +04:00
|
|
|
?. (~(nest ut -:!>(`axle`+>-.^$)) | p.old)
|
2014-05-20 21:36:10 +04:00
|
|
|
~& %ford-reset
|
2014-04-30 21:04:07 +04:00
|
|
|
..^$
|
2014-05-07 21:42:31 +04:00
|
|
|
..^$(+>- (axle q.old))
|
2014-04-30 21:04:07 +04:00
|
|
|
::
|
|
|
|
++ raze
|
|
|
|
^- vane
|
2014-05-07 21:42:31 +04:00
|
|
|
..$(+>- *axle)
|
2014-04-30 21:04:07 +04:00
|
|
|
::
|
|
|
|
++ scry
|
2014-05-20 21:36:10 +04:00
|
|
|
|= [our=ship ren=@tas who=ship syd=desk lot=coin tyl=path]
|
|
|
|
^- (unit (unit))
|
2014-04-30 21:04:07 +04:00
|
|
|
~
|
|
|
|
::
|
|
|
|
++ stay
|
2014-05-07 21:42:31 +04:00
|
|
|
`vase`!>((colt `axle`+>-.$))
|
2014-04-30 21:04:07 +04:00
|
|
|
++ vern [164 0]
|
|
|
|
--
|