2019-02-06 02:52:50 +03:00
|
|
|
!: :: %gall, agent execution
|
2016-11-24 07:25:07 +03:00
|
|
|
!? 163
|
2019-02-09 00:16:42 +03:00
|
|
|
!:
|
2016-11-24 07:25:07 +03:00
|
|
|
::::
|
2019-04-11 23:06:05 +03:00
|
|
|
|= pit=vase
|
2016-12-07 06:13:33 +03:00
|
|
|
=, gall
|
2015-05-10 01:55:05 +03:00
|
|
|
=> =~
|
2016-11-24 07:25:07 +03:00
|
|
|
|% :::::::::::::::::::::::::::::::::::::::::::::::::::::: rest of arvo
|
|
|
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
2019-04-11 23:06:05 +03:00
|
|
|
++ coke :: cook
|
|
|
|
$? %inn ::
|
|
|
|
%out ::
|
|
|
|
%cay ::
|
|
|
|
== ::
|
|
|
|
++ volt ?(%low %high) :: voltage
|
|
|
|
++ torc $@(?(%iron %gold) [%lead p=ship]) :: security control
|
2016-11-24 07:25:07 +03:00
|
|
|
++ roon :: reverse ames msg
|
2019-04-11 23:06:05 +03:00
|
|
|
$% [%d p=mark q=*] :: diff (diff)
|
|
|
|
[%x ~] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ rook :: forward ames msg
|
2019-04-11 23:06:05 +03:00
|
|
|
$% [%m p=mark q=*] :: message
|
|
|
|
[%l p=mark q=path] :: "peel" subscribe
|
|
|
|
[%s p=path] :: subscribe
|
|
|
|
[%u ~] :: cancel+unsubscribe
|
|
|
|
== ::
|
|
|
|
++ whey :: foreign response
|
|
|
|
$? %peer ::
|
|
|
|
%peel ::
|
|
|
|
%poke ::
|
|
|
|
%pull ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
-- ::
|
|
|
|
|% :::::::::::::::::::::::::::::::::::::::::::::::::::::: local arvo
|
|
|
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
++ cote :: ++ap note
|
2019-04-11 23:06:05 +03:00
|
|
|
$% [%meta p=@tas q=vase] ::
|
|
|
|
[%send p=ship q=cush] ::
|
|
|
|
[%hiss p=(unit knot) q=mark r=cage] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ cove (pair bone (wind cote cuft)) :: internal move
|
2019-04-11 23:06:05 +03:00
|
|
|
++ move (pair duct (wind note-arvo gift-arvo)) :: typed move
|
2016-11-24 07:25:07 +03:00
|
|
|
-- ::
|
|
|
|
|% :::::::::::::::::::::::::::::::::::::::::::::::::::::: %gall state
|
|
|
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
2018-02-22 17:19:17 +03:00
|
|
|
++ axle-n ?(axle) :: upgrade path
|
2016-11-04 04:35:47 +03:00
|
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::: state proper
|
|
|
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ axle :: all state
|
2019-04-11 23:06:05 +03:00
|
|
|
$: %0 :: state version
|
2018-12-13 04:34:25 +03:00
|
|
|
=mast :: apps by ship
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ gest :: subscriber data
|
2019-04-11 23:06:05 +03:00
|
|
|
$: sup=bitt :: incoming subscribers
|
|
|
|
neb=boat :: outgoing subscribers
|
|
|
|
qel=(map bone @ud) :: queue meter
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ mast :: ship state
|
2019-04-11 23:06:05 +03:00
|
|
|
$: mak=* :: (deprecated)
|
|
|
|
sys=duct :: system duct
|
|
|
|
sap=(map ship scad) :: foreign contacts
|
|
|
|
bum=(map dude seat) :: running agents
|
|
|
|
wub=(map dude sofa) :: waiting queue
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ ffuc :: new cuff
|
2019-04-11 23:06:05 +03:00
|
|
|
$: p=(unit (set ship)) :: disclosing to
|
|
|
|
q=ship :: attributed to
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ prey (pair volt ffuc) :: privilege
|
2015-05-10 01:55:05 +03:00
|
|
|
++ scad :: foreign connection
|
2019-04-11 23:06:05 +03:00
|
|
|
$: p=@ud :: index
|
|
|
|
q=(map duct @ud) :: by duct
|
|
|
|
r=(map @ud duct) :: by index
|
2015-05-10 01:55:05 +03:00
|
|
|
== ::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ scar :: opaque input
|
2019-04-11 23:06:05 +03:00
|
|
|
$: p=@ud :: bone sequence
|
|
|
|
q=(map duct bone) :: by duct
|
|
|
|
r=(map bone duct) :: by bone
|
2019-01-18 08:37:34 +03:00
|
|
|
== ::
|
|
|
|
:: ::
|
2016-11-04 04:35:47 +03:00
|
|
|
:: XX a hack, required to break a subscription loop ::
|
|
|
|
:: which arises when an invalid mark crashes a diff. ::
|
|
|
|
:: See usage in ap-misvale. ::
|
|
|
|
++ misvale-data (set wire) :: subscrs w/ bad marks
|
2016-11-24 07:25:07 +03:00
|
|
|
++ seat :: agent state
|
2019-04-11 23:06:05 +03:00
|
|
|
$: misvale=misvale-data :: bad reqs
|
|
|
|
vel=worm :: cache
|
2018-11-25 01:20:22 +03:00
|
|
|
arms=(map [term path] (unit (pair @ud term))) :: ap-find cache
|
2019-04-11 23:06:05 +03:00
|
|
|
mom=duct :: control duct
|
|
|
|
liv=? :: unstopped
|
|
|
|
toc=torc :: privilege
|
|
|
|
tyc=stic :: statistics
|
|
|
|
ged=gest :: subscribers
|
|
|
|
hav=vase :: running state
|
|
|
|
byk=beak :: update control
|
|
|
|
pyl=(map bone mark) :: req'd translations
|
|
|
|
zam=scar :: opaque ducts
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
2019-04-26 08:16:46 +03:00
|
|
|
++ sofa (qeu (trel duct prey club)) :: blocked kisses
|
2016-11-24 07:25:07 +03:00
|
|
|
++ stic :: statistics
|
2019-04-11 23:06:05 +03:00
|
|
|
$: act=@ud :: change number
|
|
|
|
eny=@uvJ :: entropy
|
|
|
|
lat=@da :: time
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
-- ::
|
|
|
|
:::::::::::::::::::::::::::::::::::::::::::::::::::::: vane header
|
|
|
|
::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
. ==
|
2019-04-11 23:06:05 +03:00
|
|
|
=| all=axle :: all vane state
|
2018-12-06 00:41:21 +03:00
|
|
|
|= $: our=ship :: identity
|
|
|
|
now=@da :: urban time
|
|
|
|
eny=@uvJ :: entropy
|
|
|
|
ska=sley :: activate
|
2016-11-24 07:25:07 +03:00
|
|
|
== :: opaque core
|
|
|
|
~% %gall-top ..is ~
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
|
|
|
:: state machine
|
|
|
|
::
|
|
|
|
|%
|
2016-11-24 07:25:07 +03:00
|
|
|
++ mo
|
2018-12-13 04:34:25 +03:00
|
|
|
~% %gall-mo +> ~
|
2019-04-11 23:09:44 +03:00
|
|
|
::
|
2018-12-13 04:34:25 +03:00
|
|
|
=* mas mast.all
|
2019-04-11 23:09:44 +03:00
|
|
|
=* bowl-type -:!>(*bowl)
|
2019-04-25 20:30:25 +03:00
|
|
|
=* mo-context +
|
2019-04-11 23:09:44 +03:00
|
|
|
::
|
2018-12-13 04:34:25 +03:00
|
|
|
|_ $: hen=duct
|
2019-04-11 23:11:22 +03:00
|
|
|
moves=(list move)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2019-04-11 23:13:17 +03:00
|
|
|
::
|
|
|
|
++ mo-state .
|
|
|
|
::
|
|
|
|
:: +mo-abed: initialise engine with the provided duct.
|
|
|
|
::
|
|
|
|
++ mo-abed
|
2018-12-13 04:34:25 +03:00
|
|
|
|= =duct
|
2019-04-11 23:16:24 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
mo-state(hen duct)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:16:24 +03:00
|
|
|
:: +mo-abet: resolve moves.
|
|
|
|
::
|
|
|
|
++ mo-abet
|
2019-04-25 20:30:25 +03:00
|
|
|
^- [(list move) _mo-context]
|
2019-04-11 23:16:24 +03:00
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ resolved (flop moves)
|
|
|
|
[resolved mo-context]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:17:26 +03:00
|
|
|
:: +mo-conf: send an %exec to ford using a beak assembled with the current
|
|
|
|
:: timestamp.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:17:26 +03:00
|
|
|
++ mo-conf
|
|
|
|
|= [=dude =ship =desk]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=/ =beak
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ =case [%da now]
|
2019-04-11 23:17:26 +03:00
|
|
|
[p=ship q=desk r=case]
|
|
|
|
::
|
|
|
|
(mo-boot dude beak)
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
:: +mo-pass: prepend a standard %pass move to the move state.
|
2019-04-11 23:17:26 +03:00
|
|
|
::
|
|
|
|
++ mo-pass
|
|
|
|
|= pass=(pair path note-arvo)
|
|
|
|
^+ mo-state
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ =move [hen %pass pass]
|
2019-04-11 23:17:26 +03:00
|
|
|
mo-state(moves [move moves])
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
:: +mo-give: prepend a standard %give move to the move state.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ mo-give
|
2019-04-25 20:39:32 +03:00
|
|
|
|= =gift:able
|
2019-04-11 23:17:26 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ =move [hen %give gift]
|
2019-04-11 23:17:26 +03:00
|
|
|
mo-state(moves [move moves])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:17:26 +03:00
|
|
|
:: +mo-okay: check that a ford-built app core produces a valid bowl.
|
|
|
|
::
|
|
|
|
++ mo-okay
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mo-okay
|
2019-04-11 23:17:26 +03:00
|
|
|
|= =vase
|
2016-11-24 07:25:07 +03:00
|
|
|
^- ?
|
2019-04-11 23:17:26 +03:00
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ val (slew 12 vase)
|
|
|
|
?~ val
|
2019-04-11 23:17:26 +03:00
|
|
|
%.n
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ bowl p.u.val
|
|
|
|
(~(nest ut bowl) %.n bowl-type)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:18:29 +03:00
|
|
|
:: +mo-receive-core: receives an app core built by ford-turbo.
|
|
|
|
::
|
2018-08-16 02:48:37 +03:00
|
|
|
++ mo-receive-core
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mo-receive-core
|
2019-04-24 20:53:35 +03:00
|
|
|
|= [=dude =beak =made-result:ford]
|
2019-04-11 23:18:29 +03:00
|
|
|
^+ mo-state
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
|
|
|
?: ?=([%incomplete *] made-result)
|
2019-04-11 23:18:29 +03:00
|
|
|
(mo-give %onto %.n tang.made-result)
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
|
|
|
=/ build-result build-result.made-result
|
|
|
|
::
|
|
|
|
?: ?=([%error *] build-result)
|
2019-04-11 23:18:29 +03:00
|
|
|
(mo-give %onto %.n message.build-result)
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
2019-04-11 23:18:29 +03:00
|
|
|
=/ =cage (result-to-cage:ford build-result)
|
|
|
|
=/ result-vase q.cage
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=/ app-data=(unit seat) (~(get by bum.mas) dude)
|
2018-06-06 03:11:06 +03:00
|
|
|
?^ app-data
|
|
|
|
:: update the path
|
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=/ updated u.app-data(byk beak)
|
|
|
|
=. bum.mas (~(put by bum.mas) dude updated)
|
2018-06-06 03:11:06 +03:00
|
|
|
:: magic update string from +mo-boon, "complete old boot"
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =prey [%high [~ our]]
|
|
|
|
=/ abedded (ap-abed:ap dude prey)
|
|
|
|
=/ peeped (ap-peep:abedded result-vase)
|
|
|
|
ap-abet:peeped
|
2018-06-06 03:11:06 +03:00
|
|
|
:: first install of the app
|
|
|
|
::
|
2019-04-11 23:18:29 +03:00
|
|
|
?. (mo-okay result-vase)
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ err [[%leaf "{<dude>}: bogus core"] ~]
|
|
|
|
(mo-give %onto %.n err)
|
2019-04-11 23:18:29 +03:00
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=. mo-state (mo-born dude beak result-vase)
|
2019-04-11 23:18:29 +03:00
|
|
|
::
|
|
|
|
=/ old mo-state
|
2019-04-27 07:54:35 +03:00
|
|
|
::
|
|
|
|
=/ wag
|
|
|
|
=/ =prey [%high [~ our]]
|
|
|
|
=/ abedded (ap-abed:ap dude prey)
|
|
|
|
(ap-prop:abedded ~)
|
2019-04-11 23:18:29 +03:00
|
|
|
::
|
2018-06-06 03:11:06 +03:00
|
|
|
?^ -.wag
|
2019-04-11 23:18:29 +03:00
|
|
|
=. mo-state old
|
|
|
|
(mo-give %onto %.n u.-.wag)
|
2019-04-27 07:54:35 +03:00
|
|
|
::
|
2019-04-11 23:18:29 +03:00
|
|
|
=. mo-state ap-abet:+.wag
|
2019-04-27 07:54:35 +03:00
|
|
|
::
|
|
|
|
=/ clawed (mo-claw dude)
|
|
|
|
(mo-give:clawed %onto %.y dude %boot now)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:18:29 +03:00
|
|
|
:: +mo-born: create a new seat.
|
|
|
|
::
|
|
|
|
++ mo-born
|
|
|
|
|= [=dude =beak =vase]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=| =seat
|
|
|
|
::
|
|
|
|
=/ =scar
|
|
|
|
=/ bone 1
|
|
|
|
=/ bone-by-duct [[[~ ~] 0] ~ ~]
|
|
|
|
=/ duct-by-bone [[0 [~ ~]] ~ ~]
|
|
|
|
[p=bone q=bone-by-duct r=duct-by-bone]
|
|
|
|
::
|
|
|
|
=/ new-seat
|
|
|
|
%_ seat
|
2016-11-24 07:25:07 +03:00
|
|
|
mom hen
|
2019-04-11 23:18:29 +03:00
|
|
|
byk beak
|
|
|
|
hav vase
|
|
|
|
zam scar
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2019-04-11 23:18:29 +03:00
|
|
|
::
|
|
|
|
%_ mo-state
|
|
|
|
bum.mas (~(put by bum.mas) dude new-seat)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2019-04-11 23:22:58 +03:00
|
|
|
::
|
2018-06-06 03:11:06 +03:00
|
|
|
:: +mo-boot: sends an %exec to ford.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:22:58 +03:00
|
|
|
++ mo-boot
|
|
|
|
|= [=dude =beak]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=/ =path
|
|
|
|
=/ ship (scot %p p.beak)
|
|
|
|
=/ desk q.beak
|
|
|
|
=/ case (scot r.beak)
|
|
|
|
/sys/core/[dude]/[ship]/[desk]/[case]
|
|
|
|
::
|
|
|
|
=/ =note-arvo
|
|
|
|
=/ disc [p q]:beak
|
|
|
|
=/ spur /hoon/[dude]/app
|
|
|
|
=/ schematic [%core disc spur]
|
|
|
|
[%f %build live=%.y schematic]
|
|
|
|
::
|
|
|
|
=/ pass [path note-arvo]
|
|
|
|
(mo-pass pass)
|
|
|
|
::
|
|
|
|
:: +mo-away: handle a foreign request.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:22:58 +03:00
|
|
|
++ mo-away
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mo-away
|
2019-04-11 23:22:58 +03:00
|
|
|
|= [=ship =cush]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =dude p.cush
|
|
|
|
=/ =club q.cush
|
|
|
|
::
|
|
|
|
?: ?=(%pump -.club)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
:: you'd think this would send an ack for the diff
|
|
|
|
:: that caused this pump. it would, but we already
|
|
|
|
:: sent it when we got the diff in ++mo-cyst. then
|
|
|
|
:: we'd have to save the network duct and connect it
|
|
|
|
:: to this returning pump.
|
|
|
|
::
|
2019-04-11 23:22:58 +03:00
|
|
|
mo-state
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
?: ?=(%peer-not -.club)
|
|
|
|
=/ =tang p.club
|
|
|
|
=/ err (some tang)
|
2019-04-11 23:22:58 +03:00
|
|
|
(mo-give %unto %reap err)
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=^ bone mo-state (mo-bale ship)
|
2019-04-11 23:22:58 +03:00
|
|
|
::
|
|
|
|
=/ =rook
|
2019-04-27 07:54:35 +03:00
|
|
|
?- -.club
|
|
|
|
%poke [%m p.p.club q.q.p.club]
|
2019-04-11 23:22:58 +03:00
|
|
|
%pull [%u ~]
|
|
|
|
%puff !!
|
|
|
|
%punk !!
|
2019-04-27 07:54:35 +03:00
|
|
|
%peel [%l club]
|
|
|
|
%peer [%s p.club]
|
2019-04-11 23:22:58 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ action -.club
|
2019-04-11 23:22:58 +03:00
|
|
|
=/ =path /sys/way/[action]
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =note-arvo [%a %want ship [%g %ge dude ~] [bone rook]]
|
2019-04-11 23:22:58 +03:00
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
(mo-pass path note-arvo)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:22:58 +03:00
|
|
|
:: +mo-awed: handle foreign response.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:22:58 +03:00
|
|
|
++ mo-awed
|
|
|
|
|= [=whey art=(unit ares)]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=/ =ares
|
|
|
|
=/ tanks [%blank ~]
|
|
|
|
=/ tang (some tanks)
|
|
|
|
(fall art tang)
|
|
|
|
::
|
|
|
|
=/ to-tang
|
|
|
|
|= ars=(pair term tang)
|
|
|
|
^- tang
|
|
|
|
=/ tape (trip p.ars)
|
|
|
|
[[%leaf tape] q.ars]
|
|
|
|
::
|
|
|
|
=/ result (bind ares to-tang)
|
|
|
|
::
|
|
|
|
?- whey
|
|
|
|
%peel (mo-give %unto %reap result)
|
|
|
|
%peer (mo-give %unto %reap result)
|
|
|
|
%poke (mo-give %unto %coup result)
|
|
|
|
%pull mo-state
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-11 23:24:24 +03:00
|
|
|
:: +mo-bale: assign an out bone.
|
|
|
|
::
|
|
|
|
++ mo-bale
|
|
|
|
|= =ship
|
2019-04-27 07:54:35 +03:00
|
|
|
^- [bone _mo-state]
|
2019-04-11 23:24:24 +03:00
|
|
|
::
|
|
|
|
=/ =scad
|
|
|
|
=/ default [1 ~ ~]
|
|
|
|
=/ existing (~(get by sap.mas) ship)
|
|
|
|
(fall existing default)
|
|
|
|
::
|
|
|
|
=/ nom (~(get by q.scad) hen)
|
|
|
|
::
|
|
|
|
?^ nom
|
|
|
|
[u.nom mo-state]
|
|
|
|
::
|
|
|
|
=/ index p.scad
|
|
|
|
::
|
|
|
|
=/ contacts
|
|
|
|
%_ scad
|
|
|
|
p +(index)
|
|
|
|
q (~(put by q.scad) hen index)
|
|
|
|
r (~(put by r.scad) index hen)
|
2015-05-10 01:55:05 +03:00
|
|
|
==
|
2019-04-11 23:24:24 +03:00
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ next
|
2019-04-11 23:24:24 +03:00
|
|
|
%_ mo-state
|
|
|
|
sap.mas (~(put by sap.mas) ship contacts)
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
[index next]
|
2015-05-10 01:55:05 +03:00
|
|
|
::
|
2019-04-11 23:24:24 +03:00
|
|
|
:: +mo-ball: retrieve an out bone by index.
|
|
|
|
::
|
|
|
|
++ mo-ball
|
|
|
|
|= [=ship index=@ud]
|
2015-05-10 01:55:05 +03:00
|
|
|
^- duct
|
2019-04-11 23:24:24 +03:00
|
|
|
::
|
|
|
|
=/ conns (~(got by sap.mas) ship)
|
|
|
|
=/ duct r:conns
|
|
|
|
(~(got by duct) index)
|
2015-05-10 01:55:05 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
:: +mo-cyst-core: receive a core.
|
|
|
|
::
|
|
|
|
++ mo-cyst-core
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([%f %made *] sign-arvo)
|
|
|
|
?> ?=([@ @ @ @ @ ~] path)
|
|
|
|
::
|
2019-04-24 21:49:51 +03:00
|
|
|
=/ beak-path t.t.path
|
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=/ =beak
|
2019-04-24 21:49:51 +03:00
|
|
|
=/ ship (slav %p i.beak-path)
|
|
|
|
=/ desk i.t.beak-path
|
|
|
|
=/ case [%da (slav %da i.t.t.beak-path)]
|
2019-04-13 19:06:25 +03:00
|
|
|
[p=ship q=desk r=case]
|
|
|
|
::
|
2019-04-24 21:49:51 +03:00
|
|
|
(mo-receive-core i.t.path beak result.sign-arvo)
|
2019-04-11 23:27:53 +03:00
|
|
|
::
|
|
|
|
:: +mo-cyst-pel: translated peer.
|
|
|
|
::
|
|
|
|
++ mo-cyst-pel
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([%f %made *] sign-arvo)
|
|
|
|
?> ?=([@ @ ~] path)
|
|
|
|
::
|
|
|
|
?: ?=([%incomplete *] result.sign-arvo)
|
|
|
|
=/ err (some tang.result.sign-arvo)
|
|
|
|
(mo-give %unto %coup err)
|
|
|
|
::
|
|
|
|
=/ build-result build-result.result.sign-arvo
|
|
|
|
::
|
|
|
|
?: ?=([%error *] build-result)
|
|
|
|
=/ err (some message.build-result)
|
|
|
|
(mo-give %unto %coup err)
|
|
|
|
::
|
|
|
|
=/ =cage (result-to-cage:ford build-result)
|
|
|
|
(mo-give %unto %diff cage)
|
|
|
|
::
|
|
|
|
:: +mo-cyst-red: diff ack.
|
|
|
|
::
|
|
|
|
++ mo-cyst-red
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([@ @ @ @ ~] path)
|
|
|
|
::
|
|
|
|
?. ?=([%a %woot *] sign-arvo)
|
|
|
|
~& [%red-want path]
|
|
|
|
mo-state
|
|
|
|
::
|
|
|
|
=/ him (slav %p i.t.path)
|
|
|
|
=/ dap i.t.t.path
|
|
|
|
=/ num (slav %ud i.t.t.t.path)
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =coop q.+>.sign-arvo
|
2019-04-11 23:27:53 +03:00
|
|
|
::
|
|
|
|
=/ sys-path
|
|
|
|
=/ pax [%req t.path]
|
|
|
|
[%sys pax]
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
?~ coop
|
2019-04-11 23:27:53 +03:00
|
|
|
=/ =note-arvo [%g %deal [him our] dap %pump ~]
|
|
|
|
(mo-pass sys-path note-arvo)
|
|
|
|
::
|
|
|
|
=/ gall-move [%g %deal [him our] dap %pull ~]
|
|
|
|
=/ ames-move [%a %want him [%g %gh dap ~] [num %x ~]]
|
|
|
|
::
|
|
|
|
=. mo-state (mo-pass sys-path gall-move)
|
|
|
|
=. mo-state (mo-pass sys-path ames-move)
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
?. ?=([~ ~ %mack *] coop)
|
|
|
|
~& [%diff-bad-ack coop]
|
2019-04-11 23:27:53 +03:00
|
|
|
mo-state
|
|
|
|
~& [%diff-bad-ack %mack]
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ slaw (slog (flop q.,.+>.coop)) :: kill this lark
|
2019-04-11 23:27:53 +03:00
|
|
|
(slaw mo-state)
|
|
|
|
::
|
|
|
|
:: +mo-cyst-rep: reverse request.
|
|
|
|
::
|
|
|
|
++ mo-cyst-rep
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([@ @ @ @ ~] path)
|
|
|
|
?> ?=([%f %made *] sign-arvo)
|
|
|
|
::
|
|
|
|
=/ him (slav %p i.t.path)
|
|
|
|
=/ dap i.t.t.path
|
|
|
|
=/ num (slav %ud i.t.t.t.path)
|
|
|
|
::
|
|
|
|
?: ?=([%incomplete *] result.sign-arvo)
|
|
|
|
=/ err (some tang.result.sign-arvo)
|
|
|
|
(mo-give %mack err)
|
|
|
|
::
|
|
|
|
=/ build-result build-result.result.sign-arvo
|
|
|
|
::
|
|
|
|
?: ?=([%error *] build-result)
|
|
|
|
:: "XX should crash"
|
|
|
|
=/ err (some message.build-result)
|
|
|
|
(mo-give %mack err)
|
|
|
|
::
|
|
|
|
:: "XX pump should ack"
|
|
|
|
=. mo-state (mo-give %mack ~)
|
|
|
|
::
|
|
|
|
=/ duct (mo-ball him num)
|
|
|
|
=/ initialised (mo-abed duct)
|
|
|
|
::
|
|
|
|
=/ =cage (result-to-cage:ford build-result)
|
|
|
|
=/ move [%unto %diff cage]
|
|
|
|
::
|
|
|
|
(mo-give:initialised move)
|
|
|
|
::
|
|
|
|
:: +mo-cyst-req: inbound request.
|
|
|
|
::
|
|
|
|
++ mo-cyst-req
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([@ @ @ @ ~] path)
|
|
|
|
::
|
|
|
|
=/ him (slav %p i.t.path)
|
|
|
|
=/ dap i.t.t.path
|
|
|
|
=/ num (slav %ud i.t.t.t.path)
|
|
|
|
::
|
|
|
|
?: ?=([%f %made *] sign-arvo)
|
|
|
|
?: ?=([%incomplete *] result.sign-arvo)
|
|
|
|
=/ err (some tang.result.sign-arvo)
|
|
|
|
(mo-give %mack err)
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
=/ build-result build-result.result.sign-arvo
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
|
|
|
?: ?=([%error *] build-result)
|
2019-04-11 23:27:53 +03:00
|
|
|
=/ err (some message.build-result)
|
|
|
|
(mo-give %mack err)
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
=/ =cage (result-to-cage:ford build-result)
|
|
|
|
=/ sys-path [%sys path]
|
|
|
|
=/ =note-arvo [%g %deal [him our] i.t.t.path %poke cage]
|
2018-06-06 03:11:06 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
(mo-pass sys-path note-arvo)
|
|
|
|
::
|
|
|
|
?: ?=([%a %woot *] sign-arvo)
|
|
|
|
mo-state
|
|
|
|
::
|
|
|
|
?> ?=([%g %unto *] sign-arvo)
|
|
|
|
::
|
|
|
|
=/ =cuft +>.sign-arvo
|
|
|
|
::
|
|
|
|
?- -.cuft
|
2018-08-09 00:47:01 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
%coup
|
2018-08-09 00:47:01 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
(mo-give %mack p.cuft)
|
2018-10-03 21:36:45 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
%diff
|
|
|
|
::
|
|
|
|
=/ sys-path [%sys %red t.path]
|
|
|
|
=/ note [%a %want him [%g %gh dap ~] [num %d p.p.cuft q.q.p.cuft]]
|
|
|
|
(mo-pass sys-path note)
|
|
|
|
::
|
|
|
|
%quit
|
|
|
|
::
|
|
|
|
=/ sys-path [%sys path]
|
|
|
|
=/ note [%a %want him [%g %gh dap ~] [num %x ~]]
|
|
|
|
(mo-pass sys-path note)
|
|
|
|
::
|
|
|
|
%reap
|
|
|
|
::
|
|
|
|
(mo-give %mack p.cuft)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
:: +mo-cyst-val: inbound validate.
|
|
|
|
::
|
|
|
|
++ mo-cyst-val
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:27:53 +03:00
|
|
|
?> ?=([%f %made *] sign-arvo)
|
|
|
|
?> ?=([@ @ @ ~] path)
|
|
|
|
::
|
|
|
|
=/ him (slav %p i.t.path)
|
|
|
|
=/ dap i.t.t.path
|
|
|
|
::
|
|
|
|
?: ?=([%incomplete *] result.sign-arvo)
|
|
|
|
=/ err (some tang.result.sign-arvo)
|
|
|
|
(mo-give %unto %coup err)
|
|
|
|
::
|
|
|
|
=/ build-result build-result.result.sign-arvo
|
|
|
|
::
|
|
|
|
?: ?=([%error *] build-result)
|
|
|
|
=/ err (some message.build-result)
|
|
|
|
(mo-give %unto %coup err)
|
|
|
|
::
|
|
|
|
=/ =prey [%high ~ him]
|
|
|
|
=/ =cage (result-to-cage:ford build-result)
|
|
|
|
=/ =club [%poke cage]
|
|
|
|
(mo-clip dap prey club)
|
|
|
|
::
|
|
|
|
:: +mo-cyst-way: outbound request.
|
|
|
|
::
|
|
|
|
++ mo-cyst-way
|
|
|
|
|= [=path =sign-arvo]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?> ?=([%a %woot *] sign-arvo)
|
|
|
|
?> ?=([@ @ ~] path)
|
|
|
|
::
|
|
|
|
=/ why ;;(whey i.t.path)
|
|
|
|
=/ art +>+.sign-arvo
|
|
|
|
::
|
|
|
|
(mo-awed why art)
|
|
|
|
::
|
|
|
|
:: +mo-cyst: take in /sys.
|
|
|
|
::
|
|
|
|
++ mo-cyst
|
|
|
|
~/ %mo-cyst
|
2019-04-27 07:54:35 +03:00
|
|
|
|= [=path =sign-arvo]
|
2019-04-11 23:27:53 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
?+ -.path !!
|
|
|
|
%core (mo-cyst-core path sign-arvo)
|
|
|
|
%pel (mo-cyst-pel path sign-arvo)
|
|
|
|
%red (mo-cyst-red path sign-arvo)
|
|
|
|
%rep (mo-cyst-rep path sign-arvo)
|
|
|
|
%req (mo-cyst-req path sign-arvo)
|
|
|
|
%val (mo-cyst-val path sign-arvo)
|
|
|
|
%way (mo-cyst-way path sign-arvo)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-11 23:29:43 +03:00
|
|
|
:: +mo-cook: take in /use.
|
|
|
|
::
|
|
|
|
++ mo-cook
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mo-cook
|
2019-04-11 23:29:43 +03:00
|
|
|
|= [=path hin=(hypo sign-arvo)]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?. ?=([@ @ coke *] path)
|
|
|
|
~& [%mo-cook-bad-pax path]
|
2016-11-24 07:25:07 +03:00
|
|
|
!!
|
2019-04-11 23:29:43 +03:00
|
|
|
::
|
|
|
|
=/ pap
|
|
|
|
=/ =term i.path
|
|
|
|
=/ =ffuc [~ (slav %p i.t.path)]
|
|
|
|
=/ =prey [%high ffuc]
|
|
|
|
(ap-abed:ap term prey)
|
|
|
|
::
|
|
|
|
=/ vax
|
|
|
|
=/ =vase hin
|
|
|
|
(slot 3 vase)
|
|
|
|
::
|
|
|
|
?- i.t.t.path
|
|
|
|
::
|
|
|
|
%inn
|
|
|
|
::
|
|
|
|
=/ poured (ap-pour:pap t.t.t.path vax)
|
|
|
|
ap-abet:poured
|
|
|
|
::
|
|
|
|
%cay
|
|
|
|
::
|
|
|
|
?. ?=([%e %sigh *] q.hin)
|
|
|
|
~& [%mo-cook-weird q.hin]
|
|
|
|
~& [%mo-cook-weird-path path]
|
|
|
|
mo-state
|
|
|
|
=/ purred (ap-purr:pap +<.q.hin t.t.t.path +>.q.hin)
|
|
|
|
ap-abet:purred
|
|
|
|
::
|
|
|
|
%out
|
|
|
|
::
|
|
|
|
?. ?=([%g %unto *] q.hin)
|
|
|
|
~& [%mo-cook-weird q.hin]
|
|
|
|
~& [%mo-cook-weird-path path]
|
|
|
|
mo-state
|
|
|
|
=/ pouted (ap-pout:pap t.t.t.path +>.q.hin)
|
|
|
|
ap-abet:pouted
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-11 23:30:44 +03:00
|
|
|
:: +mo-claw: clear queue.
|
|
|
|
::
|
|
|
|
++ mo-claw
|
|
|
|
|= =dude
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?. (~(has by bum.mas) dude)
|
|
|
|
mo-state
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ maybe-sofa (~(get by wub.mas) dude)
|
|
|
|
::
|
|
|
|
?~ maybe-sofa
|
2019-04-11 23:30:44 +03:00
|
|
|
mo-state
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =sofa u.maybe-sofa
|
|
|
|
::
|
2019-04-11 23:30:44 +03:00
|
|
|
|-
|
|
|
|
^+ mo-state
|
2019-04-27 07:54:35 +03:00
|
|
|
?: =(~ sofa)
|
2019-04-11 23:30:44 +03:00
|
|
|
%_ mo-state
|
|
|
|
wub.mas (~(del by wub.mas) dude)
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=^ cushion sofa [p q]:~(get to sofa)
|
|
|
|
=/ =duct p.cushion
|
|
|
|
=/ =prey q.cushion
|
|
|
|
=/ =club r.cushion
|
2019-04-11 23:30:44 +03:00
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ move [duct %slip %g %deal [q.q.prey our] dude club]
|
2019-04-11 23:30:44 +03:00
|
|
|
$(moves [move moves])
|
|
|
|
::
|
|
|
|
:: +mo-beak: build beak.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:30:44 +03:00
|
|
|
++ mo-beak
|
|
|
|
|= =dude
|
2016-11-24 07:25:07 +03:00
|
|
|
^- beak
|
2019-04-11 23:30:44 +03:00
|
|
|
?~ app-data=(~(get by bum.mas) dude)
|
2019-07-16 09:10:49 +03:00
|
|
|
::
|
2019-04-11 23:30:44 +03:00
|
|
|
:: XX this fallback is necessary, as .dude could be either the source
|
2019-07-16 09:10:49 +03:00
|
|
|
:: or the destination app. ie, it might not exist locally ...
|
|
|
|
::
|
|
|
|
[our %home %da now]
|
|
|
|
byk.u.app-data
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ mo-peek
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mo-peek
|
2019-04-11 23:31:55 +03:00
|
|
|
|= [=dude =prey =term =path]
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (unit (unit cage))
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
=/ pap (ap-abed:ap dude prey)
|
|
|
|
(ap-peek:pap term path)
|
|
|
|
::
|
|
|
|
:: +mo-clip: apply club.
|
|
|
|
::
|
|
|
|
++ mo-clip
|
|
|
|
|= [=dude =prey =club]
|
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=/ =path
|
|
|
|
=/ ship (scot %p q.q.prey)
|
|
|
|
/sys/val/[ship]/[dude]
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ ship-info
|
2019-04-11 23:31:55 +03:00
|
|
|
=/ beak (mo-beak dude)
|
|
|
|
[p q]:beak
|
|
|
|
::
|
|
|
|
?: ?=(%puff -.club)
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =schematic:ford [%vale ship-info +.club]
|
|
|
|
=/ =note-arvo [%f %build live=%.n schematic]
|
2019-04-11 23:31:55 +03:00
|
|
|
(mo-pass path note-arvo)
|
|
|
|
::
|
|
|
|
?: ?=(%punk -.club)
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =schematic:ford [%cast ship-info p.club [%$ q.club]]
|
|
|
|
=/ =note-arvo [%f %build live=%.n schematic]
|
2019-04-11 23:31:55 +03:00
|
|
|
(mo-pass path note-arvo)
|
|
|
|
::
|
|
|
|
?: ?=(%peer-not -.club)
|
|
|
|
=/ err (some p.club)
|
|
|
|
(mo-give %unto %reap err)
|
|
|
|
::
|
|
|
|
=/ pap (ap-abed:ap dude prey)
|
|
|
|
=/ clubbed (ap-club:pap club)
|
|
|
|
ap-abet:clubbed
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
:: +mo-come: handle locally.
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
++ mo-come
|
|
|
|
|= [=ship =cush]
|
2019-04-11 23:31:55 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=/ default-sofa *sofa
|
|
|
|
::
|
2019-04-25 20:39:32 +03:00
|
|
|
=/ =prey [%high [~ ship]]
|
|
|
|
=/ =dude p.cush
|
|
|
|
=/ =club q.cush
|
|
|
|
::
|
2019-04-26 08:16:46 +03:00
|
|
|
=/ is-running (~(has by bum.mas) dude)
|
|
|
|
=/ is-waiting (~(has by wub.mas) dude)
|
|
|
|
::
|
|
|
|
?: |(!is-running is-waiting)
|
|
|
|
~& >> [%mo-not-running dude -.club] :: FIXME remove?
|
|
|
|
::
|
2019-04-13 19:06:25 +03:00
|
|
|
=/ =sofa
|
2019-04-26 08:16:46 +03:00
|
|
|
=/ waiting (~(get by wub.mas) dude)
|
|
|
|
=/ kisses (fall waiting default-sofa)
|
2019-04-11 23:31:55 +03:00
|
|
|
=/ kiss [hen prey club]
|
2019-04-26 08:16:46 +03:00
|
|
|
(~(put to kisses) kiss)
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
%_ mo-state
|
2019-04-13 19:06:25 +03:00
|
|
|
wub.mas (~(put by wub.mas) dude sofa)
|
2018-06-06 03:11:06 +03:00
|
|
|
==
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
(mo-clip dude prey club)
|
|
|
|
::
|
|
|
|
:: +mo-gawk: ames forward.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:31:55 +03:00
|
|
|
++ mo-gawk
|
2019-04-27 07:54:35 +03:00
|
|
|
|= [=ship =dude =bone =rook]
|
2019-04-11 23:31:55 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
=. mo-state
|
|
|
|
?. ?=(%u -.rook)
|
|
|
|
mo-state
|
|
|
|
(mo-give %mack ~)
|
|
|
|
::
|
|
|
|
=/ =path
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ him (scot %p ship)
|
|
|
|
=/ num (scot %ud bone)
|
|
|
|
/sys/req/[him]/[dude]/[num]
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
=/ =note-arvo
|
|
|
|
?- -.rook
|
2019-04-27 07:54:35 +03:00
|
|
|
%m [%g %deal [ship our] dude %puff p.rook q.rook]
|
|
|
|
%l [%g %deal [ship our] dude %peel p.rook q.rook]
|
|
|
|
%s [%g %deal [ship our] dude %peer p.rook]
|
|
|
|
%u [%g %deal [ship our] dude %pull ~]
|
2019-04-11 23:31:55 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
(mo-pass path note-arvo)
|
|
|
|
::
|
|
|
|
:: +mo-gawd: ames backward.
|
|
|
|
::
|
|
|
|
++ mo-gawd
|
2019-04-27 07:54:35 +03:00
|
|
|
|= [=ship =dude =bone =roon]
|
2019-04-11 23:31:55 +03:00
|
|
|
^+ mo-state
|
|
|
|
::
|
|
|
|
?- -.roon
|
|
|
|
::
|
|
|
|
%d
|
|
|
|
=/ =path
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ him (scot %p ship)
|
|
|
|
=/ num (scot %ud bone)
|
|
|
|
/sys/rep/[him]/[dude]/[num]
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
=/ =note-arvo
|
|
|
|
=/ beak (mo-beak dude)
|
|
|
|
=/ info [p q]:beak
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ =schematic:ford [%vale info p.roon q.roon]
|
|
|
|
[%f %build live=%.n schematic]
|
2019-04-11 23:31:55 +03:00
|
|
|
::
|
|
|
|
(mo-pass path note-arvo)
|
|
|
|
::
|
|
|
|
%x
|
|
|
|
=. mo-state (mo-give %mack ~) :: XX should crash
|
|
|
|
::
|
2019-04-27 07:54:35 +03:00
|
|
|
=/ out (mo-ball ship bone)
|
|
|
|
=/ abedded (mo-abed out)
|
|
|
|
(mo-give:abedded %unto %quit ~)
|
2015-05-10 01:55:05 +03:00
|
|
|
==
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:05:43 +03:00
|
|
|
:: +ap: agent engine
|
|
|
|
::
|
|
|
|
++ ap
|
2016-11-24 07:25:07 +03:00
|
|
|
~% %gall-ap +> ~
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
|
|
|
:: FIXME refactor this into something sane
|
|
|
|
::
|
2019-04-27 08:05:43 +03:00
|
|
|
|_ $: $: dap=dude
|
|
|
|
pry=prey
|
|
|
|
ost=bone
|
|
|
|
zip=(list cove)
|
|
|
|
dub=(list (each suss tang))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
seat
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:05:43 +03:00
|
|
|
++ ap-state .
|
|
|
|
::
|
|
|
|
:: +ap-abed: initialise.
|
|
|
|
::
|
|
|
|
++ ap-abed
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-abed
|
2019-04-27 09:08:29 +03:00
|
|
|
|= [=dude =prey]
|
2019-04-27 08:05:43 +03:00
|
|
|
^+ ap-state
|
|
|
|
::
|
2019-04-27 09:08:29 +03:00
|
|
|
=: dap dude
|
|
|
|
pry prey
|
|
|
|
+>+<+ `seat`(~(got by bum.mas) dude) :: FIXME lark
|
|
|
|
==
|
|
|
|
::
|
|
|
|
=/ unt (~(get by q.zam) hen)
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=: act.tyc +(act.tyc)
|
2019-04-27 09:08:29 +03:00
|
|
|
eny.tyc (shaz (mix (add dude act.tyc) eny))
|
2016-11-24 07:25:07 +03:00
|
|
|
lat.tyc now
|
2019-04-27 09:08:29 +03:00
|
|
|
==
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ unt
|
2019-04-27 08:05:43 +03:00
|
|
|
ap-state(ost u.unt)
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
2019-04-27 08:05:43 +03:00
|
|
|
%= ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
ost p.zam
|
|
|
|
p.zam +(p.zam)
|
|
|
|
q.zam (~(put by q.zam) hen p.zam)
|
|
|
|
r.zam (~(put by r.zam) p.zam hen)
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:05:43 +03:00
|
|
|
:: +ap-abet: resolve moves.
|
|
|
|
::
|
|
|
|
++ ap-abet
|
|
|
|
^+ mo-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=> ap-abut
|
2019-04-27 08:05:43 +03:00
|
|
|
%_ mo-state
|
2018-12-13 04:34:25 +03:00
|
|
|
bum.mas (~(put by bum.mas) dap +<+)
|
2019-04-11 23:34:30 +03:00
|
|
|
moves :(weld (turn zip ap-aver) (turn dub ap-avid) moves)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-abut: track queue.
|
|
|
|
::
|
|
|
|
++ ap-abut
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ [pyz=zip ful=*(set bone)]
|
2019-04-27 08:42:04 +03:00
|
|
|
|-
|
|
|
|
^+ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ pyz
|
2019-04-27 09:08:29 +03:00
|
|
|
?. ?=([%give %diff *] q.i.pyz)
|
2016-11-24 07:25:07 +03:00
|
|
|
$(pyz t.pyz)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ vad ap-state ap-fill(ost p.i.pyz)
|
2016-11-24 07:25:07 +03:00
|
|
|
$(pyz t.pyz, ful ?:(vad ful (~(put in ful) p.i.pyz)))
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
|
|
|
=/ ded ~(tap in ful)
|
2019-04-27 08:42:04 +03:00
|
|
|
|-
|
|
|
|
^+ ap-state
|
|
|
|
?~ ded ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
=> %*(. $(ded t.ded) ost i.ded)
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
|
|
|
=/ tib (~(get by sup.ged) ost)
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ tib ~&([%ap-abut-bad-bone dap ost] ..ap-kill)
|
|
|
|
ap-kill(q.q.pry p.u.tib)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-aver: cove to move.
|
|
|
|
::
|
|
|
|
++ ap-aver
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-aver
|
2019-04-27 08:42:04 +03:00
|
|
|
|= cov=cove
|
2019-01-18 08:37:34 +03:00
|
|
|
^- move
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
:- (~(got by r.zam) p.cov)
|
|
|
|
?- -.q.cov
|
2019-04-27 09:08:29 +03:00
|
|
|
?(%slip %sick) !!
|
|
|
|
%give
|
2016-11-24 07:25:07 +03:00
|
|
|
?< =(0 p.cov)
|
2019-04-27 09:08:29 +03:00
|
|
|
?. ?=(%diff -.p.q.cov)
|
2016-11-24 07:25:07 +03:00
|
|
|
[%give %unto p.q.cov]
|
2019-04-27 09:08:29 +03:00
|
|
|
::
|
|
|
|
=/ cay=cage p.p.q.cov
|
|
|
|
=/ mar (~(gut by pyl) p.cov p.cay)
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?: =(mar p.cay) [%give %unto p.q.cov]
|
|
|
|
:+ %pass
|
|
|
|
[%sys %pel dap ~]
|
2018-12-13 09:34:12 +03:00
|
|
|
[%f %build live=%.n [%cast [p q]:(mo-beak dap) mar [%$ cay]]]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 09:08:29 +03:00
|
|
|
%pass
|
2016-11-24 07:25:07 +03:00
|
|
|
:+ %pass `path`[%use dap p.q.cov]
|
|
|
|
?- -.q.q.cov
|
2019-04-27 09:08:29 +03:00
|
|
|
%send `note-arvo`[%g %deal [our p.q.q.cov] q.q.q.cov]
|
|
|
|
%meta `note-arvo`[`@tas`p.q.q.cov %meta `vase`q.q.q.cov]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2018-10-03 21:36:45 +03:00
|
|
|
::
|
|
|
|
:: I'm sort of stumped on how to get a %give out of the above; it's
|
|
|
|
:: just turning %cove into a %pass instead.
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-avid: onto results.
|
|
|
|
::
|
|
|
|
++ ap-avid
|
2019-04-27 09:08:29 +03:00
|
|
|
|= a=(each suss tang)
|
|
|
|
^- move
|
|
|
|
::
|
|
|
|
[hen %give %onto a]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-call: call into server.
|
|
|
|
::
|
|
|
|
++ ap-call
|
2016-11-24 07:25:07 +03:00
|
|
|
~/ %ap-call
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [cog=term arg=vase]
|
|
|
|
^- [(unit tang) _ap-state]
|
|
|
|
::
|
|
|
|
=. ap-state ap-bowl
|
|
|
|
=^ arm ap-state (ap-farm cog)
|
|
|
|
?: ?=(%| -.arm) [`p.arm ap-state]
|
|
|
|
=^ zem ap-state (ap-slam cog p.arm arg)
|
|
|
|
?: ?=(%| -.zem) [`p.zem ap-state]
|
2019-01-18 08:37:34 +03:00
|
|
|
(ap-sake p.zem)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-peek: peek.
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ ap-peek
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-peek
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [ren=@tas tyl=path]
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (unit (unit cage))
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ ?. ?=($x ren)
|
|
|
|
[mar=%$ tyl=tyl]
|
|
|
|
=+ `path`(flop tyl)
|
|
|
|
?> ?=(^ -)
|
|
|
|
[mar=i tyl=(flop t)]
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cug ap-state (ap-find %peek ren tyl)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
((slog leaf+"peek find fail" >tyl< >mar< ~) [~ ~])
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ arm ap-state (ap-farm q.u.cug)
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.arm) ((slog leaf+"peek farm fail" p.arm) [~ ~])
|
2019-01-18 08:37:34 +03:00
|
|
|
=^ zem +>.$ (ap-slam q.u.cug p.arm !>((slag p.u.cug `path`[ren tyl])))
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.zem) ((slog leaf+"peek slam fail" p.zem) [~ ~])
|
2016-11-24 07:25:07 +03:00
|
|
|
?+ q.p.zem ((slog leaf+"peek bad result" ~) [~ ~])
|
2018-03-19 07:18:20 +03:00
|
|
|
~ ~
|
|
|
|
{~ ~} [~ ~]
|
|
|
|
{~ ~ ^}
|
2018-03-29 21:03:14 +03:00
|
|
|
=+ caz=(sped (slot 7 p.zem))
|
2016-11-24 07:25:07 +03:00
|
|
|
?. &(?=({p/@ *} q.caz) ((sane %tas) p.q.caz))
|
|
|
|
((slog leaf+"scry: malformed cage" ~) [~ ~])
|
|
|
|
?. =(mar p.q.caz)
|
|
|
|
[~ ~]
|
|
|
|
``[p.q.caz (slot 3 caz)]
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-club: apply effect.
|
|
|
|
::
|
|
|
|
++ ap-club
|
|
|
|
|= cub=club
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?- -.cub
|
|
|
|
$peel (ap-peel +.cub)
|
|
|
|
$poke (ap-poke +.cub)
|
|
|
|
$peer (ap-peer +.cub)
|
|
|
|
$puff !!
|
|
|
|
$punk !!
|
2016-11-08 01:15:56 +03:00
|
|
|
$peer-not !!
|
2016-11-24 07:25:07 +03:00
|
|
|
$pull ap-pull
|
|
|
|
$pump ap-fall
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-diff: pour a diff.
|
|
|
|
::
|
|
|
|
++ ap-diff
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-diff
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [her=ship pax=path cag=cage]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
=^ cug ap-state (ap-find [%diff p.cag +.pax])
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
%. [| her +.pax]
|
|
|
|
ap-pump:(ap-lame %diff (ap-suck "diff: no {<`path`[p.cag +.pax]>}"))
|
|
|
|
=+ ^= arg ^- vase
|
|
|
|
%- slop
|
|
|
|
?: =(0 p.u.cug)
|
2019-05-29 01:37:42 +03:00
|
|
|
[!>(`path`+.pax) (ap-cage cag)]
|
2016-11-24 07:25:07 +03:00
|
|
|
[!>((slag (dec p.u.cug) `path`+.pax)) q.cag]
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cam ap-state (ap-call q.u.cug arg)
|
2019-01-18 08:37:34 +03:00
|
|
|
?^ cam
|
2016-11-24 07:25:07 +03:00
|
|
|
(ap-pump:(ap-lame q.u.cug u.cam) | her pax)
|
|
|
|
(ap-pump & her pax)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-cage: cage to tagged vase.
|
|
|
|
::
|
|
|
|
++ ap-cage
|
2019-05-29 01:37:42 +03:00
|
|
|
|= cag/cage
|
|
|
|
^- vase
|
|
|
|
(slop `vase`[[%atom %tas `p.cag] p.cag] q.cag)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-pump: update subscription.
|
|
|
|
::
|
|
|
|
++ ap-pump
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-pump
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [oak=? her=ship pax=path]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ way=[(scot %p her) %out pax]
|
|
|
|
?: oak
|
|
|
|
(ap-pass way %send her -.pax %pump ~)
|
|
|
|
(ap-pass:(ap-give %quit ~) way %send her -.pax %pull ~)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-fail: drop from queue.
|
|
|
|
::
|
|
|
|
++ ap-fall
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (~(has by sup.ged) ost) .
|
|
|
|
=+ soy=(~(get by qel.ged) ost)
|
2019-01-18 08:37:34 +03:00
|
|
|
?: |(?=(~ soy) =(0 u.soy))
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ~& [%ap-fill-under [our dap] q.q.pry ost]
|
|
|
|
+
|
|
|
|
=. u.soy (dec u.soy)
|
|
|
|
:: ~& [%ap-fill-sub [[our dap] q.q.pry ost] u.soy]
|
2019-01-18 08:37:34 +03:00
|
|
|
?: =(0 u.soy)
|
2016-11-24 07:25:07 +03:00
|
|
|
+(qel.ged (~(del by qel.ged) ost))
|
|
|
|
+(qel.ged (~(put by qel.ged) ost u.soy))
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-farm: produce arm.
|
|
|
|
::
|
|
|
|
++ ap-farm
|
2016-11-24 07:25:07 +03:00
|
|
|
~/ %ap-farm
|
2019-04-27 08:42:04 +03:00
|
|
|
|= cog=term
|
|
|
|
^- [(each vase tang) _ap-state]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ pyz=(mule |.((~(mint wa vel) p.hav [%limb cog])))
|
2019-01-18 08:37:34 +03:00
|
|
|
?: ?=(%| -.pyz)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| +.pyz])
|
|
|
|
:_ ap-state(vel `worm`+>.pyz)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ ton=(mock [q.hav q.+<.pyz] ap-sled)
|
|
|
|
?- -.ton
|
|
|
|
$0 [%& p.+<.pyz p.ton]
|
|
|
|
$1 [%| (turn p.ton |=(a/* (smyt (path a))))]
|
|
|
|
$2 [%| p.ton]
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-fill: add to queue.
|
|
|
|
::
|
|
|
|
++ ap-fill
|
|
|
|
^- [? _ap-state]
|
2019-06-30 15:50:00 +03:00
|
|
|
=+ suy=(~(gut by qel.ged) ost 0)
|
2019-06-04 01:23:29 +03:00
|
|
|
=/ subscriber=(unit (pair ship path))
|
2019-06-04 15:02:35 +03:00
|
|
|
(~(get by sup.ged) ost)
|
2019-06-04 01:23:29 +03:00
|
|
|
?: ?& =(20 suy)
|
|
|
|
?| ?=(~ subscriber)
|
|
|
|
!=(our p.u.subscriber)
|
|
|
|
==
|
|
|
|
==
|
2019-03-13 14:50:56 +03:00
|
|
|
~& [%gall-pulling-20 ost (~(get by sup.ged) ost) (~(get by r.zam) ost)]
|
|
|
|
[%| ..ap-fill]
|
|
|
|
:: ~& :* %gall-pushing-20
|
|
|
|
:: ost
|
|
|
|
:: suy=suy
|
|
|
|
:: (~(get by r.zam) ost)
|
|
|
|
:: ==
|
|
|
|
[%& ..ap-fill(qel.ged (~(put by qel.ged) ost +(suy)))]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-find: general arm.
|
|
|
|
::
|
|
|
|
++ ap-find
|
2018-11-25 01:20:22 +03:00
|
|
|
~/ %ap-find
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [cog=term pax=path]
|
|
|
|
^- [(unit (pair @ud term)) _ap-state]
|
2018-11-25 01:20:22 +03:00
|
|
|
:: check cache
|
|
|
|
?^ maybe-result=(~(get by arms) [cog pax])
|
2019-04-27 08:42:04 +03:00
|
|
|
[u.maybe-result ap-state]
|
2018-11-25 01:20:22 +03:00
|
|
|
::
|
|
|
|
=/ result=(unit (pair @ud term))
|
|
|
|
=+ dep=0
|
|
|
|
|- ^- (unit (pair @ud term))
|
|
|
|
=+ ^= spu
|
|
|
|
?~ pax ~
|
|
|
|
$(pax t.pax, dep +(dep), cog (ap-hype cog i.pax))
|
|
|
|
?^ spu spu
|
|
|
|
?.((ap-fond cog) ~ `[dep cog])
|
|
|
|
::
|
|
|
|
=. arms (~(put by arms) [cog pax] result)
|
2019-04-27 08:42:04 +03:00
|
|
|
[result ap-state]
|
|
|
|
::
|
|
|
|
:: +ap-fond: check for arm.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-fond
|
2018-11-25 01:20:22 +03:00
|
|
|
~/ %ap-fond
|
2019-04-27 08:42:04 +03:00
|
|
|
|= cog=term
|
2016-11-24 07:25:07 +03:00
|
|
|
^- ?
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
(slob cog p.hav)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-give: return result.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-give
|
|
|
|
|= cit=cuft
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
ap-state(zip :_(zip [ost %give cit]))
|
|
|
|
::
|
|
|
|
:: +ap-bowl: set up bowl.
|
|
|
|
::
|
|
|
|
++ ap-bowl
|
|
|
|
%_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
+12.q.hav
|
|
|
|
^- bowl
|
|
|
|
:* :* our :: host
|
|
|
|
q.q.pry :: guest
|
|
|
|
dap :: agent
|
|
|
|
== ::
|
|
|
|
:* wex=~ :: outgoing
|
|
|
|
sup=sup.ged :: incoming
|
|
|
|
== ::
|
|
|
|
:* ost=ost :: cause
|
|
|
|
act=act.tyc :: tick
|
|
|
|
eny=eny.tyc :: nonce
|
|
|
|
now=lat.tyc :: time
|
|
|
|
byk=byk :: source
|
|
|
|
== == ::
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-hype: hyphenate.
|
|
|
|
::
|
|
|
|
++ ap-hype
|
2018-11-25 01:20:22 +03:00
|
|
|
~/ %ap-hype
|
2019-04-27 08:42:04 +03:00
|
|
|
|=([a=term b=term] `term`(cat 3 a (cat 3 '-' b)))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move: process each move.
|
|
|
|
::
|
|
|
|
++ ap-move
|
2016-11-24 07:25:07 +03:00
|
|
|
~/ %ap-move
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
?@ q.vax :_(ap-state [%| (ap-suck "move: invalid move (atom)")])
|
|
|
|
?^ -.q.vax :_(ap-state [%| (ap-suck "move: invalid move (bone)")])
|
|
|
|
?@ +.q.vax :_(ap-state [%| (ap-suck "move: invalid move (card)")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ hun=(~(get by r.zam) -.q.vax)
|
2018-01-09 00:24:43 +03:00
|
|
|
?. &((~(has by r.zam) -.q.vax) !=(0 -.q.vax))
|
2018-06-01 03:14:39 +03:00
|
|
|
~& [q-vax+q.vax has-by-r-zam+(~(has by r.zam) -.q.vax)]
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "move: invalid card (bone {<-.q.vax>})")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ pec vel (~(spot wa vel) 3 vax)
|
|
|
|
=^ cav vel (~(slot wa vel) 3 pec)
|
2019-01-18 08:37:34 +03:00
|
|
|
?+ +<.q.vax
|
2016-11-24 07:25:07 +03:00
|
|
|
(ap-move-pass -.q.vax +<.q.vax cav)
|
|
|
|
$diff (ap-move-diff -.q.vax cav)
|
2019-02-15 01:58:44 +03:00
|
|
|
:: $hiss (ap-move-hiss -.q.vax cav)
|
2016-11-24 07:25:07 +03:00
|
|
|
$peel (ap-move-peel -.q.vax cav)
|
|
|
|
$peer (ap-move-peer -.q.vax cav)
|
|
|
|
$pull (ap-move-pull -.q.vax cav)
|
|
|
|
$poke (ap-move-poke -.q.vax cav)
|
|
|
|
$send (ap-move-send -.q.vax cav)
|
|
|
|
$quit (ap-move-quit -.q.vax cav)
|
2019-02-06 03:15:13 +03:00
|
|
|
::
|
2019-02-09 02:03:46 +03:00
|
|
|
:: $connect (ap-move-connect -.q.vax cav)
|
2018-10-03 21:36:45 +03:00
|
|
|
$http-response (ap-move-http-response -.q.vax cav)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-quit: give quit move.
|
|
|
|
::
|
|
|
|
++ ap-move-quit
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %quit
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
:_ ap-state(sup.ged (~(del by sup.ged) sto))
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ q.vax [%| (ap-suck "quit: improper give")]
|
|
|
|
[%& `cove`[sto %give `cuft`[%quit ~]]]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-diff: give diff move.
|
|
|
|
::
|
|
|
|
++ ap-move-diff
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %diff
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
2018-03-29 21:03:14 +03:00
|
|
|
=^ pec vel (~(sped wa vel) vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. &(?=(^ q.pec) ?=(@ -.q.pec) ((sane %tas) -.q.pec))
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "diff: improper give")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ tel vel (~(slot wa vel) 3 pec)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%& sto %give %diff `cage`[-.q.pec tel]])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-10-03 21:36:45 +03:00
|
|
|
++ ap-move-http-response
|
|
|
|
|= [sto=bone vax=vase]
|
2019-04-27 08:42:04 +03:00
|
|
|
^- [(each cove tang) _ap-state]
|
2018-10-03 21:36:45 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: TODO: Magic vase validation. I have no idea how malformed
|
|
|
|
:: checking works.
|
2018-10-03 21:36:45 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: This should be moved into +cote
|
2019-02-12 01:41:50 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2019-06-19 21:09:53 +03:00
|
|
|
[%& sto %give %http-response ;;(http-event:http q.vax)]
|
2018-10-03 21:36:45 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
|
|
|
:: +ap-move-mess: extract path, target.
|
|
|
|
::
|
|
|
|
++ ap-move-mess
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %mess
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^- [(each (trel path ship term) tang) _ap-state]
|
|
|
|
::
|
|
|
|
:_ ap-state
|
|
|
|
?. ?& ?=([p=* [q=@ r=@] s=*] q.vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
(gte 1 (met 7 q.q.vax))
|
|
|
|
==
|
|
|
|
[%| (ap-suck "mess: malformed target")]
|
|
|
|
=+ pux=((soft path) p.q.vax)
|
|
|
|
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
|
|
|
[%| (ap-suck "mess: malformed path")]
|
|
|
|
[%& [(scot %p q.q.vax) %out r.q.vax u.pux] q.q.vax r.q.vax]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-pass: pass general move.
|
|
|
|
::
|
|
|
|
++ ap-move-pass
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %pass
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone wut=* vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?. &(?=(@ wut) ((sane %tas) wut))
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "pass: malformed card")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ pux=((soft path) -.q.vax)
|
|
|
|
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
2019-02-06 03:15:13 +03:00
|
|
|
~& [%bad-path pux]
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "pass: malformed path")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ huj=(ap-vain wut)
|
2019-04-27 08:42:04 +03:00
|
|
|
?~ huj :_(ap-state [%| (ap-suck "move: unknown note {(trip wut)}")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ tel vel (~(slot wa vel) 3 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- [(scot %p q.q.pry) %inn u.pux]
|
|
|
|
[%meta u.huj (slop (ap-term %tas wut) tel)]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-poke: pass %poke.
|
|
|
|
::
|
|
|
|
++ ap-move-poke
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %poke
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
=^ yep ap-state (ap-move-mess vax)
|
|
|
|
?: ?=(%| -.yep) :_(ap-state yep)
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ gaw vel (~(slot wa vel) 7 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
?. &(?=([p=@ q=*] q.gaw) ((sane %tas) p.q.gaw))
|
|
|
|
:_(ap-state [%| (ap-suck "poke: malformed cage")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ paw vel (~(stop wa vel) 3 gaw)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %poke p.q.gaw paw]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-peel: pass %peel.
|
|
|
|
::
|
|
|
|
++ ap-move-peel
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %peel
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
=^ yep ap-state (ap-move-mess vax)
|
|
|
|
:_ ap-state
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.yep) yep
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ mar=((soft mark) +>-.q.vax)
|
|
|
|
?~ mar
|
|
|
|
[%| (ap-suck "peel: malformed mark")]
|
|
|
|
=+ pux=((soft path) +>+.q.vax)
|
|
|
|
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
|
|
|
[%| (ap-suck "peel: malformed path")]
|
2016-11-08 01:17:06 +03:00
|
|
|
?: (~(has in misvale) p.p.yep)
|
2016-11-15 02:44:50 +03:00
|
|
|
=/ err [leaf+"peel: misvalidation encountered"]~
|
2016-11-08 01:17:06 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %peer-not err]
|
2016-11-24 07:25:07 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %peel u.mar u.pux]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-peer: pass %peer.
|
|
|
|
::
|
|
|
|
++ ap-move-peer
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %peer
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
=^ yep ap-state (ap-move-mess vax)
|
|
|
|
:_ ap-state
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.yep) yep
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ pux=((soft path) +>.q.vax)
|
|
|
|
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
|
|
|
[%| (ap-suck "peer: malformed path")]
|
2016-11-08 01:17:06 +03:00
|
|
|
?: (~(has in misvale) p.p.yep)
|
2016-11-15 02:44:50 +03:00
|
|
|
=/ err [leaf+"peer: misvalidation encountered"]~
|
2016-11-08 01:17:06 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %peer-not err]
|
2016-11-24 07:25:07 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %peer u.pux]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-pull: pass %pull.
|
|
|
|
::
|
|
|
|
++ ap-move-pull
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %pull
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
=^ yep ap-state (ap-move-mess vax)
|
|
|
|
:_ ap-state
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.yep) yep
|
2016-11-24 07:25:07 +03:00
|
|
|
?. =(~ +>.q.vax)
|
|
|
|
[%| (ap-suck "pull: malformed card")]
|
|
|
|
:^ %& sto %pass
|
|
|
|
:- p.p.yep
|
|
|
|
[%send q.p.yep r.p.yep %pull ~]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-move-send: pass gall action.
|
|
|
|
::
|
|
|
|
++ ap-move-send
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %send
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [sto=bone vax=vase]
|
|
|
|
^- [(each cove tang) _ap-state]
|
|
|
|
::
|
|
|
|
?. ?& ?=([p=* [q=@ r=@] [s=@ t=*]] q.vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
(gte 1 (met 7 q.q.vax))
|
|
|
|
((sane %tas) r.q.vax)
|
|
|
|
==
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "send: improper ask.[%send wire gill club]")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ pux=((soft path) p.q.vax)
|
|
|
|
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "send: malformed path")])
|
2016-11-24 07:25:07 +03:00
|
|
|
?: ?=($poke s.q.vax)
|
|
|
|
=^ gav vel (~(spot wa vel) 7 vax)
|
|
|
|
?> =(%poke -.q.gav)
|
2019-04-27 08:42:04 +03:00
|
|
|
?. ?& ?=([p=@ q=*] t.q.vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
((sane %tas) p.t.q.vax)
|
|
|
|
==
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "send: malformed poke")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ vig vel (~(spot wa vel) 3 gav)
|
|
|
|
=^ geb vel (~(slot wa vel) 3 vig)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
:^ %& sto %pass
|
|
|
|
:- [(scot %p q.q.vax) %out r.q.vax u.pux]
|
|
|
|
^- cote
|
|
|
|
:: ~& [%ap-move-send `path`[(scot %p q.q.vax) %out r.q.vax u.pux]]
|
|
|
|
[%send q.q.vax r.q.vax %poke p.t.q.vax geb]
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ cob=((soft club) [s t]:q.vax)
|
|
|
|
?~ cob
|
|
|
|
[%| (ap-suck "send: malformed club")]
|
|
|
|
:^ %& sto %pass
|
|
|
|
:- [(scot %p q.q.vax) %out r.q.vax u.pux]
|
|
|
|
:: ~& [%ap-move-send `path`[(scot %p q.q.vax) %out r.q.vax u.pux]]
|
|
|
|
[%send q.q.vax r.q.vax u.cob]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-pass: request action.
|
|
|
|
::
|
|
|
|
++ ap-pass
|
|
|
|
|= [pax=path coh=cote]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
ap-state(zip :_(zip [ost %pass pax coh]))
|
|
|
|
::
|
|
|
|
:: +ap-peep: reinstall.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-peep
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-peep
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2017-01-13 03:58:20 +03:00
|
|
|
=+ pep=(ap-prep(hav vax) `hav)
|
|
|
|
?~ -.pep
|
|
|
|
+.pep
|
|
|
|
(ap-lame %prep-failed u.-.pep)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-peel: apply %peel.
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ ap-peel
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [mar=mark pax=path]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=. pyl (~(put by pyl) ost mar)
|
|
|
|
(ap-peer pax)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-peer: apply %peer.
|
|
|
|
::
|
|
|
|
++ ap-peer
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-peer
|
2019-04-27 08:42:04 +03:00
|
|
|
|= pax=path
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-02 02:26:36 +03:00
|
|
|
=. sup.ged (~(put by sup.ged) ost [q.q.pry pax])
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cug ap-state (ap-find %peer pax)
|
|
|
|
?~ cug ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ old=zip
|
|
|
|
=. zip ~
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cam ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
!>(`path`(slag p.u.cug pax))
|
|
|
|
=. zip (weld zip `(list cove)`[[ost %give %reap cam] old])
|
2019-04-27 08:42:04 +03:00
|
|
|
?^(cam ap-pule ap-state)
|
|
|
|
::
|
|
|
|
:: +ap-poke: apply %poke.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-poke
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-poke
|
2019-04-27 08:42:04 +03:00
|
|
|
|= cag=cage
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
=^ cug ap-state (ap-find %poke p.cag ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
(ap-give %coup `(ap-suck "no poke arm for {(trip p.cag)}"))
|
|
|
|
:: ~& [%ap-poke dap p.cag cug]
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ tur ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
?. =(0 p.u.cug) q.cag
|
|
|
|
(slop (ap-term %tas p.cag) q.cag)
|
|
|
|
(ap-give %coup tur)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-lame: pour error.
|
|
|
|
::
|
|
|
|
++ ap-lame
|
|
|
|
|= [wut=@tas why=tang]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
=^ cug ap-state (ap-find /lame)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
2019-04-27 08:42:04 +03:00
|
|
|
=. why [>%ap-lame dap wut< (turn why |=(a=tank rose+[~ "! " ~]^[a]~))]
|
2016-11-24 07:25:07 +03:00
|
|
|
~> %slog.`rose+[" " "[" "]"]^(flop why)
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
|
|
|
=^ cam ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
!>([wut why])
|
|
|
|
?^ cam
|
|
|
|
=. why [>%ap-lame-lame< (turn u.cam |=(a/tank rose+[~ "! " ~]^[a]~))]
|
|
|
|
~> %slog.`rose+[" " "[" "]"]^(welp (flop why) leaf+"." (flop u.cam))
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
|
|
|
ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-misvale: broken vale.
|
|
|
|
::
|
|
|
|
++ ap-misvale
|
|
|
|
|= wir=wire
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-08 01:17:06 +03:00
|
|
|
~& [%ap-blocking-misvale wir]
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state(misvale (~(put in misvale) wir))
|
|
|
|
::
|
|
|
|
:: +ap-pour: generic take.
|
2016-11-04 04:35:47 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-pour
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-pour
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [pax=path vax=vase]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
?. &(?=([@ *] q.vax) ((sane %tas) -.q.vax))
|
2016-11-24 07:25:07 +03:00
|
|
|
(ap-lame %pour (ap-suck "pour: malformed card"))
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cug ap-state (ap-find [-.q.vax pax])
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
(ap-lame -.q.vax (ap-suck "pour: no {(trip -.q.vax)}: {<pax>}"))
|
|
|
|
=^ tel vel (~(slot wa vel) 3 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cam ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
%+ slop
|
|
|
|
!>(`path`(slag p.u.cug pax))
|
|
|
|
tel
|
|
|
|
?^ cam (ap-lame -.q.vax u.cam)
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-purr: unwrap take.
|
|
|
|
::
|
|
|
|
++ ap-purr
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-purr
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [wha=term pax=path cag=cage]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
=^ cug ap-state (ap-find [wha p.cag pax])
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
(ap-lame wha (ap-suck "{(trip wha)}: no {<`path`[p.cag pax]>}"))
|
|
|
|
=+ ^= arg ^- vase
|
|
|
|
%- slop
|
|
|
|
?: =(0 p.u.cug)
|
2019-05-29 01:37:42 +03:00
|
|
|
[!>(`path`pax) (ap-cage cag)]
|
2016-11-24 07:25:07 +03:00
|
|
|
[!>((slag (dec p.u.cug) `path`pax)) q.cag]
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ cam ap-state (ap-call q.u.cug arg)
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ cam (ap-lame q.u.cug u.cam)
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
|
|
|
::
|
|
|
|
:: +ap-pout: specific take.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-pout
|
|
|
|
|= [pax=path cuf=cuft]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?- -.cuf
|
|
|
|
$coup (ap-take q.q.pry %coup +.pax `!>(p.cuf))
|
|
|
|
$diff (ap-diff q.q.pry pax p.cuf)
|
|
|
|
$quit (ap-take q.q.pry %quit +.pax ~)
|
|
|
|
$reap (ap-take q.q.pry %reap +.pax `!>(p.cuf))
|
2018-10-03 21:36:45 +03:00
|
|
|
:: ???
|
|
|
|
$http-response !!
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-prep: install.
|
|
|
|
::
|
|
|
|
++ ap-prep
|
|
|
|
|= vux=(unit vase)
|
|
|
|
^- [(unit tang) _ap-state]
|
|
|
|
::
|
|
|
|
=^ gac ap-state (ap-prop vux)
|
2017-01-13 03:58:20 +03:00
|
|
|
:- gac
|
2019-04-27 08:42:04 +03:00
|
|
|
%= ap-state
|
2016-11-08 03:41:22 +03:00
|
|
|
misvale
|
2016-11-08 04:08:12 +03:00
|
|
|
~? !=(misvale *misvale-data) misvale-drop+misvale
|
2016-11-08 03:41:22 +03:00
|
|
|
*misvale-data :: new app might mean new marks
|
2018-11-25 01:20:22 +03:00
|
|
|
::
|
|
|
|
arms
|
|
|
|
~
|
2016-11-08 03:41:22 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
dub
|
|
|
|
:_(dub ?~(gac [%& dap ?~(vux %boot %bump) now] [%| u.gac]))
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-prop: install.
|
|
|
|
::
|
|
|
|
++ ap-prop
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-prop
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vux=(unit vase)
|
|
|
|
^- [(unit tang) _ap-state]
|
|
|
|
::
|
2019-01-18 08:37:34 +03:00
|
|
|
?. (ap-fond %prep)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ vux
|
2019-04-27 08:42:04 +03:00
|
|
|
`ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ [new=p:(slot 13 hav) old=p:(slot 13 u.vux)]
|
|
|
|
?. (~(nest ut p:(slot 13 hav)) %| p:(slot 13 u.vux))
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state `(ap-suck "prep mismatch"))
|
|
|
|
`ap-state(+13.q.hav +13.q.u.vux)
|
|
|
|
=^ tur ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call %prep
|
|
|
|
?~(vux !>(~) (slop !>(~) (slot 13 u.vux)))
|
2019-01-18 08:37:34 +03:00
|
|
|
?~ tur
|
2019-04-27 08:42:04 +03:00
|
|
|
`ap-state
|
|
|
|
:_(ap-state `u.tur)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-pule: silent delete.
|
|
|
|
::
|
|
|
|
++ ap-pule
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ wim=(~(get by sup.ged) ost)
|
2019-04-27 08:42:04 +03:00
|
|
|
?~ wim ap-state
|
|
|
|
%_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
sup.ged (~(del by sup.ged) ost)
|
|
|
|
qel.ged (~(del by qel.ged) ost)
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-pull: load delete.
|
|
|
|
::
|
|
|
|
++ ap-pull
|
|
|
|
^+ ap-state
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ wim=(~(get by sup.ged) ost)
|
2019-04-27 08:42:04 +03:00
|
|
|
?~ wim ap-state :: ~&(%ap-pull-none +)
|
2016-11-24 07:25:07 +03:00
|
|
|
=: sup.ged (~(del by sup.ged) ost)
|
|
|
|
qel.ged (~(del by qel.ged) ost)
|
|
|
|
==
|
2018-11-25 01:20:22 +03:00
|
|
|
=^ cug ..ap-pull (ap-find %pull q.u.wim)
|
2019-04-27 08:42:04 +03:00
|
|
|
?~ cug ap-state
|
|
|
|
=^ cam ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
!>((slag p.u.cug q.u.wim))
|
|
|
|
?^ cam (ap-lame q.u.cug u.cam)
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-kill: queue kill.
|
|
|
|
::
|
|
|
|
++ ap-kill
|
|
|
|
^+ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ~& [%ap-kill dap ost]
|
|
|
|
(ap-give:ap-pull %quit ~)
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-take: non-diff gall take.
|
|
|
|
::
|
|
|
|
++ ap-take
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-take
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [her=ship cog=term pax=path vux=(unit vase)]
|
|
|
|
^+ ap-state
|
|
|
|
::
|
|
|
|
=^ cug ap-state (ap-find cog pax)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ cug
|
|
|
|
:: ~& [%ap-take-none cog pax]
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
|
|
|
=^ cam ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ ap-call q.u.cug
|
|
|
|
=+ den=!>((slag p.u.cug pax))
|
|
|
|
?~(vux den (slop den u.vux))
|
|
|
|
?^ cam (ap-lame q.u.cug u.cam)
|
2019-04-27 08:42:04 +03:00
|
|
|
ap-state
|
|
|
|
::
|
|
|
|
:: +ap-safe: process move list.
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
++ ap-safe
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-safe
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^- [(each (list cove) tang) _ap-state]
|
|
|
|
::
|
|
|
|
?~ q.vax :_(ap-state [%& ~])
|
|
|
|
?@ q.vax :_(ap-state [%| (ap-suck "move: malformed list")])
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ hed vel (~(slot wa vel) 2 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ sud ap-state (ap-move hed)
|
|
|
|
?: ?=(%| -.sud) :_(ap-state sud)
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ tel vel (~(slot wa vel) 3 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ res ap-state $(vax tel)
|
|
|
|
:_ ap-state
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.res) res
|
2016-11-24 07:25:07 +03:00
|
|
|
[%& p.sud p.res]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-sake: handle result.
|
|
|
|
::
|
|
|
|
++ ap-sake
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-sake
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^- [(unit tang) _ap-state]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?: ?=(@ q.vax)
|
|
|
|
[`(ap-suck "sake: invalid product (atom)") +>.$]
|
|
|
|
=^ hed vel (~(slot wa vel) 2 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ muz ap-state (ap-safe hed)
|
|
|
|
?: ?=(%| -.muz) [`p.muz ap-state]
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ tel vel (~(slot wa vel) 3 vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
=^ sav ap-state (ap-save tel)
|
|
|
|
?: ?=(%| -.sav) [`p.sav ap-state]
|
2016-11-24 07:25:07 +03:00
|
|
|
:- ~
|
2019-04-27 08:42:04 +03:00
|
|
|
%_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
zip (weld (flop p.muz) zip)
|
2019-01-18 08:37:34 +03:00
|
|
|
hav p.sav
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-save: verify core.
|
|
|
|
::
|
|
|
|
++ ap-save
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %ap-save
|
2019-04-27 08:42:04 +03:00
|
|
|
|= vax=vase
|
|
|
|
^- [(each vase tang) _ap-state]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=^ gud vel (~(nest wa vel) p.hav p.vax)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_ ap-state
|
2016-11-24 07:25:07 +03:00
|
|
|
?. gud
|
|
|
|
[%| (ap-suck "invalid core")]
|
|
|
|
[%& vax]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-slam: virtual slam.
|
|
|
|
::
|
|
|
|
++ ap-slam
|
2016-11-24 07:25:07 +03:00
|
|
|
~/ %ap-slam
|
2019-04-27 08:42:04 +03:00
|
|
|
|= [cog=term gat=vase arg=vase]
|
|
|
|
^- [(each vase tang) _ap-state]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ ^= wyz %- mule |.
|
2017-09-19 01:32:35 +03:00
|
|
|
(~(mint wa vel) [%cell p.gat p.arg] [%cnsg [%$ ~] [%$ 2] [%$ 3] ~])
|
2018-03-19 06:54:47 +03:00
|
|
|
?: ?=(%| -.wyz)
|
2016-11-24 07:25:07 +03:00
|
|
|
%- =+ sam=(~(peek ut p.gat) %free 6)
|
|
|
|
(slog >%ap-slam-mismatch< ~(duck ut p.arg) ~(duck ut sam) ~)
|
2019-04-27 08:42:04 +03:00
|
|
|
:_(ap-state [%| (ap-suck "call: {<cog>}: type mismatch")])
|
|
|
|
:_ ap-state(vel +>.wyz)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ [typ nok]=+<.wyz
|
|
|
|
=+ ton=(mock [[q.gat q.arg] nok] ap-sled)
|
|
|
|
?- -.ton
|
|
|
|
$0 [%& typ p.ton]
|
|
|
|
$1 [%| (turn p.ton |=(a/* (smyt (path a))))]
|
|
|
|
$2 [%| p.ton]
|
|
|
|
==
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-sled: namespace view.
|
|
|
|
::
|
|
|
|
++ ap-sled (sloy ska)
|
|
|
|
::
|
|
|
|
:: +ap-suck: standard tang.
|
|
|
|
::
|
|
|
|
++ ap-suck
|
|
|
|
|= msg=tape
|
2016-11-24 07:25:07 +03:00
|
|
|
^- tang
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
[%leaf (weld "gall: {<dap>}: " msg)]~
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-term: atomic vase.
|
|
|
|
::
|
|
|
|
++ ap-term
|
|
|
|
|= [a=@tas b=@]
|
2016-11-24 07:25:07 +03:00
|
|
|
^- vase
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
[[%atom a `b] b]
|
|
|
|
::
|
2019-04-27 08:42:04 +03:00
|
|
|
:: +ap-vain: card to vane.
|
|
|
|
::
|
|
|
|
++ ap-vain
|
|
|
|
|= sep=@tas
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (unit @tas)
|
2019-04-27 08:42:04 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?+ sep ~& [%ap-vain sep]
|
|
|
|
~
|
2019-02-23 03:21:03 +03:00
|
|
|
%bonk `%a
|
2019-02-02 04:00:15 +03:00
|
|
|
%build `%f
|
|
|
|
%cash `%a
|
|
|
|
%conf `%g
|
|
|
|
%cred `%c
|
|
|
|
%crew `%c
|
|
|
|
%crow `%c
|
|
|
|
%deal `%g
|
|
|
|
%dirk `%c
|
|
|
|
%drop `%c
|
|
|
|
%flog `%d
|
|
|
|
%info `%c
|
|
|
|
%keep `%f
|
|
|
|
%kill `%f
|
|
|
|
%look `%j
|
2019-08-07 01:42:37 +03:00
|
|
|
%listen `%j
|
2019-02-02 04:00:15 +03:00
|
|
|
%merg `%c
|
|
|
|
%mont `%c
|
2019-08-08 03:36:25 +03:00
|
|
|
%moon `%j
|
2019-02-02 04:00:15 +03:00
|
|
|
%nuke `%a
|
|
|
|
%ogre `%c
|
|
|
|
%perm `%c
|
|
|
|
%rest `%b
|
2019-08-08 01:15:25 +03:00
|
|
|
%rekey `%j
|
2019-02-02 04:00:15 +03:00
|
|
|
%wait `%b
|
|
|
|
%want `%a
|
|
|
|
%warp `%c
|
2019-08-11 00:24:31 +03:00
|
|
|
%wash `%g
|
2019-02-02 04:00:15 +03:00
|
|
|
%wipe `%f
|
2019-02-12 01:41:50 +03:00
|
|
|
::
|
2019-07-04 03:08:23 +03:00
|
|
|
%request `%i
|
|
|
|
%cancel-request `%i
|
2019-07-04 02:01:45 +03:00
|
|
|
%serve `%e
|
|
|
|
%connect `%e
|
|
|
|
%disconnect `%e
|
|
|
|
%rule `%e
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
--
|
|
|
|
--
|
|
|
|
++ call :: request
|
|
|
|
~% %gall-call +> ~
|
2019-04-11 23:34:30 +03:00
|
|
|
|= [hen=duct hic=(hypo (hobo task:able))]
|
2018-12-01 22:31:54 +03:00
|
|
|
^+ [*(list move) ..^$]
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
2019-05-09 22:46:19 +03:00
|
|
|
=> .(q.hic ?.(?=($soft -.q.hic) q.hic ;;(task:able p.q.hic)))
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?- -.q.hic
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
%conf
|
|
|
|
::
|
|
|
|
=/ doc=dock p.q.hic
|
|
|
|
=/ syp=ship p.doc
|
|
|
|
?. =(our syp)
|
|
|
|
~& [%gall-not-ours syp]
|
2016-11-24 07:25:07 +03:00
|
|
|
[~ ..^$]
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
=/ confed
|
|
|
|
=/ initialised (mo-abed:mo hen)
|
|
|
|
=/ dud=dude q.doc
|
2019-04-12 18:51:04 +03:00
|
|
|
=/ des=(pair ship desk) q.q.hic
|
2019-04-11 23:34:30 +03:00
|
|
|
(mo-conf:initialised dud des)
|
|
|
|
::
|
|
|
|
mo-abet:confed
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
%deal
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
=< mo-abet
|
2018-12-13 04:34:25 +03:00
|
|
|
?. =(our q.p.q.hic) :: either to us
|
|
|
|
?> =(our p.p.q.hic) :: or from us
|
2018-12-13 01:14:47 +03:00
|
|
|
(mo-away:(mo-abed:mo hen) q.p.q.hic q.q.hic)
|
|
|
|
(mo-come:(mo-abed:mo hen) p.p.q.hic q.q.hic)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
%init
|
|
|
|
::
|
2018-12-13 04:34:25 +03:00
|
|
|
[~ ..^$(sys.mast.all hen)]
|
2019-02-01 10:37:00 +03:00
|
|
|
::
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
%sunk [~ ..^$]
|
|
|
|
::
|
|
|
|
::
|
|
|
|
::
|
|
|
|
%vega [~ ..^$]
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2019-04-11 23:34:30 +03:00
|
|
|
::
|
|
|
|
%west
|
|
|
|
::
|
2018-03-19 07:18:20 +03:00
|
|
|
?> ?=({?($ge $gh) @ ~} q.q.hic)
|
2018-12-13 01:02:37 +03:00
|
|
|
=* dap i.t.q.q.hic
|
|
|
|
=* him p.q.hic
|
2015-12-07 20:23:58 +03:00
|
|
|
?: ?=($ge i.q.q.hic)
|
2019-05-09 22:46:19 +03:00
|
|
|
=+ mes=;;({@ud rook} r.q.hic)
|
2015-06-23 00:02:27 +03:00
|
|
|
=< mo-abet
|
2018-12-13 01:14:47 +03:00
|
|
|
(mo-gawk:(mo-abed:mo hen) him dap mes)
|
2019-05-09 22:46:19 +03:00
|
|
|
=+ mes=;;({@ud roon} r.q.hic)
|
2016-11-24 07:25:07 +03:00
|
|
|
=< mo-abet
|
2018-12-13 01:14:47 +03:00
|
|
|
(mo-gawd:(mo-abed:mo hen) him dap mes)
|
2019-08-11 00:24:31 +03:00
|
|
|
::
|
|
|
|
%wash
|
|
|
|
=. bum.mast.all (~(run by bum.mast.all) |=(=seat seat(vel *worm)))
|
|
|
|
[~ ..^$]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$wegh
|
2018-12-13 04:34:25 +03:00
|
|
|
=/ =mass
|
2019-01-30 03:38:27 +03:00
|
|
|
:+ %gall %|
|
|
|
|
:~ foreign+&+sap.mast.all
|
2018-12-13 04:34:25 +03:00
|
|
|
:+ %blocked %|
|
|
|
|
(sort ~(tap by (~(run by wub.mast.all) |=(sofa [%& +<]))) aor)
|
|
|
|
:+ %active %|
|
|
|
|
(sort ~(tap by (~(run by bum.mast.all) |=(seat [%& +<]))) aor)
|
2019-01-30 03:38:27 +03:00
|
|
|
dot+&+all
|
2018-12-13 04:34:25 +03:00
|
|
|
==
|
2019-01-30 03:38:27 +03:00
|
|
|
=/ =move [hen %give %mass mass]
|
2018-12-13 04:34:25 +03:00
|
|
|
[[move ~] ..^$]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ load :: recreate vane
|
|
|
|
|= old/axle-n
|
|
|
|
^+ ..^$
|
2016-11-08 04:08:27 +03:00
|
|
|
?- -.old
|
2018-02-22 17:19:17 +03:00
|
|
|
$0 ..^$(all old)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ scry
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %gall-scry
|
2017-12-20 02:16:40 +03:00
|
|
|
|= {fur/(unit (set monk)) ren/@tas why/shop syd/desk lot/coin tyl/path}
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (unit (unit cage))
|
2018-03-19 06:54:47 +03:00
|
|
|
?. ?=(%& -.why) ~
|
2017-12-20 02:16:40 +03:00
|
|
|
=* his p.why
|
2016-11-24 07:25:07 +03:00
|
|
|
?: ?& =(%u ren)
|
|
|
|
=(~ tyl)
|
|
|
|
=([%$ %da now] lot)
|
2018-12-13 04:34:25 +03:00
|
|
|
=(our his)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2019-03-09 00:48:09 +03:00
|
|
|
``[%noun !>((~(has by bum.mast.all) syd))]
|
2018-12-13 04:34:25 +03:00
|
|
|
?. =(our his)
|
2016-11-24 07:25:07 +03:00
|
|
|
~
|
|
|
|
?. =([%$ %da now] lot)
|
|
|
|
~
|
2018-12-13 04:34:25 +03:00
|
|
|
?. (~(has by bum.mast.all) syd)
|
2016-11-24 07:25:07 +03:00
|
|
|
[~ ~]
|
|
|
|
?. ?=(^ tyl)
|
|
|
|
~
|
2018-12-13 04:34:25 +03:00
|
|
|
(mo-peek:mo-abed:mo syd high+`his ren tyl)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ stay :: save w+o cache
|
|
|
|
`axle`all
|
|
|
|
::
|
|
|
|
++ take :: response
|
2018-11-02 06:26:15 +03:00
|
|
|
~/ %gall-take
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {tea/wire hen/duct hin/(hypo sign-arvo)}
|
2018-12-01 22:31:54 +03:00
|
|
|
^+ [*(list move) ..^$]
|
2016-11-24 07:25:07 +03:00
|
|
|
~| [%gall-take tea]
|
2018-12-14 03:26:05 +03:00
|
|
|
?> ?=([?($sys $use) *] tea)
|
2018-12-13 01:14:47 +03:00
|
|
|
=+ mow=(mo-abed:mo hen)
|
2018-12-14 03:26:05 +03:00
|
|
|
?- i.tea
|
|
|
|
$sys mo-abet:(mo-cyst:mow t.tea q.hin)
|
|
|
|
$use mo-abet:(mo-cook:mow t.tea hin)
|
2016-11-04 21:19:02 +03:00
|
|
|
==
|
2016-11-24 07:25:07 +03:00
|
|
|
--
|