2018-02-03 08:23:22 +03:00
|
|
|
::::::
|
2016-11-24 07:25:07 +03:00
|
|
|
:: :: %ford, new execution control
|
2018-01-10 00:43:48 +03:00
|
|
|
!? 143
|
2016-11-24 07:25:07 +03:00
|
|
|
::::
|
2018-01-10 00:43:48 +03:00
|
|
|
|= pit=vase
|
2016-12-07 06:13:33 +03:00
|
|
|
=, ford
|
2016-12-02 22:34:07 +03:00
|
|
|
=, format
|
2016-11-24 07:25:07 +03:00
|
|
|
=> =~
|
|
|
|
:: structures
|
|
|
|
|%
|
2018-01-10 00:43:48 +03:00
|
|
|
+= heel path :: functional ending
|
|
|
|
+= move [p=duct q=(wind note gift:able)] :: local move
|
|
|
|
+= note :: out request $->
|
|
|
|
$% $: %c :: to %clay
|
|
|
|
$% [%warp p=sock q=riff:clay] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$: %f :: to %ford
|
|
|
|
$% [%exec p=@p q=(unit bilk)] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$: %g :: to %gall
|
|
|
|
$% [%deal p=sock q=cush:gall] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == == ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= sign :: in result $<-
|
|
|
|
$% $: %c :: by %clay
|
|
|
|
$% [%writ p=riot:clay] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$: %f :: by %ford
|
|
|
|
$% [%made p=@uvH q=gage] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$: %g :: by %gall
|
|
|
|
$% [%unto p=cuft:gall] ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== == == ::
|
|
|
|
-- ::
|
|
|
|
|% :: structures
|
2018-05-04 03:59:10 +03:00
|
|
|
+= axle :: all %ford state
|
|
|
|
$: %3 :: version for update
|
|
|
|
pol=(map ship baby) ::
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= baby :: state by ship
|
|
|
|
$: tad=[p=@ud q=(map @ud task)] :: tasks by number
|
|
|
|
dym=(map duct @ud) :: duct to task number
|
|
|
|
gaf=nozzle :: product to part
|
|
|
|
jav=(map * calx) :: cache
|
|
|
|
deh=deps :: dephash definitions
|
|
|
|
sup=(jug @uvH duct) :: hash listeners
|
|
|
|
out=(set [beam care:clay]) :: listening beams
|
2018-01-09 01:48:22 +03:00
|
|
|
== ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= deps ::
|
|
|
|
$: def=(map @uvH (set dent)) :: hash obligations
|
|
|
|
bak=(jug dent @uvH) :: update to hash
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
++ bolt :: gonadic edge
|
2018-01-10 00:43:48 +03:00
|
|
|
|* a=mold :: product clam
|
2018-02-11 08:24:22 +03:00
|
|
|
$~ [*cafe [%0 ~ *a]] ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$: p=cafe :: cache
|
2016-11-24 07:25:07 +03:00
|
|
|
$= q ::
|
2018-01-10 00:43:48 +03:00
|
|
|
$% [$0 p=(set dent) q=a] :: depends+product
|
|
|
|
[$1 p=(set [van=vane ren=care:clay bem=beam tan=tang])] :: blocks
|
|
|
|
[$2 p=(set dent) q=tang] :: depends+error
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
== ::
|
2018-01-04 05:47:15 +03:00
|
|
|
:: ::
|
2018-02-11 08:24:22 +03:00
|
|
|
++ burg :: gonadic rule
|
2018-01-10 00:43:48 +03:00
|
|
|
|* [a=mold b=mold] :: from and to
|
|
|
|
$-([c=cafe d=a] (bolt b)) ::
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= cafe :: live cache
|
2018-02-11 08:24:22 +03:00
|
|
|
$~ [~ ~ [~ ~] [~ ~]]
|
2018-01-10 00:43:48 +03:00
|
|
|
$: p=(set calx) :: used
|
|
|
|
q=(map * calx) :: cache
|
|
|
|
r=deps :: depends
|
|
|
|
s=nozzle :: product to part
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
|
|
|
:: ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= calm :: cache metadata
|
|
|
|
$: dep=(set dent) :: dependencies
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= calx :: concrete cache line
|
|
|
|
$% [%hood p=calm q=(pair beam cage) r=hood] :: parse
|
|
|
|
[%boil p=calm q=(trel coin beam beam) r=vase] :: execute
|
|
|
|
[%load p=calm q=(pair mark beam) r=(unit vase)] :: load
|
|
|
|
[%path p=calm q=beam r=(unit beam)] :: -to/ transformation
|
|
|
|
[%slit p=calm q=[p=type q=type] r=type] :: slam type
|
|
|
|
[%slim p=calm q=[p=type q=hoon] r=(pair type nock)] :: mint
|
|
|
|
[%slap p=calm q=[p=vase q=hoon] r=vase] :: compute
|
|
|
|
[%slam p=calm q=[p=vase q=vase] r=vase] :: compute
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= nozzle :: bidirectional deps
|
|
|
|
$: sub=(jug dent dent) :: subcomponents
|
|
|
|
sup=(jug dent dent) :: downstream builds
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
2018-01-10 00:43:48 +03:00
|
|
|
+= dent :: individual dep
|
|
|
|
$% [%beam bem=beam ren=care:clay]
|
|
|
|
[%boil bem=beam bom=beam arg=coin]
|
|
|
|
[%load bem=beam mar=mark]
|
|
|
|
==
|
|
|
|
+= task :: problem in progress
|
|
|
|
$: nah=duct :: cause
|
|
|
|
[bek=beak kas=silk] :: problem
|
|
|
|
keg=(map (pair term beam) cage) :: block results
|
|
|
|
kig=(set (trel vane care:clay beam)) :: blocks
|
2016-11-24 07:25:07 +03:00
|
|
|
== ::
|
2018-01-10 00:43:48 +03:00
|
|
|
+= gagl (list (pair gage gage)) ::
|
|
|
|
+= vane ?(%a %b %c %d %e %f %g) ::
|
2016-11-24 07:25:07 +03:00
|
|
|
-- ::
|
2018-01-04 05:47:15 +03:00
|
|
|
|% :: caching
|
|
|
|
++ ca ::
|
|
|
|
|%
|
|
|
|
++ val :: reduce calx
|
2018-01-10 21:47:43 +03:00
|
|
|
|* [sem=@tas cax=calx]
|
2018-01-04 05:47:15 +03:00
|
|
|
?+ sem !! :: a typesystem hack
|
2018-01-10 21:47:43 +03:00
|
|
|
%hood ?>(?=(%hood -.cax) r.cax)
|
|
|
|
%boil ?>(?=(%boil -.cax) r.cax)
|
|
|
|
%load ?>(?=(%load -.cax) r.cax)
|
|
|
|
%path ?>(?=(%path -.cax) r.cax)
|
|
|
|
%slap ?>(?=(%slap -.cax) r.cax)
|
|
|
|
%slam ?>(?=(%slam -.cax) r.cax)
|
|
|
|
%slim ?>(?=(%slim -.cax) r.cax)
|
|
|
|
%slit ?>(?=(%slit -.cax) r.cax)
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ get :: cache lookup
|
2018-01-10 00:43:48 +03:00
|
|
|
|= [a=cafe b=@tas c=*] ::
|
|
|
|
^- [(unit calx) cafe] ::
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ d=(~(get by q.a) [b c]) :: calx key is [- q]
|
|
|
|
?~ d [~ a] ::
|
|
|
|
[d a(p (~(put in p.a) u.d))] ::
|
|
|
|
:: ::
|
|
|
|
++ put :: cache install
|
2018-01-10 21:47:43 +03:00
|
|
|
|= [a=cafe b=calx] ::
|
2018-01-04 05:47:15 +03:00
|
|
|
^- cafe ::
|
|
|
|
a(q (~(put by q.a) [- q]:b b)) :: calx key is [- q]
|
|
|
|
--
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ na :: nozzle operations
|
2018-01-10 21:47:43 +03:00
|
|
|
|_ a=nozzle
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
|
|
|
++ put
|
2018-01-10 21:47:43 +03:00
|
|
|
|= [k=dent v=dent] ^+ a
|
2018-01-04 05:47:15 +03:00
|
|
|
[(~(put ju sub.a) k v) (~(put ju sup.a) v k)]
|
|
|
|
::
|
|
|
|
++ del
|
2018-01-10 21:47:43 +03:00
|
|
|
|= [k=dent v=dent] ^+ a
|
2018-01-04 05:47:15 +03:00
|
|
|
[(~(del ju sub.a) k v) (~(del ju sup.a) v k)]
|
|
|
|
::
|
|
|
|
++ add-sub
|
2018-01-10 21:47:43 +03:00
|
|
|
|= [k=dent dez=(set dent)] ^+ a
|
2018-01-04 05:47:15 +03:00
|
|
|
=/ liz ~(tap in dez)
|
|
|
|
|- ^+ a
|
|
|
|
?~ liz a
|
|
|
|
$(liz t.liz, a (put k i.liz))
|
2018-01-10 04:34:28 +03:00
|
|
|
::
|
2018-01-26 02:42:33 +03:00
|
|
|
++ downstream-dents
|
|
|
|
:> obtain all dents that depend on any of the dents in the sample.
|
|
|
|
:>
|
|
|
|
:> traverses the nozzle. product does not include the supplied dents
|
|
|
|
:> themselves.
|
|
|
|
|= des=(set dent) ^- (set dent)
|
|
|
|
%- ~(rep in des)
|
|
|
|
|= [den=dent dos=(set dent)] ^+ des
|
|
|
|
=? dos !?=(%beam -.den)
|
|
|
|
(~(put in dos) den)
|
|
|
|
(~(uni in dos) ^$(des (~(get ju sup.a) den)))
|
|
|
|
::
|
|
|
|
++ upstream-dents
|
|
|
|
:> obtain all dents upon which any of the dents in the sample depend.
|
|
|
|
:>
|
|
|
|
:> traverses the nozzle, gathering all direct and indirect dependencies.
|
|
|
|
:> dents in the sample may also appear in the product.
|
|
|
|
|= arg=(set dent) ^- (set dent)
|
|
|
|
=/ des arg
|
|
|
|
|- ^- (set dent)
|
|
|
|
%- ~(rep in des)
|
|
|
|
|= [den=dent dos=(set dent)] ^+ des
|
|
|
|
=? dos !(~(has in arg) den) (~(put in dos) den)
|
|
|
|
(~(uni in dos) ^$(des (~(get ju sub.a) den)))
|
|
|
|
::
|
2018-01-10 04:34:28 +03:00
|
|
|
++ beam-dents-in-dir
|
|
|
|
:> find all %beam dents inside the folder {bem} with care {ren}.
|
2018-01-19 00:52:23 +03:00
|
|
|
|= folder=[%beam bem=beam ren=care:clay]
|
2018-01-10 04:34:28 +03:00
|
|
|
^- (set dent)
|
2018-01-19 00:52:23 +03:00
|
|
|
?> =(%z ren.folder) :: only %z supported
|
2018-01-10 04:34:28 +03:00
|
|
|
::
|
2018-01-26 02:42:33 +03:00
|
|
|
~? !(~(has by sup.a) folder) :: state should have bem
|
2018-01-19 00:52:23 +03:00
|
|
|
missing-folder+[folder ~(key by sup.a)]
|
2018-01-17 01:19:40 +03:00
|
|
|
::
|
2018-01-26 02:42:33 +03:00
|
|
|
=- ~? !(~(has in -) folder) :: result must keep bem
|
2018-01-19 00:52:23 +03:00
|
|
|
result-missing-folder+[folder from=-]
|
2018-01-17 01:19:40 +03:00
|
|
|
-
|
|
|
|
::
|
2018-01-10 04:34:28 +03:00
|
|
|
%- silt
|
|
|
|
%+ skim ~(tap in ~(key by sup.a))
|
|
|
|
|= den=dent
|
|
|
|
::
|
|
|
|
:: match the dent tag and beak exactly, and match the tops of the spurs
|
2018-01-19 00:52:23 +03:00
|
|
|
.= folder
|
|
|
|
den(s.bem (flop (scag (lent s.bem.folder) (flop s.bem.den))))
|
2018-01-04 05:47:15 +03:00
|
|
|
--
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ pin-dephash
|
2018-01-10 21:47:43 +03:00
|
|
|
:> compute the hash of a set of dents and store it in a deps.
|
|
|
|
:>
|
|
|
|
:> produces a pair of the hash and mutated deps.
|
|
|
|
|= [sep=(set dent) deh=deps]
|
2018-01-04 05:47:15 +03:00
|
|
|
^+ [*@uvH deh]
|
2018-01-09 01:48:22 +03:00
|
|
|
?: =(~ sep) [0v0 deh]
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ hap=(sham sep)
|
2018-01-09 01:48:22 +03:00
|
|
|
:+ hap
|
|
|
|
(~(put by def.deh) hap sep)
|
|
|
|
%- ~(gas ju bak.deh)
|
2018-01-10 21:47:43 +03:00
|
|
|
(turn ~(tap in sep) |=(a=dent [a hap]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ de-dup-subdirs
|
2018-01-09 05:00:42 +03:00
|
|
|
:: filter out %beam dents whose paths are contained within
|
|
|
|
:: other paths in the set, to reduce the number of
|
|
|
|
:: %z requests and responses.
|
|
|
|
|= sep/(set [beam care:clay]) ^+ sep
|
2018-01-04 05:47:15 +03:00
|
|
|
%- silt
|
|
|
|
%+ skim ~(tap in sep)
|
2018-01-09 05:00:42 +03:00
|
|
|
|= a=[bem=beam ren=care:clay] ^- ?
|
|
|
|
?~ s.bem.a &
|
|
|
|
=/ above a(s.bem t.s.bem.a, ren %z)
|
|
|
|
&(!(~(has in sep) above) $(a above))
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
|
|
|
++ bo :: bolt operations
|
|
|
|
|%
|
|
|
|
++ to-gage :: wrap vase
|
|
|
|
|= a/(bolt vase) ^- (bolt gage)
|
|
|
|
(tug a (with |=(a/vase [%& %noun a])))
|
|
|
|
::
|
|
|
|
++ to-cage :: unwrap gage to cage
|
|
|
|
|= gag/(bolt gage) ^- (bolt cage)
|
|
|
|
%+ tug gag
|
|
|
|
|= {a/cafe b/gage}
|
|
|
|
?- -.b
|
|
|
|
$tabl (err:bo a >%bad-marc< ~)
|
2018-03-19 20:43:25 +03:00
|
|
|
%| (err:bo a p.b)
|
|
|
|
%& (new:bo a p.b)
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ catch-error
|
|
|
|
|= a/(bolt gage) ^- (bolt gage) :: TODO: (each * tang)
|
|
|
|
?. ?=($2 -.q.a) a
|
|
|
|
[p.a [%0 p.q.a `gage`[%| q.q.a]]]
|
|
|
|
::
|
|
|
|
++ new |* {a/cafe b/*} :: bolt from data
|
|
|
|
[p=`cafe`a q=[%0 p=*(set dent) q=b]]
|
|
|
|
::
|
|
|
|
++ err |= {a/cafe b/tang} :: bolt from error
|
|
|
|
[p=a q=[%2 p=*(set dent) q=b]]
|
|
|
|
::
|
|
|
|
++ add-dep
|
|
|
|
|* {a/dent b/(bolt)}
|
|
|
|
?: ?=($1 -.q.b) b
|
|
|
|
=. p.q.b (~(put in p.q.b) a)
|
|
|
|
b
|
|
|
|
::
|
|
|
|
++ under-dep :: link deps with
|
|
|
|
|* {a/dent b/(bolt)} :: a as current dep
|
|
|
|
?: ?=($1 -.q.b) b :: and links a to
|
|
|
|
=: p.q.b (sy a ~) :: s.p.b so a depends
|
|
|
|
s.p.b (~(add-sub na s.p.b) a p.q.b)
|
|
|
|
==
|
|
|
|
b
|
|
|
|
::
|
|
|
|
++ with |* a/_|=(* +<) :: bolt lift (fmap)
|
|
|
|
|* {cafe _,.+<.a}
|
|
|
|
(new +<- (a +<+))
|
|
|
|
::
|
|
|
|
::+|
|
|
|
|
::
|
|
|
|
++ pin
|
|
|
|
|* hoc/(bolt) ^+ [*@uvH hoc]
|
|
|
|
?: ?=($1 -.q.hoc) [*@uvH hoc]
|
|
|
|
=^ dep r.p.hoc (pin-dephash [p.q r.p]:hoc)
|
|
|
|
[dep hoc]
|
|
|
|
::
|
|
|
|
++ with-cache :: cache a result
|
|
|
|
|* sem/@tas :: calx type
|
|
|
|
|* {hoc/(bolt) fun/(burg)}
|
|
|
|
?- -.q.hoc
|
|
|
|
$2 hoc
|
|
|
|
$1 hoc
|
|
|
|
$0
|
|
|
|
=^ cux p.hoc (get:ca p.hoc sem q.q.hoc)
|
|
|
|
?^ cux
|
|
|
|
[p=p.hoc q=[%0 p=dep.p.u.cux q=(val:ca sem u.cux)]]
|
|
|
|
=+ nuf=(tug hoc fun)
|
|
|
|
?- -.q.nuf
|
|
|
|
$2 nuf
|
|
|
|
$1 nuf
|
|
|
|
$0
|
|
|
|
=/ inf
|
|
|
|
?+ sem [sem `@p`(mug q.q.hoc)]
|
|
|
|
$boil
|
|
|
|
=+ `{arg/coin bem/beam bom/beam}`q.q.hoc
|
|
|
|
[%boil `@p`(mug arg) (en-beam bem) (en-beam bom)]
|
|
|
|
$load
|
|
|
|
=+ `{for/mark bem/beam}`q.q.hoc
|
|
|
|
[%load (en-beam bem) for]
|
|
|
|
==
|
|
|
|
:: ~& [%caching inf]
|
|
|
|
:- p=(put:ca p.nuf `calx`[sem `calm`p.q.nuf q.q.hoc q.q.nuf])
|
|
|
|
q=q.nuf
|
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ cell :: :: bolt together
|
|
|
|
|* {hoc/(bolt) fun/(burg)}
|
|
|
|
?- -.q.hoc
|
|
|
|
$0 =+ nuf=(fun p.hoc +<+.fun)
|
|
|
|
:- p=p.nuf
|
|
|
|
^= q
|
|
|
|
?- -.q.nuf
|
|
|
|
$0 [%0 p=(~(uni in p.q.hoc) p.q.nuf) q=[q.q.hoc q.q.nuf]]
|
|
|
|
$1 q.nuf
|
|
|
|
$2 q.nuf
|
|
|
|
==
|
|
|
|
$1 =+ nuf=(fun p.hoc +<+.fun)
|
|
|
|
:- p=p.nuf
|
|
|
|
^= q
|
|
|
|
?- -.q.nuf
|
|
|
|
$0 q.hoc
|
|
|
|
$1 [%1 p=(~(uni in p.q.nuf) p.q.hoc)]
|
|
|
|
$2 q.nuf
|
|
|
|
==
|
|
|
|
$2 hoc
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ admit :: error caption
|
|
|
|
|* {cyt/$@(term (trap tank)) hoc/(bolt)}
|
|
|
|
?. ?=($2 -.q.hoc) hoc
|
|
|
|
[p=p.hoc q=[%2 p=p.q.hoc q=[?^(cyt *cyt >`@tas`cyt<) q.q.hoc]]]
|
|
|
|
::
|
|
|
|
++ tug :: bolt along
|
|
|
|
|* {hoc/(bolt) fun/(burg)}
|
|
|
|
?- -.q.hoc
|
|
|
|
$1 hoc
|
|
|
|
$2 hoc
|
|
|
|
$0 =+ nuf=(fun p.hoc q.q.hoc)
|
|
|
|
:- p=p.nuf
|
|
|
|
^= q
|
|
|
|
?- -.q.nuf
|
|
|
|
$1 q.nuf
|
|
|
|
$2 [%2 p=(~(uni in `_p.q.nuf`p.q.hoc) p.q.nuf) q=q.q.nuf]
|
|
|
|
$0 [%0 p=(~(uni in `_p.q.nuf`p.q.hoc) p.q.nuf) q=q.q.nuf]
|
|
|
|
== ==
|
|
|
|
::
|
|
|
|
++ catch :: bolt fallback
|
|
|
|
|* {hoc/(bolt) fun/$-(cafe (bolt))} :: TODO: {cafe tang}
|
|
|
|
?- -.q.hoc :: & use ++catch-error
|
|
|
|
$1 hoc
|
|
|
|
$0 hoc
|
|
|
|
$2 =+ nuf=(fun p.hoc)
|
|
|
|
:- p=p.nuf
|
|
|
|
^= q
|
|
|
|
?- -.q.nuf
|
|
|
|
$1 q.nuf
|
|
|
|
$0 [%0 p=(~(uni in `_p.q.nuf`p.q.hoc) p.q.nuf) q=q.q.nuf]
|
|
|
|
$2 =. q.q.nuf (welp q.q.nuf q.q.hoc)
|
|
|
|
[%2 p=(~(uni in `_p.q.nuf`p.q.hoc) p.q.nuf) q=q.q.nuf]
|
|
|
|
== ==
|
|
|
|
::
|
|
|
|
++ from-toon :: toon to bolt
|
|
|
|
|= cof/cafe
|
|
|
|
|* {ton/toon fun/gate} :: TODO use tug:bo
|
|
|
|
:- p=cof
|
|
|
|
^= q
|
|
|
|
?- -.ton
|
|
|
|
$2 [%2 p=*(set dent) q=p.ton]
|
|
|
|
$0 [%0 p=*(set dent) q=(fun p.ton)]
|
|
|
|
$1 :: ~& [%from-toon:bo-need ((list path) p.ton)]
|
|
|
|
=- ?- -.faw :: TODO =;
|
2018-03-19 20:43:25 +03:00
|
|
|
%& :- %1
|
2018-01-04 05:47:15 +03:00
|
|
|
^= p
|
|
|
|
%- silt
|
|
|
|
%+ turn p.faw
|
|
|
|
|=(a/{vane care:clay beam} [-.a +<.a +>.a *tang])
|
2018-03-19 20:43:25 +03:00
|
|
|
%| [%2 p=*(set dent) q=p.faw]
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
^= faw
|
|
|
|
|- ^- (each (list (trel vane care:clay beam)) tang)
|
|
|
|
?~ p.ton [%& ~]
|
|
|
|
=+ nex=$(p.ton t.p.ton)
|
2018-03-19 20:43:25 +03:00
|
|
|
=+ err=|=(a/tape [%| leaf+a ?:(?=(%& -.nex) ~ p.nex)])
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ pax=(path i.p.ton)
|
|
|
|
?~ pax (err "blocking empty")
|
|
|
|
=+ ren=((soft care:clay) (rsh 3 1 i.pax))
|
|
|
|
?~ ren
|
|
|
|
(err "blocking not care: {<i.pax>}")
|
|
|
|
=+ zis=(de-beam t.pax)
|
|
|
|
?~ zis
|
|
|
|
(err "blocking not beam: {<t.pax>}")
|
|
|
|
?: ?=($g (end 3 1 i.pax))
|
|
|
|
?- -.nex
|
2018-03-19 20:43:25 +03:00
|
|
|
%& [%& [%g u.ren u.zis] p.nex]
|
|
|
|
%| nex
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
?: ?=($c (end 3 1 i.pax))
|
|
|
|
?- -.nex
|
2018-03-19 20:43:25 +03:00
|
|
|
%& [%& [%c u.ren u.zis] p.nex]
|
|
|
|
%| nex
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
(err "blocking bad vane")
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ from-each :: each to bolt
|
|
|
|
|= cof/cafe :: move to top section
|
|
|
|
|* {tod/(each * tang) fun/gate}
|
|
|
|
%+ (from-toon cof)
|
|
|
|
?- -.tod
|
2018-03-19 20:43:25 +03:00
|
|
|
%& [%0 p=p.tod]
|
|
|
|
%| [%2 p=p.tod]
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
fun
|
|
|
|
::
|
|
|
|
++ some-in-map
|
|
|
|
|* fun/(burg knot (unit))
|
2018-02-11 08:24:22 +03:00
|
|
|
=+ res=|=(* (need [?+(-.q !! $0 q.q)]:*fun))
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ marv=(map knot res)
|
2018-03-19 07:18:20 +03:00
|
|
|
|= {cof/cafe sud/(map knot ~)} ^- (bolt marv)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ sud (new cof ~)
|
|
|
|
%. [cof sud]
|
|
|
|
;~ tug
|
|
|
|
;~ cell
|
|
|
|
|=({cof/cafe _sud} ^$(cof cof, sud l))
|
|
|
|
|=({cof/cafe _sud} ^$(cof cof, sud r))
|
2018-03-19 07:18:20 +03:00
|
|
|
|= {cof/cafe {dir/@ta ~} ^}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug (fun cof dir)
|
|
|
|
(with (lift |*(* [dir +<])))
|
|
|
|
==
|
|
|
|
%- with
|
2018-02-11 08:24:22 +03:00
|
|
|
|= {lam/marv ram/marv nod/$~(~ (unit {knot res}))}
|
2018-01-04 05:47:15 +03:00
|
|
|
?^(nod [u.nod lam ram] (~(uni by lam) ram))
|
|
|
|
==
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ fair :: hood parsing rule
|
|
|
|
|= bem/beam
|
|
|
|
?> ?=({$ud $0} r.bem) :: XX sentinel
|
|
|
|
=+ vez=(vang & (en-beam bem))
|
|
|
|
=< hood
|
|
|
|
|%
|
|
|
|
++ case :: %clay revision
|
|
|
|
%+ sear
|
|
|
|
|= a/coin ^- (unit ^case)
|
|
|
|
?. ?=({$$ ^case} a) ~
|
|
|
|
[~ u=p.a]
|
|
|
|
nuck:so
|
|
|
|
::
|
2018-03-19 06:38:01 +03:00
|
|
|
++ mota ;~(pfix vat mota:vez) :: atom odor
|
2018-01-04 05:47:15 +03:00
|
|
|
++ hath (sear plex (stag %clsg poor)):vez :: hood path
|
2018-03-14 07:36:10 +03:00
|
|
|
++ have (sear de-beam ;~(pfix net hath)) :: hood beam
|
2018-01-04 05:47:15 +03:00
|
|
|
++ hith :: static path
|
|
|
|
=> vez
|
2018-03-14 07:36:10 +03:00
|
|
|
(sear plex (stag %clsg (more net hasp)))
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
|
|
|
++ hive :: late-bound path
|
2018-03-14 07:36:10 +03:00
|
|
|
;~ pfix net
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ cook |=(a/hops a)
|
|
|
|
=> vez
|
|
|
|
;~ plug
|
|
|
|
(stag ~ gash)
|
|
|
|
;~(pose (stag ~ ;~(pfix cen porc)) (easy ~))
|
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ hood
|
|
|
|
%+ ifix [gay gay]
|
|
|
|
;~ plug
|
|
|
|
;~ pose
|
2018-03-14 07:36:10 +03:00
|
|
|
(ifix [;~(plug net wut gap) gap] dem)
|
2018-01-04 05:47:15 +03:00
|
|
|
(easy zuse)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
;~ pose
|
2018-03-14 07:36:10 +03:00
|
|
|
(ifix [;~(plug net hep gap) gap] (most ;~(plug com gaw) hoof))
|
2018-01-04 05:47:15 +03:00
|
|
|
(easy ~)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
;~ pose
|
2018-03-14 07:36:10 +03:00
|
|
|
(ifix [;~(plug net lus gap) gap] (most ;~(plug com gaw) hoof))
|
2018-01-04 05:47:15 +03:00
|
|
|
(easy ~)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
(star ;~(sfix horn gap))
|
|
|
|
(most gap hoop)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ hoot
|
|
|
|
;~ plug
|
|
|
|
sym
|
|
|
|
%- punt
|
2018-03-14 07:36:10 +03:00
|
|
|
;~(pfix net ;~((glue net) case ship))
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ ship ;~(pfix sig fed:ag)
|
|
|
|
++ hoof
|
|
|
|
%+ cook |=(a/^hoof a)
|
|
|
|
;~ pose
|
|
|
|
(stag %| ;~(pfix tar hoot))
|
|
|
|
(stag %& hoot)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ hoop
|
|
|
|
;~ pose
|
2018-03-14 07:36:10 +03:00
|
|
|
(stag %| ;~(pfix ;~(plug net net gap) have))
|
2018-01-04 05:47:15 +03:00
|
|
|
(stag %& tall:vez)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ horn :: horn parser
|
|
|
|
=< apex
|
|
|
|
=| tol/? :: allow tall form
|
|
|
|
|%
|
|
|
|
++ apex
|
|
|
|
%+ knee *^horn |. ~+
|
2018-03-14 07:36:10 +03:00
|
|
|
;~ pfix net
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ pose
|
|
|
|
(stag %fssg ;~(pfix sig hoon:read)) :: /~ hoon by hand
|
|
|
|
(stag %fsbc ;~(pfix buc hoon:read)) :: /$ extra arguments
|
|
|
|
(stag %fsbr ;~(pfix bar alts:read)) :: /| or (options)
|
|
|
|
(stag %fshx ;~(pfix hax horn:read)) :: /# insert dephash
|
|
|
|
(stag %fsts ;~(pfix tis name:read)) :: /= apply face
|
|
|
|
(stag %fsdt ;~(pfix dot list:read)) :: /. list
|
|
|
|
(stag %fscm ;~(pfix com case:read)) :: /, switch by path
|
|
|
|
(stag %fscn ;~(pfix cen horn:read)) :: /% propagate args
|
2018-03-14 07:36:10 +03:00
|
|
|
(stag %fspm ;~(pfix pad pipe:read)) :: /& translates
|
2018-01-04 05:47:15 +03:00
|
|
|
(stag %fscb ;~(pfix cab horn:read)) :: /_ homo map
|
2018-03-14 07:36:10 +03:00
|
|
|
(stag %fssm ;~(pfix mic gate:read)) :: /; operate on
|
2018-01-04 05:47:15 +03:00
|
|
|
(stag %fscl ;~(pfix col path:read)) :: /: relative to
|
|
|
|
(stag %fskt ;~(pfix ket cast:read)) :: /^ cast
|
2018-03-14 07:36:10 +03:00
|
|
|
(stag %fszp ;~(pfix zap ;~(sfix sym net))) :: /!mark/ run to mark
|
|
|
|
(stag %fszy ;~(sfix sym net)) :: /mark/ render file
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ rail :: wide or tall
|
|
|
|
|* {wid/rule tal/rule}
|
|
|
|
?. tol wid :: !tol -> only wide
|
|
|
|
;~(pose wid tal)
|
|
|
|
::
|
|
|
|
++ read
|
|
|
|
|% ++ hoon
|
|
|
|
%+ rail
|
2018-03-14 07:36:10 +03:00
|
|
|
(ifix [lac rac] (stag %cltr (most ace wide:vez)))
|
2018-01-04 05:47:15 +03:00
|
|
|
;~(pfix gap tall:vez)
|
|
|
|
::
|
|
|
|
++ alts
|
|
|
|
%+ rail
|
2018-03-14 07:36:10 +03:00
|
|
|
(ifix [lit rit] (most ace horn))
|
2018-01-04 05:47:15 +03:00
|
|
|
;~(sfix (star horn) gap duz)
|
|
|
|
::
|
|
|
|
++ horn
|
|
|
|
%+ rail
|
|
|
|
apex(tol |)
|
|
|
|
;~(pfix gap apex)
|
|
|
|
::
|
|
|
|
++ name
|
|
|
|
%+ rail
|
|
|
|
;~(plug sym ;~(pfix tis horn))
|
|
|
|
;~(pfix gap ;~(plug sym horn))
|
|
|
|
::
|
|
|
|
++ list
|
|
|
|
%+ rail fail
|
|
|
|
;~(sfix (star horn) gap duz)
|
|
|
|
::
|
|
|
|
++ case
|
|
|
|
%+ rail fail
|
|
|
|
=- ;~(sfix (star -) gap duz)
|
2018-03-14 07:36:10 +03:00
|
|
|
;~(pfix gap net ;~(plug hith horn))
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
|
|
|
++ pipe
|
|
|
|
%+ rail
|
2018-03-14 07:36:10 +03:00
|
|
|
;~(plug (plus ;~(sfix sym pad)) horn)
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ (cook |=(a/term [a ~]) sym)
|
|
|
|
;~(pfix gap ;~(plug - horn))
|
|
|
|
::
|
|
|
|
++ gate
|
|
|
|
%+ rail
|
2018-03-14 07:36:10 +03:00
|
|
|
;~(plug ;~(sfix wide:vez mic) horn)
|
2018-01-04 05:47:15 +03:00
|
|
|
;~(pfix gap ;~(plug tall:vez horn))
|
|
|
|
::
|
|
|
|
++ path
|
|
|
|
%+ rail
|
|
|
|
;~(plug ;~(sfix hive col) horn)
|
|
|
|
;~(pfix gap ;~(plug hive horn))
|
|
|
|
::
|
|
|
|
++ cast
|
|
|
|
%+ rail
|
|
|
|
;~(plug ;~(sfix wide:vez ket) horn)
|
|
|
|
;~(pfix gap ;~(plug tall:vez horn))
|
|
|
|
--
|
|
|
|
--
|
|
|
|
--
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ lark :: filter arch names
|
|
|
|
|= {wox/$-(knot (unit @)) arc/arch}
|
|
|
|
^- (map @ knot)
|
|
|
|
%- ~(gas by *(map @ knot))
|
|
|
|
=| rac/(list (pair @ knot))
|
|
|
|
|- ^+ rac
|
|
|
|
?~ dir.arc rac
|
|
|
|
=. rac $(dir.arc l.dir.arc, rac $(dir.arc r.dir.arc))
|
|
|
|
=+ gib=(wox p.n.dir.arc)
|
|
|
|
?~(gib rac [[u.gib p.n.dir.arc] rac])
|
|
|
|
::
|
|
|
|
++ tack :: fold path to term
|
|
|
|
|= a/{i/term t/(list term)} ^- term
|
|
|
|
(rap 3 |-([i.a ?~(t.a ~ ['-' $(a t.a)])]))
|
|
|
|
::
|
|
|
|
++ tear :: split term
|
|
|
|
=- |=(a/term `(list term)`(fall (rush a (most hep sym)) /[a]))
|
|
|
|
sym=(cook crip ;~(plug low (star ;~(pose low nud))))
|
|
|
|
::
|
|
|
|
++ za :: per event
|
2018-02-06 03:25:58 +03:00
|
|
|
=/ dbg |
|
2016-11-24 07:25:07 +03:00
|
|
|
=| $: $: our/ship :: computation owner
|
|
|
|
hen/duct :: event floor
|
|
|
|
$: now/@da :: event date
|
|
|
|
eny/@ :: unique entropy
|
|
|
|
ska/sley :: system namespace
|
|
|
|
== ::
|
|
|
|
mow/(list move) :: pending actions
|
|
|
|
== ::
|
|
|
|
bay/baby :: all owned state
|
|
|
|
== ::
|
|
|
|
|%
|
2018-01-10 00:43:48 +03:00
|
|
|
+|
|
2018-01-09 01:48:22 +03:00
|
|
|
++ this .
|
2016-11-24 07:25:07 +03:00
|
|
|
++ abet :: resolve
|
|
|
|
^- {(list move) baby}
|
|
|
|
[(flop mow) bay]
|
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ exec-cancel
|
|
|
|
=< abet ^+ .
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ nym=(~(get by dym.bay) hen)
|
|
|
|
?~ nym :: XX should never
|
|
|
|
~& [%ford-mystery hen]
|
2018-01-04 05:47:15 +03:00
|
|
|
..abet
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ tas=(need (~(get by q.tad.bay) u.nym))
|
2017-09-12 02:19:55 +03:00
|
|
|
abut:~(decamp zo [u.nym tas])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ exec-start
|
2016-11-24 07:25:07 +03:00
|
|
|
|= kub/bilk
|
2017-09-12 02:19:55 +03:00
|
|
|
=< abet ^+ +>
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ num=p.tad.bay
|
|
|
|
?< (~(has by dym.bay) hen)
|
|
|
|
=: p.tad.bay +(p.tad.bay)
|
|
|
|
dym.bay (~(put by dym.bay) hen num)
|
|
|
|
==
|
|
|
|
~(exec zo [num `task`[hen kub ~ ~]])
|
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ task-take
|
2016-12-07 06:13:33 +03:00
|
|
|
|= {num/@ud {van/vane ren/care:clay bem/beam} sih/sign}
|
2017-09-12 02:19:55 +03:00
|
|
|
=< abet ^+ +>
|
2016-11-24 07:25:07 +03:00
|
|
|
?: ?=({$unto $quit *} +.sih)
|
|
|
|
+>.$
|
|
|
|
=+ tus=(~(get by q.tad.bay) num)
|
|
|
|
?~ tus
|
|
|
|
~& [%ford-lost van num]
|
|
|
|
+>.$
|
2017-09-12 02:19:55 +03:00
|
|
|
(~(take zo [num u.tus]) [van ren bem] sih)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
::+|
|
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ wasp :: get next revision
|
2016-11-24 07:25:07 +03:00
|
|
|
~% %ford-w ..is ~
|
|
|
|
|= {dep/@uvH ask/?}
|
2017-09-12 02:19:55 +03:00
|
|
|
=< abet ^+ +>
|
2018-01-09 01:48:22 +03:00
|
|
|
::
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?: =(`@`0 dep)
|
2018-02-06 03:24:51 +03:00
|
|
|
:: ~&(dep-empty+hen +>.$)
|
|
|
|
+>.$
|
2018-01-09 01:48:22 +03:00
|
|
|
?: =(dep 0vtest) :: upstream testing
|
2016-11-24 07:25:07 +03:00
|
|
|
+>.$(mow ?.(ask mow :_(mow [hen %give %news dep])))
|
2018-01-09 01:48:22 +03:00
|
|
|
::
|
|
|
|
?. (~(has by def.deh.bay) dep)
|
|
|
|
~&([%wasp-unknown dep] this)
|
2017-10-14 01:57:15 +03:00
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
?:(ask (wasp-start dep) (wasp-cancel dep))
|
|
|
|
::
|
|
|
|
++ wasp-start
|
|
|
|
|= dep=@uvH ^+ this
|
|
|
|
?: (~(has by sup.bay) dep) :: already requested
|
|
|
|
this(sup.bay (~(put ju sup.bay) dep hen))
|
|
|
|
=. sup.bay (~(put ju sup.bay) dep hen)
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
=/ des (~(got by def.deh.bay) dep)
|
2018-01-26 02:42:33 +03:00
|
|
|
%- ~(rep in (dep-beams des))
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{dep=[beam care:clay] dis=_this}
|
2018-01-26 02:42:33 +03:00
|
|
|
(maybe-warp:dis dep)
|
2018-01-17 03:23:11 +03:00
|
|
|
::
|
|
|
|
++ wasp-cancel
|
|
|
|
|= dep=@uvH ^+ this
|
|
|
|
=. sup.bay (~(del ju sup.bay) dep hen)
|
|
|
|
?: (~(has by sup.bay) dep) :: other listeners exist
|
|
|
|
this
|
|
|
|
::
|
|
|
|
=/ des (~(got by def.deh.bay) dep)
|
2018-01-26 02:42:33 +03:00
|
|
|
%- ~(rep in (dep-beams des))
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{dep=[beam care:clay] dis=_this}
|
2018-01-26 02:42:33 +03:00
|
|
|
(maybe-cancel:dis dep)
|
|
|
|
::
|
|
|
|
++ maybe-warp
|
|
|
|
|= dep=[beam care:clay] ^+ this
|
|
|
|
?: (~(has in out.bay) dep) this
|
|
|
|
%_ this
|
|
|
|
out.bay (~(put in out.bay) dep)
|
|
|
|
mow :_(mow [hen (pass-warp & dep)])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ maybe-cancel
|
|
|
|
|= dep=[beam care:clay] ^+ this
|
|
|
|
?. (~(has in out.bay) dep) this :: already cancelled
|
|
|
|
?: (dent-has-subscribers [%beam dep])
|
|
|
|
this :: if any other dep cares about this beam, stay subscribed
|
2018-01-17 03:23:11 +03:00
|
|
|
%_ $
|
2018-01-26 02:42:33 +03:00
|
|
|
out.bay (~(del in out.bay) dep)
|
|
|
|
mow :_(mow [hen (pass-warp | dep)])
|
2018-01-17 03:23:11 +03:00
|
|
|
==
|
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
++ dent-has-subscribers
|
|
|
|
:> does the dent or any dent that depends on it have subscribers?
|
|
|
|
|= den/dent
|
|
|
|
^- ?
|
|
|
|
?| (~(any in (~(get ju bak.deh.bay) den)) ~(has by sup.bay))
|
|
|
|
(~(any in (~(get ju sup.gaf.bay) den)) dent-has-subscribers)
|
|
|
|
==
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
++ dep-beams ::DEPRECATED only needed for @uvH handling
|
|
|
|
|= des/(set dent) ^- (set {beam care:clay})
|
2018-01-09 05:00:42 +03:00
|
|
|
%- de-dup-subdirs
|
2018-01-09 01:48:22 +03:00
|
|
|
%+ roll ~(tap in des)
|
|
|
|
|= {den/dent bes/(set {beam care:clay})} ^+ bes
|
|
|
|
?: ?=($beam -.den)
|
|
|
|
(~(put in bes) +.den)
|
|
|
|
(~(uni in bes) ^$(des (~(get ju sub.gaf.bay) den)))
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
++ pass-warp
|
|
|
|
|= [ask=? bem=beam ren=care:clay]
|
|
|
|
:: ~& warp+[(en-beam bem) ask]
|
|
|
|
:+ %pass [(scot %p our) ren (en-beam bem)]
|
|
|
|
[%c [%warp [our p.bem] q.bem ?.(ask ~ `[%next ren r.bem (flop s.bem)])]]
|
|
|
|
::
|
|
|
|
++ deps-take :: take rev update
|
|
|
|
|= [ren=care:clay bem=beam sih=sign]
|
|
|
|
=< abet ^+ this
|
|
|
|
::
|
|
|
|
:: sample destructuring and validation
|
|
|
|
?. ?=(%writ &2.sih) ~|([%bad-dep &2.sih] !!) :: dep must be a %writ
|
|
|
|
?~ p.sih this :: ack from %clay, noop
|
|
|
|
::
|
|
|
|
=+ `[ren=care:clay wen=case *]`p.u.p.sih :: destructure sih
|
|
|
|
?. =(ren ^ren) ~|([%bad-care ren ^ren] !!) :: cares should match
|
|
|
|
::
|
2018-01-17 03:11:42 +03:00
|
|
|
:: %clay subscription no longer exists for this beam
|
2018-01-09 01:48:22 +03:00
|
|
|
=. out.bay (~(del in out.bay) bem)
|
|
|
|
::
|
2018-01-26 02:42:33 +03:00
|
|
|
:: rebuild and promote all affected builds,
|
|
|
|
:: calculating which beams resulted in new builds
|
|
|
|
:: for which we should send %news updates.
|
|
|
|
=/ bek -.bem(r wen)
|
|
|
|
=+ [new downstreams]=(dents-to-rebuild bem ren)
|
|
|
|
=^ changed this (on-update new downstreams bek)
|
|
|
|
::
|
|
|
|
|^
|
|
|
|
::
|
|
|
|
=/ changed-hashes (hashes-for-dents changed)
|
|
|
|
=/ downstream-hashes (hashes-for-dents downstreams)
|
|
|
|
=/ sames-hashes ~(tap in (~(dif in downstream-hashes) changed-hashes))
|
|
|
|
::
|
|
|
|
:: loop over the hashes of builds whose results haven't changed and
|
|
|
|
:: update our dependencies and subscriptions accordingly.
|
|
|
|
=. this
|
|
|
|
|- ^+ this
|
|
|
|
?~ sames-hashes this
|
|
|
|
=. this $(sames-hashes t.sames-hashes)
|
|
|
|
=* hax i.sames-hashes
|
|
|
|
::
|
|
|
|
:: find the deps for this hash that could have changed
|
|
|
|
:: as a result of this clay change.
|
|
|
|
=/ dep (~(get ju def.deh.bay) hax)
|
|
|
|
=/ upd (~(int in dep) downstreams)
|
|
|
|
::
|
|
|
|
:: resubscribe to clay at the new revision, since
|
|
|
|
:: the subscription for the old revision closed when
|
|
|
|
:: clay told us something had changed.
|
|
|
|
=. this
|
|
|
|
%- ~(rep in (dep-beams upd))
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{dep=[bem=beam care:clay] dis=_this}
|
2018-01-26 02:42:33 +03:00
|
|
|
(maybe-warp:dis dep(r.bem wen))
|
|
|
|
::
|
|
|
|
:: make hash depend on dents at new beak
|
|
|
|
%_ this
|
|
|
|
deh.bay
|
|
|
|
%- ~(rep in upd)
|
|
|
|
|= [den=dent deh=_deh.bay]
|
|
|
|
=/ new-den ((move-to bek) den)
|
|
|
|
::
|
|
|
|
=. def.deh (~(del ju def.deh) hax den)
|
|
|
|
=. def.deh (~(put ju def.deh) hax new-den)
|
|
|
|
::
|
|
|
|
=. bak.deh (~(del ju bak.deh) den hax)
|
|
|
|
=. bak.deh (~(put ju bak.deh) new-den hax)
|
|
|
|
deh
|
|
|
|
==
|
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
:: for each affected build (keyed by hash),
|
|
|
|
:: send %news moves to listeners and cancel listeners
|
2018-01-26 02:42:33 +03:00
|
|
|
=/ hashes=(list @uvH) ~(tap in changed-hashes)
|
2018-01-09 05:00:42 +03:00
|
|
|
::
|
|
|
|
:: ~& [den=den dos=dos hashes=hashes]
|
2018-01-09 01:48:22 +03:00
|
|
|
::
|
|
|
|
|- ^+ this
|
|
|
|
?~ hashes this
|
2018-01-17 03:23:11 +03:00
|
|
|
=. this $(hashes t.hashes) :: iterate
|
2018-01-26 02:42:33 +03:00
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
=/ listeners=(set duct) (~(get ju sup.bay) i.hashes)
|
2018-01-26 02:42:33 +03:00
|
|
|
=. sup.bay (~(del by sup.bay) i.hashes) :: close subscriptions
|
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
=. mow :: send %news moves
|
2018-01-09 01:48:22 +03:00
|
|
|
%- weld :_ mow
|
|
|
|
%+ turn ~(tap in listeners)
|
|
|
|
|=(a=duct `move`[a %give %news i.hashes])
|
2018-01-17 03:23:11 +03:00
|
|
|
::
|
|
|
|
(wasp-cancel i.hashes)
|
2018-01-26 02:42:33 +03:00
|
|
|
::
|
|
|
|
++ hashes-for-dents
|
|
|
|
|= des=(set dent) ^- (set @uvH)
|
|
|
|
%- ~(rep in des)
|
|
|
|
|= [den=dent hashes=(set @uvH)]
|
|
|
|
=/ bak (~(get ju bak.deh.bay) den)
|
|
|
|
(~(uni in hashes) (~(get ju bak.deh.bay) den))
|
|
|
|
--
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-10 00:43:48 +03:00
|
|
|
:> # TODO name this chapter
|
|
|
|
+|
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-26 02:42:33 +03:00
|
|
|
++ dents-to-rebuild
|
|
|
|
|= [bem=beam ren=care:clay]
|
|
|
|
^- [(set dent) (set dent)]
|
|
|
|
=/ new (~(beam-dents-in-dir na gaf.bay) %beam bem ren)
|
|
|
|
=/ downstreams (~(downstream-dents na gaf.bay) new)
|
|
|
|
[new downstreams]
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ on-update
|
2018-01-10 00:47:24 +03:00
|
|
|
:> {bem} is at the old revision, {bek} is at the new revision.
|
2018-01-26 02:42:33 +03:00
|
|
|
|= [new=(set dent) downstreams=(set dent) bek=beak]
|
|
|
|
^+ [*(set dent) this]
|
|
|
|
=/ todo ~(tap in downstreams)
|
|
|
|
=^ results this (rebuild bek new todo)
|
|
|
|
=+ [changed unchanged]=results
|
2018-01-10 00:47:24 +03:00
|
|
|
~| unchanged=unchanged
|
2018-01-26 02:42:33 +03:00
|
|
|
[changed (promote-unchanged unchanged bek)]
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-10 00:47:24 +03:00
|
|
|
++ rebuild :: !. :: TODO reinstate
|
|
|
|
:> rebuild all builds whose dependencies have a new %clay revision.
|
|
|
|
:>
|
|
|
|
:> {todo} is the set of dents that need to be built at the new beak {bek}.
|
|
|
|
:> produces a pair of the unchanged builds (which should be promoted)
|
|
|
|
:> and the mutated ++za core.
|
|
|
|
:>
|
|
|
|
:> tries to avoid rebuilding by using results of builds performed at
|
|
|
|
:> the previous %clay revision, if they exist and their dependencies
|
|
|
|
:> haven't changed.
|
|
|
|
=| unchanged/(set dent)
|
2018-01-26 02:42:33 +03:00
|
|
|
|= {bek/beak new/(set dent) todo/(list dent)}
|
|
|
|
^+ [[new unchanged] this]
|
|
|
|
?~ todo [[new unchanged] this]
|
2018-01-10 00:47:24 +03:00
|
|
|
::
|
|
|
|
:: don't try to rebuild the changed files themselves.
|
|
|
|
?: (~(has in new) i.todo)
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg new+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(todo t.todo)
|
|
|
|
::
|
|
|
|
:: if we've already built a dent at this revision, don't build it again.
|
|
|
|
?: (~(has in unchanged) i.todo)
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg unchanged+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(todo t.todo)
|
|
|
|
::
|
|
|
|
:: if none of our dependencies are in new, then check whether all of them
|
|
|
|
:: are unchanged. if all of them are unchanged, we can avoid rebuilding.
|
|
|
|
:: otherwise, rebuild.
|
2018-01-04 05:47:15 +03:00
|
|
|
=/ dez (~(get ju sub.gaf.bay) i.todo)
|
2018-01-10 00:47:24 +03:00
|
|
|
?. (~(any in dez) ~(has in new))
|
|
|
|
::
|
|
|
|
:: filter out any unchanged sub-dependencies, including
|
|
|
|
:: any sub-dependency beam that isn't in new, since any changed
|
|
|
|
:: beams would be in new.
|
|
|
|
=. dez (~(dif in dez) unchanged)
|
|
|
|
=. dez (silt (skip ~(tap in dez) |=(a=dent ?=(%beam -.a))))
|
|
|
|
::
|
|
|
|
:: if we know all sub-dependencies are unchanged,
|
|
|
|
:: then mark this todo as unchanged and continue.
|
|
|
|
?: =(~ dez)
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg put-in-unchanged+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(unchanged (~(put in unchanged) i.todo), todo t.todo)
|
|
|
|
::
|
|
|
|
:: otherwise, build all unknown sub-dependencies first and try again.
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg adding-dez+~(tap in dez)
|
2018-01-04 05:47:15 +03:00
|
|
|
$(todo (weld ~(tap in dez) todo))
|
|
|
|
::
|
2018-01-10 00:47:24 +03:00
|
|
|
:: some of our sub-dependencies have been invalidated,
|
|
|
|
:: so perform the rebuild at the new beak.
|
|
|
|
=/ taz=task [hen [bek *silk] ~ ~] ::XX real silk?
|
|
|
|
=^ bil this (~(exec-dent zo *@u taz) bek i.todo)
|
|
|
|
::
|
|
|
|
:: determine what to do with the rebuilt result.
|
2018-01-04 05:47:15 +03:00
|
|
|
?- -.q.bil
|
2018-01-10 00:47:24 +03:00
|
|
|
$1 ~|([%stub-block p.q.bil] !!) ::TODO store state in task
|
|
|
|
$2
|
|
|
|
:: errors cannot be promoted, so consider this a new build.
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg rebuilt+error+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(new (~(put in new) i.todo), todo t.todo)
|
|
|
|
::
|
|
|
|
$0
|
|
|
|
=/ pre (~(get by jav.bay) (to-cache-key i.todo))
|
|
|
|
::
|
|
|
|
:: if there was no previous result, or the new result is different
|
|
|
|
:: from the previous result, then consider this build new.
|
|
|
|
:: otherwise, consider it unchanged.
|
|
|
|
?: |(?=(~ pre) !=(r.u.pre q.q.bil))
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg rebuilt+new+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(new (~(put in new) i.todo), todo t.todo)
|
2018-01-17 03:11:42 +03:00
|
|
|
~? dbg rebuilt+same+i.todo
|
2018-01-10 00:47:24 +03:00
|
|
|
$(unchanged (~(put in unchanged) i.todo), todo t.todo)
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ promote-unchanged
|
2018-01-10 00:47:24 +03:00
|
|
|
|= {unchanged/(set dent) bek/beak} ^+ this
|
2018-01-04 05:47:15 +03:00
|
|
|
%_ this
|
|
|
|
bay
|
2018-01-10 00:47:24 +03:00
|
|
|
%- ~(rep by unchanged) :: XX iterate per beak at least
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ [a=*dent b=bay]
|
|
|
|
|. ^+ b
|
|
|
|
=/ cax (~(get by jav.b) (to-cache-key a))
|
|
|
|
?~ cax b
|
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
::XX only for original beak in q.q.u.cax?
|
2018-01-17 03:34:26 +03:00
|
|
|
=. a ((move-to bek) a)
|
|
|
|
=. dep.p.u.cax
|
|
|
|
(sy (turn ~(tap in dep.p.u.cax) (move-to bek)))
|
|
|
|
::
|
|
|
|
?< ?=($beam -.a)
|
2018-01-04 05:47:15 +03:00
|
|
|
:: ~& promo+a
|
|
|
|
=. u.cax
|
|
|
|
?- -.a
|
|
|
|
$load ?>(?=($load -.u.cax) u.cax(-.q.q bek))
|
|
|
|
$boil ?>(?=($boil -.u.cax) u.cax(-.q.q bek, -.r.q bek))
|
|
|
|
==
|
|
|
|
%_ b
|
|
|
|
jav :: promote cache
|
|
|
|
(~(put by jav.b) [- q]:u.cax u.cax)
|
|
|
|
::
|
|
|
|
gaf :: promote deps
|
|
|
|
(~(add-sub na gaf.b) a dep.p.u.cax)
|
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ to-cache-key
|
2018-01-10 00:43:48 +03:00
|
|
|
|= den=dent ^- [term *]
|
|
|
|
?- -.den
|
|
|
|
$beam ~|(beam-dep+den !!) :: ?< because beams should never be downstream
|
|
|
|
$boil [%boil arg bem bom]:den
|
|
|
|
$load [%load mar bem]:den
|
2018-01-04 05:47:15 +03:00
|
|
|
==
|
|
|
|
::
|
2018-01-17 03:23:11 +03:00
|
|
|
++ move-to
|
2018-01-26 02:42:33 +03:00
|
|
|
:> replace any beaks in dent with {bek}, curried.
|
2018-01-17 03:34:26 +03:00
|
|
|
|= bek=beak
|
2018-01-17 03:23:11 +03:00
|
|
|
|= den=dent ^+ den
|
|
|
|
=? den ?=(%boil -.den) den(-.bom bek)
|
|
|
|
den(-.bem bek)
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
::+|
|
|
|
|
::
|
|
|
|
++ pass
|
|
|
|
|= {wir/wire noe/note} ^+ this
|
|
|
|
%_(+> mow :_(mow [hen %pass wir noe]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ zo
|
|
|
|
~% %ford-z ..is ~
|
2017-09-12 02:19:55 +03:00
|
|
|
=| dyv/@ :: recursion level
|
2016-11-24 07:25:07 +03:00
|
|
|
|_ {num/@ud task}
|
2017-09-12 02:19:55 +03:00
|
|
|
++ abet :: store a blocked task
|
|
|
|
%_(..zo q.tad.bay (~(put by q.tad.bay) num +<+))
|
|
|
|
::
|
|
|
|
++ abut :: remove a task
|
2016-12-16 09:34:01 +03:00
|
|
|
%_ ..zo
|
2016-11-24 07:25:07 +03:00
|
|
|
q.tad.bay (~(del by q.tad.bay) num)
|
|
|
|
dym.bay (~(del by dym.bay) nah)
|
|
|
|
==
|
2017-09-12 02:19:55 +03:00
|
|
|
::
|
|
|
|
++ decamp :: stop requests
|
2016-11-24 07:25:07 +03:00
|
|
|
^+ .
|
2017-02-13 22:58:49 +03:00
|
|
|
=+ kiz=~(tap in kig)
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^+ +>
|
|
|
|
?~ kiz +>
|
2018-01-04 05:47:15 +03:00
|
|
|
$(kiz t.kiz, pass (pass (cancel i.kiz)))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ cancel :: stop a request
|
2018-01-04 05:47:15 +03:00
|
|
|
|= {van/vane ren/care:clay bem/beam} ^- {wire note}
|
2016-11-24 07:25:07 +03:00
|
|
|
?+ van ~|(stub-cancel+van !!)
|
2018-01-04 05:47:15 +03:00
|
|
|
$c [(camp-wire +<) van [%warp [our p.bem] q.bem ~]]
|
|
|
|
$g [(camp-wire +<) van [%deal [our p.bem] q.bem [%pull ~]]]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2017-09-12 02:19:55 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ camp-wire :: encode block
|
2016-12-07 06:13:33 +03:00
|
|
|
|= {van/vane ren/care:clay bem/beam} ^- wire
|
2016-12-02 22:34:07 +03:00
|
|
|
[(scot %p our) (scot %ud num) van ren (en-beam bem)]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ camp :: request data
|
2016-12-07 06:13:33 +03:00
|
|
|
|= {van/vane ren/care:clay bem/beam}
|
2016-11-24 07:25:07 +03:00
|
|
|
^+ +>
|
|
|
|
~& >> [%camping van ren bem]
|
2018-01-04 05:47:15 +03:00
|
|
|
=. kig (~(put in kig) +<)
|
|
|
|
%+ pass (camp-wire +<)
|
|
|
|
?+ van ~&(%camp-stub !!)
|
|
|
|
$g
|
|
|
|
=/ tyl/path
|
|
|
|
?. ?=($x ren)
|
|
|
|
s.bem
|
|
|
|
?> ?=(^ s.bem)
|
|
|
|
t.s.bem
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
[%g [%deal [our p.bem] q.bem [%peer %scry ren (flop tyl)]]]
|
|
|
|
::
|
|
|
|
$c
|
|
|
|
[%c [%warp [our p.bem] q.bem [~ %sing ren r.bem (flop s.bem)]]]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ take :: handle ^take
|
2017-11-02 01:44:05 +03:00
|
|
|
|= {{van/vane ren/care:clay bem/beam} sih/sign}
|
2017-09-12 02:19:55 +03:00
|
|
|
^+ ..zo
|
2018-01-04 05:47:15 +03:00
|
|
|
|^
|
2017-09-12 02:19:55 +03:00
|
|
|
?- &2.sih
|
|
|
|
$writ (take-writ [van ren bem] p.sih)
|
|
|
|
$made (take-made [van ren bem] [p q]:sih)
|
|
|
|
$unto
|
|
|
|
?+ -.p.sih ~|(ford-strange-unto+[-.p.sih] !!)
|
|
|
|
$diff (take-diff [van ren bem] p.p.sih)
|
|
|
|
$reap ?~ p.p.sih ..zo
|
|
|
|
((slog leaf+"ford-reap-fail" u.p.p.sih) ..zo)
|
|
|
|
==
|
|
|
|
==
|
2018-01-04 05:47:15 +03:00
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
++ take-diff :: %g scry result
|
2018-01-04 05:47:15 +03:00
|
|
|
|= {{van/vane ren/care:clay bem/beam} cag/cage}
|
|
|
|
^+ ..zo
|
|
|
|
?> ?=($g van)
|
|
|
|
?: |(!?=($x ren) =(-.s.bem p.cag))
|
|
|
|
=. kig (~(del in kig) +<-.$)
|
|
|
|
=. pass (pass (cancel van ren bem))
|
|
|
|
=+ (cat 3 van ren)
|
|
|
|
exec(keg (~(put by keg) [- bem] cag))
|
|
|
|
%+ ^pass (camp-wire van ren bem)
|
|
|
|
[%f %exec our ~ bek %cast ((hard mark) -.s.bem) %$ cag]
|
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
++ take-made :: %g scry translated
|
|
|
|
:> %gall scry response, mark-translated by %ford
|
2018-01-04 05:47:15 +03:00
|
|
|
|= {{van/vane ren/care:clay bem/beam} dep/@uvH gag/gage} :: XX depends?
|
|
|
|
^+ ..zo
|
|
|
|
?> ?=($g van)
|
2018-01-09 01:48:22 +03:00
|
|
|
=. kig (~(del in kig) +<-.$) :: TODO rename kig
|
2018-01-04 05:47:15 +03:00
|
|
|
=. pass (pass (cancel van ren bem))
|
2018-03-19 20:43:25 +03:00
|
|
|
?: ?=(%| -.gag)
|
2018-01-04 05:47:15 +03:00
|
|
|
abut:(give [%made dep %| leaf+"ford-scry-made-fail" p.gag])
|
|
|
|
?: ?=($tabl -.gag)
|
|
|
|
abut:(give [%made dep %| leaf+"ford-scry-made-strange" ~])
|
2017-09-12 02:19:55 +03:00
|
|
|
=+ (cat 3 van ren)
|
2018-01-04 05:47:15 +03:00
|
|
|
exec(keg (~(put by keg) [- bem] p.gag))
|
|
|
|
::
|
|
|
|
++ take-writ
|
|
|
|
|= {{van/vane ren/care:clay bem/beam} rot/riot:clay}
|
|
|
|
^+ ..zo
|
|
|
|
?> ?=($c van)
|
|
|
|
=. kig (~(del in kig) +<-.$)
|
|
|
|
?~ rot
|
|
|
|
=^ dep deh.bay (pin-dephash ~ deh.bay) :: TODO: dependencies?
|
|
|
|
abut:(give [%made dep %| (smyt ren (en-beam bem)) ~])
|
|
|
|
=/ req (cat 3 van ren) :: e.g. %cx
|
|
|
|
exec(keg (~(put by keg) [req bem] r.u.rot))
|
|
|
|
--
|
2017-09-12 02:19:55 +03:00
|
|
|
::
|
|
|
|
::+|
|
|
|
|
::
|
|
|
|
::> Exec proper
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
++ tabl-run :: apply to all elems
|
|
|
|
|= fun/(burg cage gage)
|
|
|
|
|= {cof/cafe gag/gage}
|
|
|
|
^- (bolt gage)
|
|
|
|
?. ?=($tabl -.gag)
|
2018-01-04 05:47:15 +03:00
|
|
|
(tug:bo (to-cage:bo (new:bo cof gag)) fun)
|
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^- (bolt (list (pair gage gage)))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.gag (new:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
%. [cof p.gag]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|= {cof/cafe {^ q/gage} t/gagl}
|
|
|
|
(catch-error:bo ^^$(cof cof, gag q))
|
|
|
|
|= {cof/cafe ^ t/gagl}
|
|
|
|
^$(cof cof, p.gag t)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=({v/gage t/gagl} [[p.i.p.gag v] t]))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(rex/gagl [%tabl rex]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ dash :: process cache
|
2016-11-24 07:25:07 +03:00
|
|
|
|= cof/cafe
|
|
|
|
^+ +>
|
2018-01-04 05:47:15 +03:00
|
|
|
%_(+> jav.bay q.cof, deh.bay r.cof, gaf.bay s.cof)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ diff :: diff
|
|
|
|
|= {cof/cafe kas/silk kos/silk}
|
|
|
|
^- (bolt gage)
|
|
|
|
%. [cof kas kos]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof p)))
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof q)))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
|= {cof/cafe cay/cage coy/cage} ^- (bolt gage)
|
|
|
|
?. =(p.cay p.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ err:bo cof :_ ~
|
2016-11-24 07:25:07 +03:00
|
|
|
leaf+"diff on data of different marks: {(trip p.cay)} {(trip p.coy)}"
|
|
|
|
?: =(q.q.cay q.q.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [%& %null [%atom %n ~] ~])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof p.cay)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
?. (slab %grad p.pro)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ gar=(slap pro [%limb %grad])
|
|
|
|
?@ q.gar
|
|
|
|
=+ for=((sand %tas) q.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ for (err:bo cof leaf+"bad mark ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ make cof ^- silk
|
|
|
|
:+ %diff
|
2017-09-20 03:35:45 +03:00
|
|
|
[%cast u.for [%$ cay]]
|
|
|
|
[%cast u.for [%$ coy]]
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slab %form p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slab %diff p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++diff:grad" ~)
|
|
|
|
%+ tug:bo (keel cof pro [[%& 6]~ q.cay]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pox/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
%^ maul cof
|
|
|
|
(slap (slap pox [%limb %grad]) [%limb %diff])
|
|
|
|
q.coy
|
|
|
|
|= {cof/cafe dif/vase}
|
|
|
|
=+ for=((soft @tas) q:(slap gar [%limb %form]))
|
|
|
|
?~ for
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"bad ++form:grad" ~)
|
|
|
|
(new:bo cof [%& u.for dif])
|
|
|
|
==
|
2018-01-10 00:47:24 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
::REVIEW control flow duplication
|
|
|
|
++ exec-dent :: execute depend
|
2018-01-10 00:47:24 +03:00
|
|
|
|= [bek=beak den=dent]
|
2018-01-04 05:47:15 +03:00
|
|
|
^+ [*(bolt _[r:*calx]) ..zo]
|
|
|
|
=; bot/(bolt _[r:*calx])
|
|
|
|
[bot ..zo:(dash p.bot)] ::TODO abet, ie block logic
|
|
|
|
=/ cof/cafe [~ jav.bay deh.bay gaf.bay]
|
2018-01-10 00:47:24 +03:00
|
|
|
?- -.den
|
2018-01-04 05:47:15 +03:00
|
|
|
$beam !! ::XX syve?
|
2018-01-10 00:47:24 +03:00
|
|
|
$boil (boil cof arg.den bem.den(- bek) bom.den(- bek))
|
|
|
|
$load (load-to-mark cof mar.den bem.den(- bek))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2017-09-12 02:19:55 +03:00
|
|
|
++ exec :: execute task
|
2016-11-24 07:25:07 +03:00
|
|
|
^+ ..zo
|
|
|
|
?: !=(~ kig) ..zo
|
2018-01-04 05:47:15 +03:00
|
|
|
=/ bot/(bolt gage)
|
|
|
|
(make-with-concrete-revision [~ jav.bay deh.bay gaf.bay] kas)
|
|
|
|
=^ dep bot (pin:bo bot)
|
2016-11-24 07:25:07 +03:00
|
|
|
=. ..exec (dash p.bot)
|
|
|
|
?- -.q.bot
|
2017-09-13 22:54:55 +03:00
|
|
|
$0 abut:(give [%made dep q.q.bot])
|
|
|
|
$2 abut:(give [%made dep %| q.q.bot])
|
2018-01-04 05:47:15 +03:00
|
|
|
$1 =< abet
|
|
|
|
%+ roll ~(tap in p.q.bot)
|
|
|
|
=+ [*{van/vane ren/care:clay bem/beam tan/tang} ..exec]
|
|
|
|
|. ^+ ..exec
|
|
|
|
(camp van ren bem)
|
|
|
|
==
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ give
|
2016-11-24 07:25:07 +03:00
|
|
|
|= gef/gift:able
|
|
|
|
%_(+> mow :_(mow [hen %give gef]))
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ pass
|
|
|
|
|= {wir/wire noe/note}
|
|
|
|
%_(+> mow :_(mow [hen %pass wir noe]))
|
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ compile-to-hood
|
|
|
|
~/ %compile-to-hood
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2017-11-02 01:44:05 +03:00
|
|
|
:: ~& compile-to-hood+(en-beam bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (bolt hood)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: compile-to-hood {<[(en-beam bem)]>}")
|
|
|
|
%+ tug:bo (load-file cof %*(. bem s [%hoon s.bem]))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe cay/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (with-cache:bo %hood) (new:bo cof bem(r [%ud 0]) cay)
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (burg (pair beam cage) hood)
|
|
|
|
~% %hood-miss ..abet ~
|
|
|
|
|= {cof/cafe bem/beam cay/cage}
|
|
|
|
?. ?=(@ q.q.cay)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ vex=((full (fair bem)) [[1 1] (trip q.q.cay)])
|
|
|
|
?~ q.vex
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "syntax error: {<p.p.vex>} {<q.p.vex>}"] ~)
|
|
|
|
(new:bo cof p.u.q.vex)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ fame :: beam with - as /
|
|
|
|
~/ %fame
|
|
|
|
|= {cof/cafe bem/beam}
|
|
|
|
^- (bolt beam)
|
|
|
|
=; une/(bolt (unit beam))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo une
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bom/(unit beam)} ^- (bolt beam)
|
2018-01-04 05:47:15 +03:00
|
|
|
?^ bom (new:bo cof u.bom)
|
|
|
|
(err:bo cof leaf+"fame: no {<(en-beam bem)>}" ~)
|
|
|
|
%+ (with-cache:bo %path) (new:bo cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
|
|
|
=^ pax bem [(flop s.bem) bem(s ~)]
|
|
|
|
|^ opts
|
|
|
|
++ opts :: search unless done
|
|
|
|
^- (bolt (unit beam))
|
|
|
|
?^ pax (wide(pax t.pax) (tear i.pax))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (load-to-mark cof %hoon bem)
|
|
|
|
(with:bo |=(a/(unit vase) ?~(a ~ `bem)))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ wide :: match segments
|
|
|
|
|= sub/(list term) ^- (bolt (unit beam))
|
|
|
|
?~ sub opts
|
|
|
|
?~ t.sub opts(s.bem [i.sub s.bem])
|
|
|
|
=> .(sub `(list term)`sub) :: TMI
|
2018-01-04 05:47:15 +03:00
|
|
|
=- (tug:bo - flat)
|
2017-09-13 22:54:55 +03:00
|
|
|
%^ filter-at-beam cof bem
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe dir/knot} ^- (bolt (unit beam))
|
|
|
|
=+ sus=(tear dir)
|
|
|
|
?. =(sus (scag (lent sus) sub))
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
%_ ^$
|
|
|
|
cof cof
|
|
|
|
sub (slag (lent sus) sub)
|
|
|
|
s.bem [dir s.bem]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ flat :: at most one
|
|
|
|
|= {cof/cafe opt/(map term beam)} ^- (bolt (unit beam))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ opt (new:bo cof ~)
|
2018-03-19 07:18:20 +03:00
|
|
|
?: ?=({^ ~ ~} opt) (new:bo cof `q.n.opt)
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ all=(~(run by `(map term beam)`opt) en-beam)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"fame: fork {<all>}" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ fang :: protocol door
|
|
|
|
|= {cof/cafe for/mark} ^- (bolt vase)
|
|
|
|
:: ~& fang+for
|
2017-09-13 22:54:55 +03:00
|
|
|
(load-core cof bek /[for]/mar)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ join
|
|
|
|
|= {cof/cafe for/mark kas/silk kos/silk}
|
|
|
|
^- (bolt gage)
|
|
|
|
%. [cof kas kos]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof p)))
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof q)))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
|= {cof/cafe cay/cage coy/cage} ^- (bolt gage)
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof for)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
?. (slab %grad p.pro)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ gar=(slap pro [%limb %grad])
|
|
|
|
?@ q.gar
|
|
|
|
=+ too=((sand %tas) q.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ too (err:bo cof leaf+"bad mark ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
(make cof %join u.too [%$ cay] [%$ coy])
|
|
|
|
?. (slab %form p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ fom=((soft @tas) q:(slap gar [%limb %form]))
|
|
|
|
?~ fom
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"bad ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. &(=(u.fom p.cay) =(u.fom p.coy))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ err:bo cof :_ :_ ~
|
2016-11-24 07:25:07 +03:00
|
|
|
leaf+"join on data of bad marks: {(trip p.cay)} {(trip p.coy)}"
|
|
|
|
leaf+"expected mark {(trip u.fom)}"
|
|
|
|
?: =(q.q.cay q.q.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [%& cay])
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slab %join p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++join:grad" ~)
|
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
%^ maul cof
|
|
|
|
(slap (slap pro [%limb %grad]) [%limb %join])
|
|
|
|
(slop q.cay q.coy)
|
|
|
|
|= {cof/cafe dif/vase}
|
|
|
|
?@ q.dif
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [%& %null dif])
|
|
|
|
(new:bo cof [%& u.fom (slot 3 dif)])
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ mash
|
|
|
|
|= {cof/cafe for/mark mas/milk mos/milk}
|
|
|
|
^- (bolt gage)
|
|
|
|
%. [cof r.mas r.mos]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof p)))
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof q)))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
|= {cof/cafe cay/cage coy/cage} ^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof for)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
?. (slab %grad p.pro)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ gar=(slap pro [%limb %grad])
|
|
|
|
?@ q.gar
|
|
|
|
=+ too=((sand %tas) q.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ too (err:bo cof leaf+"bad mark ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ make cof
|
|
|
|
`silk`[%mash u.too [p.mas q.mas [%$ cay]] [p.mos q.mos [%$ coy]]]
|
|
|
|
?. (slab %form p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ fom=((soft @tas) q:(slap gar [%limb %form]))
|
|
|
|
?~ fom
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"bad ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. &(=(u.fom p.cay) =(u.fom p.coy))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ err:bo cof :_ :_ ~
|
2016-11-24 07:25:07 +03:00
|
|
|
leaf+"mash on data of bad marks: {(trip p.cay)} {(trip p.coy)}"
|
|
|
|
leaf+"expected mark {(trip u.fom)}"
|
|
|
|
?: =(q.q.cay q.q.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof %& cay)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slab %mash p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof %& %null [%atom %n ~] ~)
|
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
%^ maul cof
|
|
|
|
(slap (slap pro [%limb %grad]) [%limb %mash])
|
|
|
|
%+ slop
|
|
|
|
:(slop [[%atom %p ~] p.mas] [[%atom %tas ~] q.mas] q.cay)
|
|
|
|
:(slop [[%atom %p ~] p.mos] [[%atom %tas ~] q.mos] q.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(dif/vase [%& u.fom dif]))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ kale :: mutate
|
|
|
|
|= {cof/cafe kas/silk muy/(list (pair wing silk))}
|
|
|
|
^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^- (bolt (list (pair wing vase)))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ muy (new:bo cof ~)
|
|
|
|
%+ tug:bo (to-cage:bo (make cof q.i.muy))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe cay/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo ^$(muy t.muy)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe rex/(list (pair wing vase))}
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [[p.i.muy q.cay] rex])
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe yom/(list (pair wing vase))}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (make cof kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
%- tabl-run
|
|
|
|
|= {cof/cafe cay/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (keel cof q.cay yom)
|
|
|
|
(with:bo |=(vax/vase [%& p.cay vax]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ keel :: apply mutations
|
|
|
|
|= {cof/cafe suh/vase yom/(list (pair wing vase))}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
=< |. ^- tank
|
|
|
|
:+ %palm [" " ~ ~ ~]
|
|
|
|
~[leaf+"ford: keel" rose+[" " ~ ~]^(murn yom +)]
|
2017-11-16 23:44:27 +03:00
|
|
|
|= {a/wing b/type *} ^- (unit tank)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ typ=(mule |.(p:(slap suh wing+a)))
|
2018-03-19 20:43:25 +03:00
|
|
|
?: ?=(%| -.typ)
|
2016-11-24 07:25:07 +03:00
|
|
|
(some (show [%c %pull] %l a))
|
|
|
|
?: (~(nest ut p.typ) | b) ~
|
|
|
|
%^ some %palm ["." ~ ~ ~]
|
|
|
|
~[(show [%c %mute] %l a) >[p.typ b]<]
|
2017-09-13 22:58:24 +03:00
|
|
|
%^ wrapped-slap cof
|
2016-11-24 07:25:07 +03:00
|
|
|
%+ slop suh
|
|
|
|
|- ^- vase
|
|
|
|
?~ yom [[%atom %n ~] ~]
|
|
|
|
(slop q.i.yom $(yom t.yom))
|
2017-11-17 00:50:03 +03:00
|
|
|
^- hoon
|
2017-09-19 03:55:32 +03:00
|
|
|
:+ %cncb [%& 2]~
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ axe=3
|
2017-11-17 00:50:03 +03:00
|
|
|
|- ^- (list (pair wing hoon))
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ yom ~
|
|
|
|
:- [p.i.yom [%$ (peg axe 2)]]
|
|
|
|
$(yom t.yom, axe (peg axe 3))
|
|
|
|
::
|
|
|
|
++ lads :: possible children
|
|
|
|
|= {cof/cafe bem/beam}
|
2018-03-19 07:18:20 +03:00
|
|
|
^- (bolt (map knot ~))
|
2017-09-13 22:54:55 +03:00
|
|
|
%^ filter-at-beam cof bem
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe dir/knot}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (load-arch cof bem(s [dir s.bem]))
|
|
|
|
(with:bo |=(a/arch ?~(dir.a ~ (some ~))))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ laze :: find real or virtual
|
|
|
|
|= {cof/cafe bem/beam}
|
2017-09-13 22:54:55 +03:00
|
|
|
%^ filter-at-beam cof bem
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe for/mark}
|
2018-03-19 07:18:20 +03:00
|
|
|
^- (bolt (unit ~))
|
2018-01-04 05:47:15 +03:00
|
|
|
?. ((sane %tas) for) (new:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=. s.bem [for s.bem]
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (load-arch cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe arc/arch}
|
2018-03-19 01:59:22 +03:00
|
|
|
(new:bo cof (bind fil.arc |=(* ~)))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ lace :: load file
|
|
|
|
|= {cof/cafe for/mark bem/beam}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: load {<for>} {<(en-beam bem)>}")
|
2016-11-24 07:25:07 +03:00
|
|
|
=. s.bem [for s.bem]
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (load-file cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe cay/cage} ^- (bolt vase)
|
|
|
|
?. =(for p.cay)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"unexpected mark {<p.cay>}" ~)
|
|
|
|
(new:bo cof q.cay)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ lake :: check+coerce
|
|
|
|
|= {fit/? for/mark}
|
|
|
|
|= {cof/cafe sam/vase}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: check {<[for bek `@p`(mug q.sam)]>}")
|
|
|
|
%+ tug:bo (fang cof for)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe tux/vase}
|
|
|
|
=+ typ=p:(slot 6 tux)
|
|
|
|
=. typ ?+(-.typ typ $face q.typ)
|
|
|
|
?: (~(nest ut typ) | p.sam)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof typ q.sam)
|
|
|
|
?. fit (err:bo cof [%leaf "ford: invalid type: {<p.sam>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slob %grab p.tux)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "ford: no grab: {<[for bek]>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ gab=(slap tux [%limb %grab])
|
|
|
|
?. (slob %noun p.gab)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "ford: no noun: {<[for bek]>}"]~)
|
|
|
|
%+ tug:bo (maul cof (slap gab [%limb %noun]) [%noun q.sam])
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
?> (~(nest ut typ) | p.pro)
|
2016-12-16 09:34:01 +03:00
|
|
|
?: =(q.pro q.sam)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof typ q.pro)
|
|
|
|
(err:bo cof [%leaf "ford: invalid content: {<[for bek]>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ to-concrete-revision :: numerical r.bem
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
|
|
|
^- (bolt beam)
|
2018-01-04 05:47:15 +03:00
|
|
|
?: ?=($ud -.r.bem) (new:bo cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ von=(syve [151 %noun] ~ %cw bem(s ~))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ von [p=cof q=[%1 [%c %w bem(s ~) ~] ~ ~]]
|
|
|
|
(new:bo cof bem(r [%ud ((hard @) +.+:(need u.von))]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-11-22 23:28:31 +03:00
|
|
|
++ infer-product-type
|
|
|
|
|= {cof/cafe typ/type gen/hoon}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (from-each:bo cof) (mule |.((~(play ut typ) gen)))
|
2017-11-16 23:44:27 +03:00
|
|
|
|=(ref/type ref)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ filter-at-beam
|
2016-11-24 07:25:07 +03:00
|
|
|
|* {cof/cafe bem/beam fun/(burg knot (unit))}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (load-arch cof bem)
|
|
|
|
|=({cof/cafe arc/arch} ((some-in-map:bo fun) cof dir.arc))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ load-core
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam} ^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (to-concrete-revision cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
(boil cof many+~ bem bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ boil
|
|
|
|
~/ %boil
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe arg/coin bem/beam bom/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
^- (bolt vase)
|
|
|
|
%+ tug:bo (to-concrete-revision cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ under-dep:bo `dent`[%boil bem bom arg]
|
|
|
|
%+ (with-cache:bo %boil) (new:bo cof arg bem bom)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe arg/coin bem/beam bom/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fame cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
(tug:bo (compile-to-hood cof bem) (meow bom arg))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ load-arch
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
|
|
|
^- (bolt arch)
|
|
|
|
=+ von=(syve [151 %noun] ~ %cy bem)
|
|
|
|
?~ von [p=cof q=[%1 [%c %y bem ~] ~ ~]]
|
2018-03-19 07:18:20 +03:00
|
|
|
?> ?=({~ $arch ^} u.von)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ arc=((hard arch) q.q.u.u.von)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (to-concrete-revision cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
(add-dep:bo [%beam bem %z] (new:bo cof arc))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ load-file
|
|
|
|
~/ %load-file
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
|
|
|
^- (bolt cage)
|
2018-01-26 02:42:33 +03:00
|
|
|
%+ tug:bo (add-dep:bo [%beam bem %z] (new:bo cof bem))
|
|
|
|
|= [cof=cafe bem=beam]
|
2016-11-24 07:25:07 +03:00
|
|
|
?: =([%ud 0] r.bem)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [leaf+"ford: no data: {<(en-beam bem(s ~))>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ von=(syve [151 %noun] ~ %cx bem)
|
|
|
|
?~ von
|
|
|
|
[p=cof q=[%1 [[%c %x bem ~] ~ ~]]]
|
|
|
|
?~ u.von
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"file not found" (smyt (en-beam bem)) ~)
|
|
|
|
(new:bo cof u.u.von)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ load-to-mark
|
|
|
|
~/ %load-to-mark
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe for/mark bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ under-dep:bo `dent`[%load bem for]
|
2018-01-26 02:42:33 +03:00
|
|
|
%+ (with-cache:bo %load) (new:bo cof for bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe for/mark bem/beam}
|
|
|
|
^- (bolt (unit vase))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (laze cof bem)
|
2018-03-19 07:18:20 +03:00
|
|
|
|= {cof/cafe mal/(map mark ~)}
|
2016-11-24 07:25:07 +03:00
|
|
|
?: (~(has by mal) for)
|
2018-01-04 05:47:15 +03:00
|
|
|
(tug:bo (lace cof for bem) (with:bo some))
|
|
|
|
=+ opt=(silt (turn ~(tap by mal) head)) :: XX asymptotics
|
|
|
|
%+ tug:bo (find-translation-path cof for opt)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe wuy/(list @tas)}
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ wuy (new:bo cof ~)
|
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
(lace cof i.wuy bem)
|
|
|
|
|= {cof/cafe hoc/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
(tug:bo (run-marks cof i.wuy t.wuy hoc) (with:bo some))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ render-or-load
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe for/mark arg/coin bem/beam}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ catch:bo
|
|
|
|
%+ admit:bo |.(leaf+"load: attempt renderer")
|
|
|
|
(boil cof arg [-.bem /[for]/ren] bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= cof/cafe ^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"load: attempt mark")
|
|
|
|
%+ tug:bo (load-to-mark cof for bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe vux/(unit vase)}
|
2018-01-04 05:47:15 +03:00
|
|
|
?^ vux (new:bo cof u.vux)
|
|
|
|
(err:bo cof leaf+"ford: no {<for>} at {<(en-beam bem)>}" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ translate-mark
|
|
|
|
~/ %translate-mark
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe too/mark for/mark vax/vase}
|
2017-09-13 22:54:55 +03:00
|
|
|
=* translate-mark-jet .
|
|
|
|
:: ~$ translate-mark
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
:: %+ admit:bo |.(leaf+"ford: translate-mark {<too>} {<for>} {<p.vax>}")
|
|
|
|
?: =(too for) (new:bo cof vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
?: |(=(%noun for) =(%$ for))
|
|
|
|
((lake & too) cof vax)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof for)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase} ^- (bolt vase)
|
2017-09-13 22:54:55 +03:00
|
|
|
?: :: =< $ ~% %limb-grow translate-mark-jet ~ |.
|
2016-11-24 07:25:07 +03:00
|
|
|
&((slob %grow p.pro) (slob too p:(slap pro [%limb %grow])))
|
2017-09-13 22:54:55 +03:00
|
|
|
:: ~$ translate-mark-grow
|
|
|
|
:: =< $ ~% %grow translate-mark-jet ~ |.
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: grow {<for>} to {<too>}")
|
|
|
|
%+ tug:bo (keel cof pro [[%& 6]~ vax]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pox/vase}
|
2017-11-02 01:44:05 +03:00
|
|
|
(wrapped-slap cof pox [%tsgr [%limb %grow] [%limb too]])
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof too)
|
2017-09-13 22:54:55 +03:00
|
|
|
~% %grab translate-mark-jet ~
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
=+ :: =< $ ~% %limb-grab + ~ |.
|
|
|
|
^= zat ^- (unit vase)
|
|
|
|
?. (slob %grab p.pro) ~
|
|
|
|
=+ gab=(slap pro [%limb %grab])
|
|
|
|
?. (slob for p.gab) ~
|
|
|
|
`(slap gab [%limb for])
|
|
|
|
?~ zat
|
2017-09-13 22:54:55 +03:00
|
|
|
:: ~$ translate-mark-miss
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "ford: no translate-mark: {<[for too]>}"]~)
|
2017-09-13 22:54:55 +03:00
|
|
|
:: ~$ translate-mark-grab
|
2017-09-13 22:58:24 +03:00
|
|
|
~| [%translate-mark-maul for too]
|
2016-11-24 07:25:07 +03:00
|
|
|
(maul cof u.zat vax)
|
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ translation-targets
|
|
|
|
~/ %translation-targets
|
|
|
|
|= {cof/cafe for/mark} ^- (bolt (set @tas))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (catch:bo (fang cof for) |=(cof/cafe (new:bo cof %void ~)))
|
|
|
|
%- with:bo
|
2017-09-13 22:54:55 +03:00
|
|
|
|= vax/vase ^- (set mark)
|
|
|
|
%- =- ~(gas in `(set mark)`-)
|
|
|
|
?. (slob %grow p.vax) ~
|
|
|
|
(silt (sloe p:(slap vax [%limb %grow])))
|
|
|
|
?. (slob %garb p.vax) ~
|
|
|
|
=+ (slap vax [%limb %garb])
|
|
|
|
(fall ((soft (list mark)) q) ~)
|
|
|
|
::
|
|
|
|
++ find-translation-path
|
|
|
|
~/ %find-translation-path
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe too/mark fro/(set mark)}
|
2017-09-13 22:54:55 +03:00
|
|
|
=* find-translation-path-jet .
|
|
|
|
:: ~& find-translation-path+[too=too fro=fro]
|
2018-01-04 05:47:15 +03:00
|
|
|
:: =- =+ (tug:bo - (with:bo |=(a/(list mark) ~&(find-translation+a ~))))
|
2016-11-24 07:25:07 +03:00
|
|
|
:: +<
|
|
|
|
^- (bolt (list mark))
|
2017-09-13 22:54:55 +03:00
|
|
|
=; gro/(burg (set mark) (list mark))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ catch:bo (gro cof too ~ ~) :: XX better grab layer
|
2017-09-13 22:54:55 +03:00
|
|
|
~% %grab find-translation-path-jet ~
|
2018-01-04 05:47:15 +03:00
|
|
|
|= cof/cafe
|
|
|
|
%+ admit:bo |.(leaf+"cast: finding grabbable grow destinations")
|
|
|
|
%+ tug:bo (fang cof too)
|
|
|
|
|= {cof/cafe vax/vase} ^- (bolt (list mark))
|
|
|
|
?. (slob %grab p.vax) (new:bo cof ~)
|
|
|
|
%+ tug:bo
|
|
|
|
(gro cof (silt (sloe p:(slap vax [%limb %grab]))))
|
|
|
|
(with:bo |=(a/path (welp a /[too])))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe tag/(set mark)}
|
|
|
|
=| $: war/(map mark (list mark))
|
2016-12-16 09:34:01 +03:00
|
|
|
pax/(list mark)
|
2016-11-24 07:25:07 +03:00
|
|
|
won/{p/mark q/(qeu mark)}
|
|
|
|
==
|
|
|
|
%. [cof fro]
|
|
|
|
|= {cof/cafe fro/(set mark)} ^- (bolt (list mark))
|
|
|
|
?: (~(has in tag) p.won)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof (flop pax))
|
2017-09-22 04:45:27 +03:00
|
|
|
=+ for=(skip ~(tap in fro) ~(has by war))
|
2016-11-24 07:25:07 +03:00
|
|
|
=. for (sort for aor) :: XX useful?
|
|
|
|
=: q.won (~(gas to q.won) for)
|
|
|
|
war (~(gas by war) (turn for |=(mark [+< pax])))
|
|
|
|
==
|
|
|
|
?: =(~ q.won)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=. won ~(get to q.won)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (translation-targets cof p.won)
|
2017-09-13 22:54:55 +03:00
|
|
|
|= {cof/cafe fro/(set mark)}
|
|
|
|
=. pax [p.won (~(got by war) p.won)]
|
|
|
|
^$(cof cof, fro fro)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ run-marks
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe for/mark yaw/(list mark) vax/vase}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ yaw (new:bo cof vax)
|
|
|
|
%+ tug:bo (translate-mark cof i.yaw for vax)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe yed/vase}
|
|
|
|
^$(cof cof, for i.yaw, yaw t.yaw, vax yed)
|
|
|
|
::
|
2017-09-13 22:54:55 +03:00
|
|
|
++ mint-cached
|
|
|
|
~/ %mint-cached
|
2017-11-22 23:28:31 +03:00
|
|
|
|= {cof/cafe sut/type gen/hoon}
|
|
|
|
^- (bolt (pair type nock))
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (with-cache:bo %slim) (new:bo cof sut gen)
|
2017-11-17 00:50:03 +03:00
|
|
|
|= {cof/cafe sut/type gen/hoon}
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ puz=(mule |.((~(mint ut sut) [%noun gen])))
|
|
|
|
?- -.puz
|
2018-03-19 20:43:25 +03:00
|
|
|
%| (err:bo cof p.puz)
|
|
|
|
%& (new:bo cof p.puz)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ wrapped-slap
|
2017-09-13 22:54:55 +03:00
|
|
|
~/ %wrapped-slap
|
2017-11-17 00:50:03 +03:00
|
|
|
|= {cof/cafe vax/vase gen/hoon}
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (mint-cached cof p.vax gen)
|
2017-11-22 23:28:31 +03:00
|
|
|
|= {cof/cafe typ/type fol/nock}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (from-toon:bo cof) (mock [q.vax fol] (sloy syve))
|
2016-11-24 07:25:07 +03:00
|
|
|
|=(val/* `vase`[typ val])
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
++ make-with-concrete-revision :: numerical r.bek
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe kas/silk}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (to-concrete-revision cof bek ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
|=({cof/cafe byk/beak *} (make(bek byk) cof kas))
|
|
|
|
::
|
|
|
|
++ abbrev :: shorten coin
|
|
|
|
|=(a/coin ?-(-.a $$ a, $blob a(p (mug p.a)), $many a(p (turn p.a ..$))))
|
|
|
|
::
|
|
|
|
++ make :: reduce silk
|
|
|
|
|= {cof/cafe kas/silk}
|
|
|
|
:: =+ ^= pre
|
|
|
|
:: ?+ -.kas `term`-.kas
|
2018-01-04 05:47:15 +03:00
|
|
|
:: ^ %cell:bo
|
2016-12-02 22:34:07 +03:00
|
|
|
:: $bake [-.kas p.kas (en-beam r.kas) ~(rent co (abbrev q.kas))]
|
|
|
|
:: $core [-.kas (en-beam p.kas)]
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ==
|
|
|
|
:: ~? !=(%$ pre) [dyv `term`(cat 3 %make (fil 3 dyv ' ')) pre]
|
|
|
|
:: =- ~? !=(%$ pre) [dyv `term`(cat 3 %made (fil 3 dyv ' ')) pre] -
|
2017-09-12 02:19:55 +03:00
|
|
|
::
|
|
|
|
=. dyv +(dyv) :: go deeper
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (bolt gage)
|
|
|
|
?- -.kas
|
|
|
|
^
|
|
|
|
%. [cof p.kas q.kas]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo ^$(cof cof, kas p.kas)))
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo ^$(cof cof, kas q.kas)))
|
2016-11-24 07:25:07 +03:00
|
|
|
== :: XX merge %tabl
|
|
|
|
::
|
|
|
|
|= {cof/cafe bor/cage heg/cage} ^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
(to-gage:bo (new:bo cof (slop q.bor q.heg)))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
$$ (new:bo cof %& p.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
$alts
|
2017-09-13 22:54:55 +03:00
|
|
|
|- ^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.kas (err:bo cof leaf+"ford: out of options" ~)
|
|
|
|
%+ catch:bo (admit:bo %option ^$(cof cof, kas i.p.kas))
|
2017-09-13 22:54:55 +03:00
|
|
|
|= cof/cafe ^- (bolt gage)
|
|
|
|
^$(cof cof, p.kas t.p.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$bake
|
|
|
|
^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
2016-12-02 22:34:07 +03:00
|
|
|
|.(leaf+"ford: bake {<p.kas>} {<(en-beam r.kas)>} {~(rend co q.kas)}")
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (to-concrete-revision cof r.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (render-or-load cof p.kas q.kas bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe vax/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof `gage`[%& p.kas vax])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$bunt
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: bunt {<p.kas>}")
|
|
|
|
%+ tug:bo (fang cof p.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe tux/vase}
|
|
|
|
=+ [typ=p val=q]:(slot 6 tux)
|
|
|
|
=. typ ?+(-.typ typ $face q.typ)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [%& p.kas [typ val]])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$call
|
2018-01-04 05:47:15 +03:00
|
|
|
:: %+ admit:bo |.(leaf+"ford: call {<`@p`(mug kas)>}")
|
2016-11-24 07:25:07 +03:00
|
|
|
%. [cof p.kas q.kas]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo ^$(cof cof, kas p)))
|
2016-11-24 07:25:07 +03:00
|
|
|
|=({cof/cafe p/silk q/silk} ^$(cof cof, kas q))
|
|
|
|
==
|
|
|
|
::
|
|
|
|
|= {cof/cafe gat/cage sam/gage}
|
|
|
|
%. [cof sam]
|
|
|
|
%- tabl-run
|
|
|
|
|= {cof/cafe sam/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
(to-gage:bo (maul cof q.gat q.sam))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
2017-09-20 03:35:45 +03:00
|
|
|
$cast
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: cast {<p.kas>}")
|
|
|
|
%+ tug:bo $(kas q.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
%- tabl-run
|
|
|
|
|= {cof/cafe cay/cage}
|
|
|
|
:: ~$ make-cast
|
|
|
|
:: ~> %live. :: ~$(make-cast-{to}--{from} ~)
|
|
|
|
:: (rap 3 %make-cast- p.kas '--' p.cay ~)
|
|
|
|
^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: casting {<p.cay>} to {<p.kas>}")
|
|
|
|
%+ tug:bo (find-translation-path cof p.kas p.cay `~)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe wuy/(list @tas)}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ wuy
|
2017-09-13 22:54:55 +03:00
|
|
|
(translate-mark cof p.kas p.cay q.cay)
|
|
|
|
(run-marks cof i.wuy t.wuy q.cay)
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(vax/vase [%& p.kas vax]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$core
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: core {<(en-beam p.kas)>}")
|
2016-11-08 21:28:33 +03:00
|
|
|
:: code runtime behaviour is frequently affected by marks
|
|
|
|
:: TODO: track this more formally
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ add-dep:bo [%beam [bek /mar] %z]
|
|
|
|
(tug:bo (load-core cof p.kas) (with:bo |=(a/vase [%& %core a])))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$diff
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
|
|
|
|.(leaf+"ford: diff {<`@p`(mug p.kas)>} {<`@p`(mug q.kas)>}")
|
2016-11-24 07:25:07 +03:00
|
|
|
(diff cof p.kas q.kas)
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
$dude (admit:bo p.kas $(kas q.kas))
|
2016-11-24 07:25:07 +03:00
|
|
|
$file
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: file {<p.kas>}")
|
|
|
|
%+ tug:bo (load-file cof p.kas)
|
|
|
|
(with:bo |=(cay/cage [%& cay]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$flag
|
|
|
|
=+ rez=$(kas q.kas)
|
|
|
|
?: ?=($1 -.q.rez) rez
|
2018-01-09 01:48:22 +03:00
|
|
|
=- rez(p.q -) :: TODO name p.q.rez?
|
2018-01-04 05:47:15 +03:00
|
|
|
|- ^- (set dent)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ p.kas p.q.rez
|
|
|
|
=. p.q.rez $(p.kas l.p.kas)
|
|
|
|
=. p.q.rez $(p.kas r.p.kas)
|
|
|
|
?^ n.p.kas
|
2018-01-04 05:47:15 +03:00
|
|
|
(~(put in p.q.rez) %beam n.p.kas %z)
|
2018-01-09 01:48:22 +03:00
|
|
|
=/ dap=(unit (set dent)) (~(get by def.deh.bay) n.p.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ dap ~&(flag-missed+n.p.kas p.q.rez)
|
2018-01-09 01:48:22 +03:00
|
|
|
(~(uni in p.q.rez) u.dap)
|
2016-11-24 07:25:07 +03:00
|
|
|
:: XX revisit ^ during dependency review
|
|
|
|
$join
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|.
|
|
|
|
leaf+"ford: join {<p.kas>} {<`@p`(mug q.kas)>} {<`@p`(mug r.kas)>}"
|
|
|
|
(join cof p.kas q.kas r.kas)
|
|
|
|
::
|
|
|
|
$mash
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|.
|
|
|
|
leaf+"ford: mash {<p.kas>} {<`@p`(mug q.kas)>} {<`@p`(mug r.kas)>}"
|
|
|
|
(mash cof p.kas q.kas r.kas)
|
|
|
|
::
|
|
|
|
$mute (kale cof p.kas q.kas)
|
|
|
|
$pact
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo
|
|
|
|
|.(leaf+"ford: pact {<`@p`(mug p.kas)>} {<`@p`(mug q.kas)>}")
|
2016-11-24 07:25:07 +03:00
|
|
|
(pact cof p.kas q.kas)
|
|
|
|
::
|
2018-01-04 05:47:15 +03:00
|
|
|
$plan (to-gage:bo ((meow p.kas q.kas) cof r.kas))
|
|
|
|
$reef
|
|
|
|
%+ add-dep:bo [%beam [bek /arvo/hoon] %z]
|
|
|
|
%+ add-dep:bo [%beam [bek /arvo/zuse] %z]
|
|
|
|
:: until /? is in use, any hoon may implicitly depend on arvo types
|
|
|
|
(to-gage:bo (new:bo cof pit))
|
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
$ride
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: build failed {<hen>}")
|
|
|
|
%+ tug:bo $(kas q.kas)
|
2016-11-24 07:25:07 +03:00
|
|
|
%- tabl-run
|
|
|
|
|= {cof/cafe cay/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
(to-gage:bo (wrapped-slap cof q.cay p.kas))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$tabl
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^- (bolt (list (pair gage gage)))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.kas (new:bo cof ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
%. [cof p.kas]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe _p.kas} (catch-error:bo ^^$(cof cof, kas p.i)))
|
|
|
|
|=({cof/cafe _p.kas} (catch-error:bo ^^$(cof cof, kas q.i)))
|
2016-11-24 07:25:07 +03:00
|
|
|
|=({cof/cafe _p.kas} ^$(cof cof, p.kas t))
|
|
|
|
==
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=({k/gage v/gage t/(list {gage gage})} [[k v] t]))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(rex/(list (pair gage gage)) [%tabl rex]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2016-12-16 09:34:01 +03:00
|
|
|
$vale
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: vale {<p.kas>} {<`@p`(mug q.kas)>}")
|
|
|
|
%+ tug:bo ((lake & p.kas) cof [%noun q.kas])
|
|
|
|
(with:bo |=(vax/vase `gage`[%& p.kas vax]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
$volt
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: volt {<p.p.kas>}")
|
|
|
|
%+ tug:bo $(kas [%bunt p.p.kas])
|
2016-11-24 07:25:07 +03:00
|
|
|
%- tabl-run
|
|
|
|
|= {cof/cafe cay/cage}
|
|
|
|
^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof [%& p.p.kas p.q.cay q.p.kas])
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ malt :: cached slit
|
|
|
|
~/ %slit
|
2017-11-16 23:44:27 +03:00
|
|
|
|= {cof/cafe gat/type sam/type}
|
|
|
|
^- (bolt type)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (with-cache:bo %slit) (new:bo cof gat sam)
|
2017-11-16 23:44:27 +03:00
|
|
|
|= {cof/cafe gat/type sam/type}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(%.(%have ~(dunk ut sam)))
|
|
|
|
%+ admit:bo |.(%.(%want ~(dunk ut (~(peek ut gat) %free 6))))
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ top=(mule |.((slit gat sam)))
|
|
|
|
?- -.top
|
2018-03-19 20:43:25 +03:00
|
|
|
%| (err:bo cof p.top)
|
|
|
|
%& (new:bo cof p.top)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ maul :: slam
|
|
|
|
~/ %maul
|
|
|
|
|= {cof/cafe gat/vase sam/vase}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (malt cof p.gat p.sam)
|
2017-11-16 23:44:27 +03:00
|
|
|
|= {cof/cafe typ/type}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ (from-toon:bo cof) (mong [q.gat q.sam] (sloy syve))
|
2016-11-24 07:25:07 +03:00
|
|
|
|=(val/* `vase`[typ val])
|
|
|
|
::
|
|
|
|
++ meow :: assemble
|
|
|
|
:: =+ dyv=0
|
|
|
|
|= {how/beam arg/coin}
|
2017-11-17 00:50:03 +03:00
|
|
|
=| $: rop/(map term (pair hoof hoon)) :: structures
|
|
|
|
bil/(map term (pair hoof hoon)) :: libraries
|
|
|
|
boy/(list hoon) :: body stack
|
2016-11-24 07:25:07 +03:00
|
|
|
lit/? :: drop arguments
|
|
|
|
==
|
|
|
|
~% %meow ..meow ~
|
2018-01-04 05:47:15 +03:00
|
|
|
=< abut
|
2016-11-24 07:25:07 +03:00
|
|
|
|%
|
|
|
|
++ able :: assemble preamble
|
2017-11-17 00:50:03 +03:00
|
|
|
^- hoon
|
2017-09-20 23:15:30 +03:00
|
|
|
:+ %tsgr
|
2017-03-26 07:25:04 +03:00
|
|
|
?: =(~ rop)
|
|
|
|
[%$ 1]
|
2017-09-18 04:32:20 +03:00
|
|
|
:+ %brcn [~ ~]
|
2017-03-31 23:42:51 +03:00
|
|
|
=- [[0 [~ ~] -] ~ ~]
|
2017-11-17 00:50:03 +03:00
|
|
|
(~(run by rop) |=({^ a/hoon} [~ %ash a]))
|
2017-03-26 07:25:04 +03:00
|
|
|
?: =(~ bil)
|
|
|
|
[%$ 1]
|
2017-09-18 04:32:20 +03:00
|
|
|
:+ %brcn [~ ~]
|
2017-03-31 23:42:51 +03:00
|
|
|
=- [[0 [~ ~] -] ~ ~]
|
2017-11-17 00:50:03 +03:00
|
|
|
(~(run by bil) |=({^ a/hoon} [~ %ash a]))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ abut :: generate
|
2018-01-04 05:47:15 +03:00
|
|
|
|= {cof/cafe hyd/hood} :: TODO: $ and |^
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (apex cof hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..abut}
|
2016-11-24 07:25:07 +03:00
|
|
|
=. ..abut sel
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (to-cage:bo (make cof %reef ~))
|
|
|
|
|= {cof/cafe mark zus/vase}
|
|
|
|
%+ tug:bo (wrapped-slap cof zus able)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bax/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (chap cof bax [%fsdt fan.hyd])
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe mar/mark gox/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (wrapped-slap cof (slop gox bax) [%tssg (flop boy)])
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe fin/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof fin)
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ~> %slog.[0 ~(duck ut p.q.cay)]
|
|
|
|
::
|
|
|
|
++ apex :: build to body
|
|
|
|
|= {cof/cafe hyd/hood}
|
|
|
|
^- (bolt _..apex)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (body cof src.hyd)
|
2016-11-24 07:25:07 +03:00
|
|
|
::=. dyv +(dyv)
|
|
|
|
::~& [`term`(cat 3 %apex (fil 4 dyv ' ')) `path`(flop s.how) libs]
|
|
|
|
::=- ~& [`term`(cat 3 %xepa (fil 4 dyv ' ')) `path`(flop s.how)] -
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..apex}
|
2016-11-24 07:25:07 +03:00
|
|
|
=. ..apex sel
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (neck cof lib.hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..apex}
|
2016-11-24 07:25:07 +03:00
|
|
|
=. ..apex sel(boy boy)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (head cof sur.hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..apex}
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof sel)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ body :: produce functions
|
|
|
|
|= {cof/cafe src/(list hoop)}
|
|
|
|
^- (bolt _..body)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ src (new:bo cof ..body)
|
|
|
|
%+ tug:bo (wilt cof i.src)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..body}
|
2016-11-24 07:25:07 +03:00
|
|
|
^$(src t.src, ..body sel, cof cof)
|
|
|
|
::
|
|
|
|
++ chai :: atomic map
|
|
|
|
|= {cof/cafe bax/vase hon/horn}
|
|
|
|
^- (bolt vase)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
|
|
|
%+ tug:bo (lads cof how)
|
|
|
|
%- some-in-map:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe dir/knot}
|
|
|
|
=+ nod=(chap(s.how [dir s.how]) cof bax hon)
|
|
|
|
?: ?=($2 -.q.nod)
|
2018-05-04 03:59:10 +03:00
|
|
|
(new:bo cof ~)
|
|
|
|
(tug:bo nod (with:bo some))
|
|
|
|
%- with:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|= doy/(map @ cage) ^- vase
|
|
|
|
?~ doy [[%atom %n `0] 0]
|
|
|
|
%+ slop
|
|
|
|
(slop [[%atom %ta ~] p.n.doy] q.q.n.doy)
|
|
|
|
(slop $(doy l.doy) $(doy r.doy))
|
|
|
|
::
|
|
|
|
++ chap :: produce resources
|
|
|
|
|= {cof/cafe bax/vase hon/horn}
|
|
|
|
^- (bolt cage)
|
|
|
|
?- -.hon
|
2017-09-13 22:54:55 +03:00
|
|
|
$fssg
|
2018-01-04 05:47:15 +03:00
|
|
|
(tug:bo (wrapped-slap cof bax p.hon) (with:bo |=(a/vase [%noun a])))
|
2017-09-13 22:54:55 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fsbc
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (wrapped-slap cof bax p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe gat/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (wrapped-slap cof !>(~) ((jock |) arg))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe val/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (maul cof gat (slop !>(how) val))
|
|
|
|
(with:bo |=(a/vase noun+a))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fsbr
|
2017-09-13 22:54:55 +03:00
|
|
|
|- ^- (bolt cage)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.hon (err:bo cof leaf+"ford: out of options" ~)
|
|
|
|
%+ catch:bo (admit:bo %option ^$(cof cof, hon i.p.hon))
|
2017-09-13 22:54:55 +03:00
|
|
|
|= cof/cafe ^- (bolt cage)
|
|
|
|
^$(cof cof, p.hon t.p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fshx
|
2018-01-04 05:47:15 +03:00
|
|
|
=+ [dep bot]=(pin:bo $(hon p.hon)) :: XX review
|
|
|
|
%+ tug:bo bot
|
|
|
|
%- with:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {mark vax/vase}
|
|
|
|
[%noun (slop [atom+['uvH' ~] dep] vax)]
|
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fsts
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo $(hon q.hon)
|
|
|
|
%- with:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {mar/mark vax/vase}
|
2017-03-22 03:56:51 +03:00
|
|
|
[mar [%face [~ p.hon] p.vax] q.vax]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fsdt
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^- (bolt (list vase))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.hon (new:bo cof ~)
|
|
|
|
%+ tug:bo ^$(cof cof, hon i.p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe mar/mark vax/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo ^$(cof cof, p.hon t.p.hon)
|
|
|
|
(with:bo |=(tev/(list vase) [vax tev]))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe tev/(list vase)}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ new:bo cof
|
2016-11-24 07:25:07 +03:00
|
|
|
|- ^- vase
|
|
|
|
?~ tev [[%atom %n `~] 0]
|
|
|
|
(slop i.tev $(tev t.tev))
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(a/vase noun+a))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fscm
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ opt=|.(>(turn p.hon |=({a/path ^} a))<)
|
|
|
|
|- ^- (bolt cage)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.hon (err:bo cof leaf+"ford: no match" >(en-beam how)< $:opt ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?: =(p.i.p.hon (scag (lent p.i.p.hon) (flop s.how)))
|
|
|
|
^$(hon q.i.p.hon)
|
2018-01-04 05:47:15 +03:00
|
|
|
$(p.hon t.p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fscn $(hon p.hon, lit |)
|
|
|
|
$fspm
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo $(hon q.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe cay/cage} ^- (bolt cage)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ p.hon (new:bo cof cay)
|
|
|
|
%+ tug:bo $(p.hon t.p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe cay/cage}
|
2018-01-04 05:47:15 +03:00
|
|
|
(to-cage:bo (make cof %cast i.p.hon $+cay))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fscb
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (chai cof bax p.hon)
|
|
|
|
(with:bo |=(a/vase noun+a))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fssm
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo $(hon q.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe mar/mark sam/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (wrapped-slap cof bax p.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe gat/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (maul cof gat sam)
|
|
|
|
(with:bo |=(a/vase noun+a))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fscl
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ vez=(vang & (en-beam how))
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ tuz=(posh:vez p.hon)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ tuz (err:bo cof leaf+"bad tusk: {<p.hon>}" ~)
|
2017-09-18 21:50:10 +03:00
|
|
|
=+ pax=(plex:vez %clsg u.tuz)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ pax (err:bo cof leaf+"bad path: {<u.tuz>}" ~)
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ bem=(de-beam u.pax)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ bem (err:bo cof leaf+"bad beam: {<u.pax>}" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
$(hon q.hon, how u.bem)
|
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fskt
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo $(hon q.hon)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe mar/mark vax/vase}
|
2018-03-14 07:36:10 +03:00
|
|
|
%+ tug:bo (wrapped-slap cof bax [%bcdt %bcmc p.hon])
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe tug/vase}
|
|
|
|
?. (~(nest ut p.tug) | p.vax)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "type error: {<p.hon>} {<q.hon>}"]~)
|
|
|
|
(new:bo cof [mar p.tug q.vax])
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2017-09-09 02:08:52 +03:00
|
|
|
$fszp
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: hook {<q.hon>} {<(en-beam how)>}")
|
2017-09-09 02:08:52 +03:00
|
|
|
%. [cof how]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
2017-09-13 22:54:55 +03:00
|
|
|
compile-to-hood
|
2018-01-04 05:47:15 +03:00
|
|
|
(meow how arg)
|
2017-09-09 02:08:52 +03:00
|
|
|
(lake | q.hon)
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(a/vase [q.hon a]))
|
2017-09-09 02:08:52 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
$fszy
|
2018-01-04 05:47:15 +03:00
|
|
|
=. arg ?.(lit arg many+~)
|
|
|
|
(to-cage:bo (make cof %bake q.hon arg how))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ head :: consume structures
|
|
|
|
|= {cof/cafe bir/(list hoof)}
|
|
|
|
^- (bolt _..head)
|
|
|
|
?~ bir
|
2018-01-04 05:47:15 +03:00
|
|
|
(new:bo cof ..head)
|
2016-12-02 22:34:07 +03:00
|
|
|
=. boy
|
|
|
|
?: p.i.bir boy
|
2017-09-20 23:15:30 +03:00
|
|
|
(welp boy [[%tscm [%limb q.i.bir] [%$ 1]] ~])
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ byf=(~(get by rop) q.i.bir)
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ byf
|
2016-12-02 22:34:07 +03:00
|
|
|
?. =(+:`hoof`i.bir +:`hoof`p.u.byf)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "structure mismatch: {<~[p.u.byf q.i.bir]>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
$(bir t.bir)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fame cof (hone %sur i.bir))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (compile-to-hood cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe hyd/hood}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (apex(how bem, boy ~) cof hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..head}
|
2016-11-24 07:25:07 +03:00
|
|
|
=. ..head
|
|
|
|
%= sel
|
|
|
|
boy boy
|
|
|
|
how how
|
|
|
|
rop %+ ~(put by (~(uni by rop) rop.sel))
|
2016-12-16 09:34:01 +03:00
|
|
|
q.i.bir
|
2017-09-20 23:15:30 +03:00
|
|
|
[i.bir [%tssg (flop boy.sel)]]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
^^^$(cof cof, bir t.bir)
|
|
|
|
::
|
|
|
|
++ hone :: plant hoof
|
|
|
|
|= {way/@tas huf/hoof}
|
|
|
|
^- beam
|
2016-12-02 22:34:07 +03:00
|
|
|
?~ r.huf
|
|
|
|
how(s ~[q.huf way])
|
|
|
|
[[q.u.r.huf q.how p.u.r.huf] ~[q.huf way]]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ neck :: consume libraries
|
|
|
|
|= {cof/cafe bir/(list hoof)}
|
|
|
|
^- (bolt _..neck)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ bir (new:bo cof ..neck)
|
2016-12-02 22:34:07 +03:00
|
|
|
=. boy
|
|
|
|
?: p.i.bir boy
|
2017-02-14 03:02:25 +03:00
|
|
|
:: ~& ford+tscm+[q.i.bir boy]
|
2018-01-04 05:47:15 +03:00
|
|
|
(welp boy [[%tscm [%limb q.i.bir] [%$ 1]] ~])
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ byf=(~(get by bil) q.i.bir)
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ byf
|
2016-12-02 22:34:07 +03:00
|
|
|
?. =(+:`hoof`i.bir +:`hoof`p.u.byf)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "library mismatch: {<~[p.u.byf i.bir]>}"]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
$(bir t.bir)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fame cof (hone %lib i.bir))
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe bem/beam}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (compile-to-hood cof bem)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe hyd/hood}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (apex(how bem, boy ~) cof hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..neck}
|
2016-12-16 09:34:01 +03:00
|
|
|
=. ..neck
|
2016-11-24 07:25:07 +03:00
|
|
|
%= sel
|
|
|
|
how how
|
|
|
|
bil %+ ~(put by (~(uni by bil) bil.sel))
|
2016-12-02 22:34:07 +03:00
|
|
|
q.i.bir
|
2017-09-20 23:15:30 +03:00
|
|
|
[i.bir [%tssg (flop boy.sel)]]
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
^^^$(cof cof, bir t.bir)
|
|
|
|
::
|
|
|
|
++ wilt :: process body entry
|
|
|
|
|= {cof/cafe hop/hoop}
|
|
|
|
^- (bolt _..wilt)
|
|
|
|
?- -.hop
|
2018-03-19 20:43:25 +03:00
|
|
|
%& (new:bo cof ..wilt(boy [p.hop boy]))
|
|
|
|
%|
|
2016-11-24 07:25:07 +03:00
|
|
|
=. r.p.hop ?:(?=({$ud $0} r.p.hop) r.how r.p.hop)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ admit:bo |.(leaf+"ford: wilt {<[(en-beam p.hop)]>}")
|
|
|
|
%+ tug:bo (load-arch cof p.hop)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe arc/arch}
|
|
|
|
?: (~(has by dir.arc) %hoon)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (compile-to-hood cof p.hop)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe hyd/hood}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (apex(boy ~) cof hyd)
|
2018-02-23 04:06:49 +03:00
|
|
|
(with:bo |:(sel=..wilt sel(boy [[%tssg boy.sel] boy])))
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ [all=(lark (slat %tas) arc) sel=..wilt]
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2017-03-31 23:42:51 +03:00
|
|
|
|- ^- (bolt (pair (map term (pair what foot)) _..wilt))
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ all (new:bo cof ~ ..wilt)
|
|
|
|
%+ tug:bo $(all l.all)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe lef/(map term (pair what foot)) sel/_..wilt}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo ^$(all r.all, cof cof, sel sel)
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe rig/(map term (pair what foot)) sel/_..wilt}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
%= ^^^^$
|
|
|
|
cof cof
|
|
|
|
..wilt sel(boy ~)
|
|
|
|
s.p.hop [p.n.all s.p.hop]
|
|
|
|
==
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe sel/_..wilt}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ new:bo cof
|
2017-03-22 03:56:51 +03:00
|
|
|
:_ sel
|
2017-03-31 23:42:51 +03:00
|
|
|
^- (map term (pair what foot))
|
2017-09-20 23:15:30 +03:00
|
|
|
[[p.n.all [~ %ash [%tssg boy.sel]]] lef rig]
|
2018-02-23 04:06:49 +03:00
|
|
|
|: $:{cof/cafe mav/(map term (pair what foot)) sel/_..wilt}
|
2016-11-24 07:25:07 +03:00
|
|
|
?~ mav
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof [%leaf "source missing: {<(en-beam p.hop)>}"]~)
|
|
|
|
(new:bo cof sel(boy [[%brcn [~ ~] [[0 [~ ~] mav] ~ ~]] boy]))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ pact-hoon :: .hoon special case
|
2016-12-07 06:13:33 +03:00
|
|
|
|= {a/@t b/(urge:clay cord)} ^- @t
|
2016-11-24 07:25:07 +03:00
|
|
|
~| %lurk-hoon
|
2018-01-04 05:47:15 +03:00
|
|
|
=, differ
|
2016-12-03 01:14:39 +03:00
|
|
|
(of-wain (lurk (to-wain a) b))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ pact :: patch
|
|
|
|
|= {cof/cafe kas/silk kos/silk}
|
|
|
|
^- (bolt gage)
|
|
|
|
%. [cof kas kos]
|
2018-01-04 05:47:15 +03:00
|
|
|
;~ tug:bo
|
|
|
|
;~ cell:bo
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof p)))
|
|
|
|
|=({cof/cafe p/silk q/silk} (to-cage:bo (make cof q)))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
|= {cof/cafe cay/cage coy/cage} ^- (bolt gage)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo (fang cof p.cay)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pro/vase}
|
|
|
|
?. (slab %grad p.pro)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ gar=(slap pro [%limb %grad])
|
|
|
|
?@ q.gar
|
|
|
|
=+ for=((sand %tas) q.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
?~ for (err:bo cof leaf+"bad mark ++grad" ~)
|
2017-09-20 03:35:45 +03:00
|
|
|
(make cof `silk`[%cast p.cay %pact [%cast u.for %$ cay] %$ coy])
|
2016-11-24 07:25:07 +03:00
|
|
|
?. (slab %form p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ for=((soft @tas) q:(slap gar [%limb %form]))
|
|
|
|
?~ for
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"bad ++form:grad" ~)
|
2016-11-24 07:25:07 +03:00
|
|
|
?. =(u.for p.coy)
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ err:bo cof :_ ~
|
2016-11-24 07:25:07 +03:00
|
|
|
=< leaf+"pact on data with wrong form: {-} {+<} {+>}"
|
|
|
|
[(trip p.cay) (trip u.for) (trip p.coy)]
|
|
|
|
?. (slab %pact p.gar)
|
2018-01-04 05:47:15 +03:00
|
|
|
(err:bo cof leaf+"no ++pact:grad" ~)
|
|
|
|
%+ tug:bo (keel cof pro [[%& 6]~ q.cay]~)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {cof/cafe pox/vase}
|
2018-01-04 05:47:15 +03:00
|
|
|
%+ tug:bo
|
2016-11-24 07:25:07 +03:00
|
|
|
%^ maul cof
|
|
|
|
(slap (slap pox [%limb %grad]) [%limb %pact])
|
|
|
|
q.coy
|
2018-01-04 05:47:15 +03:00
|
|
|
(with:bo |=(pat/vase [%& p.cay pat]))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
::
|
|
|
|
++ syve
|
|
|
|
^- sley
|
|
|
|
|= {ref/* sec/(unit (set monk)) tem/term bem/beam}
|
|
|
|
^- (unit (unit cage))
|
|
|
|
?> =(%151 -.ref)
|
|
|
|
%- %- lift |= (unit cage) :: ignore block
|
|
|
|
%+ biff +<
|
2016-12-16 09:34:01 +03:00
|
|
|
|= cay/cage ^- (unit cage)
|
2017-11-16 23:44:27 +03:00
|
|
|
?. -:(nets:wa +.ref `type`p.q.cay) :: error if bad type
|
2016-12-02 22:34:07 +03:00
|
|
|
~& :^ %ford-syve-lost `path`[tem (en-beam bem)]
|
2017-11-16 23:44:27 +03:00
|
|
|
want=;;(type +.ref)
|
2016-11-24 07:25:07 +03:00
|
|
|
have=p.q.cay
|
|
|
|
~
|
|
|
|
`cay
|
|
|
|
^- (unit (unit cage))
|
|
|
|
=+ (~(get by keg) tem bem)
|
|
|
|
?^ -
|
|
|
|
(some -)
|
|
|
|
(ska +<.$)
|
|
|
|
--
|
|
|
|
--
|
|
|
|
::
|
|
|
|
--
|
|
|
|
. ==
|
|
|
|
=| axle
|
|
|
|
=* lex -
|
|
|
|
|= {now/@da eny/@ ski/sley} :: activate
|
|
|
|
^? :: opaque core
|
|
|
|
~% %ford-d ..is ~
|
|
|
|
|% ::
|
|
|
|
++ call :: request
|
2017-11-02 01:44:05 +03:00
|
|
|
|= {hen/duct typ/* kyz/(hobo task:able)}
|
2016-11-24 07:25:07 +03:00
|
|
|
^+ [p=*(list move) q=..^$]
|
2017-11-02 01:44:05 +03:00
|
|
|
=/ kis/task:able ?.(?=($soft -.kyz) kyz ((hard task:able) p.kyz))
|
2017-09-12 02:19:55 +03:00
|
|
|
?: ?=($wegh -.kis)
|
2016-11-24 07:25:07 +03:00
|
|
|
:_ ..^$ :_ ~
|
|
|
|
:^ hen %give %mass
|
|
|
|
:- %ford
|
|
|
|
:- %|
|
|
|
|
%- |= a/(list (list mass)) ^- (list mass) :: XX single-home
|
|
|
|
=+ a2=a
|
|
|
|
?~ a !!
|
|
|
|
?~ i.a ~
|
|
|
|
:_ $(a (turn a2 tail))
|
|
|
|
:- p.i.i.a
|
2016-12-16 09:34:01 +03:00
|
|
|
?~ -.q.i.i.a
|
2016-11-24 07:25:07 +03:00
|
|
|
[%& (turn (turn a2 head) |=(b/mass ?~(-.q.b p.q.b !!)))]
|
|
|
|
[%| $(a (turn (turn a2 head) |=(b/mass ?~(-.q.b !! p.q.b))))]
|
2017-02-13 23:43:18 +03:00
|
|
|
%+ turn ~(tap by pol)
|
2016-11-24 07:25:07 +03:00
|
|
|
|= {@ baby}
|
2017-09-13 22:58:24 +03:00
|
|
|
:~ =/ caches/(jar term *)
|
|
|
|
%- ~(rep by jav)
|
2018-01-04 05:47:15 +03:00
|
|
|
|=({{* a/{term *}} b/(jar term *)} (~(add ja b) -.a +.a))
|
2017-09-13 22:58:24 +03:00
|
|
|
=/ cache-for |=(a/term [a %& (~(get ja caches) a)])
|
|
|
|
cache+[%| (turn `(list term)`/hood/bake/slit/slim/slap/slam cache-for)]
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
2018-01-09 01:48:22 +03:00
|
|
|
:+ %depends %| :~
|
|
|
|
definitions+[%& deh]
|
|
|
|
listeners+[%& sup]
|
|
|
|
waiting+[%& out]
|
|
|
|
==
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
tasks+[%& dym tad]
|
|
|
|
==
|
2017-09-12 02:19:55 +03:00
|
|
|
=+ our=p.kis
|
2016-11-24 07:25:07 +03:00
|
|
|
=+ ^= bay ^- baby
|
|
|
|
=+ buy=(~(get by pol.lex) our)
|
|
|
|
?~(buy *baby u.buy)
|
|
|
|
=^ mos bay
|
2017-09-12 02:19:55 +03:00
|
|
|
?- -.kis
|
2018-05-04 03:59:10 +03:00
|
|
|
$wipe ~&(%ford-cache-wiped [~ bay(jav ~)])
|
2016-11-24 07:25:07 +03:00
|
|
|
$wasp
|
2017-09-12 02:19:55 +03:00
|
|
|
(~(wasp za [our hen [now eny ski] ~] bay) q.kis)
|
2016-11-24 07:25:07 +03:00
|
|
|
$exec
|
2017-09-12 02:19:55 +03:00
|
|
|
?~ q.kis
|
|
|
|
~(exec-cancel za [our hen [now eny ski] ~] bay)
|
|
|
|
(~(exec-start za [our hen [now eny ski] ~] bay) u.q.kis)
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
|
|
|
[mos ..^$(pol (~(put by pol) our bay))]
|
|
|
|
::
|
|
|
|
++ doze
|
|
|
|
|= {now/@da hen/duct}
|
|
|
|
^- (unit @da)
|
|
|
|
~
|
|
|
|
::
|
|
|
|
++ load :: highly forgiving
|
|
|
|
:: |=(old/axle ..^$(+>- old))
|
2016-12-16 09:34:01 +03:00
|
|
|
::=. old
|
2016-11-24 07:25:07 +03:00
|
|
|
:: ?. ?=([%0 *] old) old :: remove at 1
|
2016-12-16 09:34:01 +03:00
|
|
|
:: :- %1
|
2016-11-24 07:25:07 +03:00
|
|
|
:: |- ^- *
|
|
|
|
:: ?~ +.old ~
|
|
|
|
:: ?> ?=([n=[p=* q=[tad=* dym=* deh=* jav=*]] l=* r=*] +.old)
|
|
|
|
:: :- [p.n.+.old [tad.q.n.+.old dym.q.n.+.old deh.q.n.+.old ~]]
|
|
|
|
:: [$(+.old l.+.old) $(+.old r.+.old)]
|
|
|
|
|= old/*
|
|
|
|
=+ lox=((soft axle) old)
|
|
|
|
^+ ..^$
|
|
|
|
?~ lox
|
|
|
|
~& %ford-reset
|
|
|
|
..^$
|
|
|
|
..^$(+>- u.lox)
|
|
|
|
::
|
|
|
|
++ scry
|
2018-01-04 05:47:15 +03:00
|
|
|
|= {fur/(unit (set monk)) ren/@tas who/ship syd/desk lot/coin tyl/path}
|
2016-11-24 07:25:07 +03:00
|
|
|
^- (unit (unit cage))
|
|
|
|
[~ ~]
|
|
|
|
::
|
|
|
|
++ stay :: save w+o cache
|
2017-10-14 01:57:15 +03:00
|
|
|
`axle`+>-.$(pol (~(run by pol) |=(a/baby a(jav ~))))
|
2016-11-24 07:25:07 +03:00
|
|
|
::
|
|
|
|
++ take :: response
|
2018-01-09 01:48:22 +03:00
|
|
|
|= {tea/wire hen/duct hin/(hypo sign)} :: TODO tea->wir
|
2016-11-24 07:25:07 +03:00
|
|
|
^+ [p=*(list move) q=..^$]
|
|
|
|
?> ?=({@ @ *} tea)
|
|
|
|
=+ our=(slav %p i.tea)
|
|
|
|
=+ bay=(~(got by pol.lex) our)
|
|
|
|
=^ mos bay
|
2018-01-09 01:48:22 +03:00
|
|
|
~| tea
|
|
|
|
=+ dep=((soft care:clay) i.t.tea)
|
2016-11-24 07:25:07 +03:00
|
|
|
?^ dep
|
2016-12-02 22:34:07 +03:00
|
|
|
=+ bem=(need (de-beam t.t.tea))
|
2018-01-09 01:48:22 +03:00
|
|
|
(~(deps-take za [our hen [now eny ski] ~] bay) u.dep bem q.hin)
|
2017-09-12 02:19:55 +03:00
|
|
|
::
|
2016-11-24 07:25:07 +03:00
|
|
|
?> ?=({@ @ ^} t.t.tea)
|
|
|
|
=+ :* num=(slav %ud i.t.tea)
|
|
|
|
van=((hard vane) i.t.t.tea)
|
2016-12-07 06:13:33 +03:00
|
|
|
ren=((hard care:clay) i.t.t.t.tea)
|
2016-12-02 22:34:07 +03:00
|
|
|
bem=(need (de-beam t.t.t.t.tea))
|
2016-11-24 07:25:07 +03:00
|
|
|
==
|
2017-09-12 02:19:55 +03:00
|
|
|
(~(task-take za [our hen [now eny ski] ~] bay) num [van ren bem] q.hin)
|
2016-11-24 07:25:07 +03:00
|
|
|
[mos ..^$(pol (~(put by pol) our bay))]
|
|
|
|
--
|