Merge branch 'test' of https://github.com/urbit/urbit into test

Conflicts:
	urb/urbit.pill
This commit is contained in:
Philip C Monk 2015-05-01 16:41:34 -04:00
commit dc773b37f3
5 changed files with 55 additions and 31 deletions

View File

@ -1088,7 +1088,10 @@
=+ vid=(read-at-aeon:ze u.nao p.q.i.xiq) =+ vid=(read-at-aeon:ze u.nao p.q.i.xiq)
:: ~& %red-at-aeon :: ~& %red-at-aeon
?~ vid ?~ vid
~& [%oh-well mood=p.q.i.xiq aeon=nao] ?~ u.nao
~& [%oh-poor `path`[syd '0' r.p.q.i.xiq]]
$(xiq t.xiq)
~& [%oh-well desk=syd mood=p.q.i.xiq aeon=u.nao]
$(xiq t.xiq, xaq [i.xiq xaq]) $(xiq t.xiq, xaq [i.xiq xaq])
$(xiq t.xiq, ..wake (balk p.i.xiq u.vid p.q.i.xiq)) $(xiq t.xiq, ..wake (balk p.i.xiq u.vid p.q.i.xiq))
:: ::
@ -2589,6 +2592,7 @@
++ scry :: inspect ++ scry :: inspect
|= [fur=(unit (set monk)) ren=@tas his=ship syd=desk lot=coin tyl=path] |= [fur=(unit (set monk)) ren=@tas his=ship syd=desk lot=coin tyl=path]
^- (unit (unit cage)) ^- (unit (unit cage))
:: ~& scry/[ren =-(~!(- `path`-) [(scot %p his) syd ~(rent co lot) tyl])]
=+ got=(~(has by fat.ruf) his) =+ got=(~(has by fat.ruf) his)
=+ luk=?.(?=(%$ -.lot) ~ ((soft case) p.lot)) =+ luk=?.(?=(%$ -.lot) ~ ((soft case) p.lot))
?~ luk [~ ~] ?~ luk [~ ~]

View File

@ -322,7 +322,7 @@
$(q.p.p.sih t.q.p.p.sih) $(q.p.p.sih t.q.p.p.sih)
:: ::
[%c %note *] [%c %note *]
(from %out (tuba ~(ram re q.+.sih))) (from %out (tuba p.sih ' ' ~(ram re q.sih)))
:: ::
[%c %writ *] [%c %writ *]
init init

View File

@ -214,6 +214,17 @@
|= [cog=@tas typ=type] |= [cog=@tas typ=type]
(~(has in (sa (sloe typ))) cog) (~(has in (sa (sloe typ))) cog)
:: ::
++ norm :: normalize beam rev
|= [ska=sled bem=beam]
%_ bem
r ?: ?=(%ud -.r.bem) r.bem
=+ num=(ska ~ %cw bem(s ~))
?. ?=([~ ~ * * @u] num)
~& norm-lost/(tope bem(s ~))
r.bem :: XX
[%ud q.q.u.u.num]
==
::
++ za :: per event ++ za :: per event
=| $: $: $: our=ship :: computation owner =| $: $: $: our=ship :: computation owner
bek=beak :: desk context bek=beak :: desk context
@ -290,19 +301,20 @@
|= dep=@uvH |= dep=@uvH
?~ dep ?~ dep
~&(dep-empty/hen +>.$) ~&(dep-empty/hen +>.$)
=+ dap=~|(dep-missed/dep (~(got by deh.bay) dep)) =+ dap=(~(get by deh.bay) dep)
?- -.dap ?~ dap ~&(dep-missed/dep +>.$) :: XX ~| !!
?- -.u.dap
%done +>.$(mow :_(mow [hen %give %news ~])) %done +>.$(mow :_(mow [hen %give %news ~]))
%sent %sent
=. p.dap (~(put in p.dap) hen) =. p.u.dap (~(put in p.u.dap) hen)
+>.$(deh.bay (~(put by deh.bay) dep dap)) +>.$(deh.bay (~(put by deh.bay) dep u.dap))
%init %init
%_ +>.$ %_ +>.$
deh.bay deh.bay
(~(put by deh.bay) dep [%sent [hen ~ ~] p.dap]) (~(put by deh.bay) dep [%sent [hen ~ ~] p.u.dap])
:: ::
mow mow
=< (welp :_(mow (turn (~(tap in p.dap)) .))) =< (welp :_(mow (turn (~(tap in p.u.dap)) .)))
|= bem=beam |= bem=beam
:^ hen %pass [(scot %p our) (scot %uv dep) (tope bem)] :^ hen %pass [(scot %p our) (scot %uv dep) (tope bem)]
[%c [%warp [our p.bem] q.bem ~ [%next %y r.bem (flop s.bem)]]] [%c [%warp [our p.bem] q.bem ~ [%next %y r.bem (flop s.bem)]]]
@ -356,7 +368,7 @@
:^ %pass :^ %pass
[(scot %p our) (scot %ud num) (scot %ud p.kig) (tope bek ~)] [(scot %p our) (scot %ud num) (scot %ud p.kig) (tope bek ~)]
%c %c
:: ~& >> [%camping bem] ~& >> [%camping bem]
[%warp [our p.bem] q.bem [~ %sing ren r.bem (flop s.bem)]] [%warp [our p.bem] q.bem [~ %sing ren r.bem (flop s.bem)]]
== ==
:: ::
@ -861,12 +873,12 @@
%+ cope (lend cof bem) %+ cope (lend cof bem)
|= [cof=cafe arc=arch] |= [cof=cafe arc=arch]
?^ q.arc ?^ q.arc
(cope (cope (liar cof bem) (lake for)) (fest (norm bem))) (cope (cope (liar cof bem) (lake for)) (fest (norm ska bem)))
?: (~(has by r.arc) %hook) ?: (~(has by r.arc) %hook)
%+ cope (fade cof %hook bem) %+ cope (fade cof %hook bem)
|= [cof=cafe hyd=hood] |= [cof=cafe hyd=hood]
%+ cope (cope (abut:(meow bem arg) cof hyd) (lake for)) %+ cope (cope (abut:(meow bem arg) cof hyd) (lake for))
(fest (norm bem)) (fest (norm ska bem))
(flue cof) (flue cof)
:: ::
++ lake :: check/coerce ++ lake :: check/coerce
@ -999,7 +1011,7 @@
?^ vux (fine cof u.vux) ?^ vux (fine cof u.vux)
?~ s.mob ?~ s.mob
%+ flag %+ flag
(norm mob) (norm ska mob)
(flaw cof leaf/"beam unavailable" (smyt (tope bem)) ~) (flaw cof leaf/"beam unavailable" (smyt (tope bem)) ~)
^$(s.mob t.s.mob, mer [i.s.mob mer]) ^$(s.mob t.s.mob, mer [i.s.mob mer])
:: ::
@ -1548,15 +1560,6 @@
== ==
-- --
:: ::
++ norm :: normalize beam rev
|= bem=beam
%_ bem
r ?: ?=(%ud -.r.bem) r.bem
=+ num=(ska ~ %cw bem(s ~))
?. ?=([~ ~ * * @u] num) r.bem :: XX
[%ud q.q.u.u.num]
==
::
++ pact :: patch ++ pact :: patch
|= [cof=cafe kas=silk kos=silk] |= [cof=cafe kas=silk kos=silk]
^- (bolt gage) ^- (bolt gage)
@ -1657,7 +1660,7 @@
=^ mos bay =^ mos bay
?: ?=(%wasp -.q.hic) ?: ?=(%wasp -.q.hic)
abet:(~(awap za [[our *beak hen] [now eny ski] ~] bay) q.q.hic) abet:(~(awap za [[our *beak hen] [now eny ski] ~] bay) q.q.hic)
=* bek q.q.hic =+ bek=-:(norm ski q.q.hic ~)
abet:(~(apex za [[our bek hen] [now eny ski] ~] bay) r.q.hic) abet:(~(apex za [[our bek hen] [now eny ski] ~] bay) r.q.hic)
[mos ..^$(pol (~(put by pol) our bay))] [mos ..^$(pol (~(put by pol) our bay))]
:: ::
@ -1667,7 +1670,8 @@
~ ~
:: ::
++ load :: highly forgiving ++ load :: highly forgiving
|= old=* |= old=axle
..^$(+>- old)
::=. old ::=. old
:: ?. ?=([%0 *] old) old :: remove at 1 :: ?. ?=([%0 *] old) old :: remove at 1
:: :- %1 :: :- %1
@ -1676,12 +1680,12 @@
:: ?> ?=([n=[p=* q=[tad=* dym=* deh=* jav=*]] l=* r=*] +.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 ~]] :: :- [p.n.+.old [tad.q.n.+.old dym.q.n.+.old deh.q.n.+.old ~]]
:: [$(+.old l.+.old) $(+.old r.+.old)] :: [$(+.old l.+.old) $(+.old r.+.old)]
=+ lox=((soft axle) old) :: =+ lox=((soft axle) old)
^+ ..^$ :: ^+ ..^$
?~ lox :: ?~ lox
~& %ford-reset :: ~& %ford-reset
..^$ :: ..^$
..^$(+>- u.lox) :: ..^$(+>- u.lox)
:: ::
++ scry ++ scry
|= [fur=(unit (set monk)) ren=@tas who=ship syd=desk lot=coin tyl=path] |= [fur=(unit (set monk)) ren=@tas who=ship syd=desk lot=coin tyl=path]

View File

@ -0,0 +1,15 @@
::
:::: /hook/gate/unix/helm/cat
::
/? 314
::
::::
!:
|= $: [now=@da eny=@uvI bec=beak]
[[syd=@tas syn=?(~ [? ~])] ~]
==
:+ %helm-unix
syd
?~ syn
~
`-.syn

View File

@ -10,6 +10,7 @@
:: ::
|% |%
++ main :: main story ++ main :: main story
|= our=ship ^- cord |= our=ship ^- cord
=+ can=(clan our) =+ can=(clan our)
?+ can %porch ?+ can %porch