mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 05:11:46 +03:00
Merge remote-tracking branch 'origin/master' into typedclay
Conflicts: urb/urbit.pill
This commit is contained in:
commit
6421719732
@ -1889,6 +1889,7 @@
|
||||
=+ rul=(earn pul.p.som.pip)
|
||||
=+ ruf=(earn (erle our pul.p.som.pip(q.q /pul, r ~)))
|
||||
=+ sus=?~(foy.p.som.pip ses q.u.foy.p.som.pip)
|
||||
~& auth-request/secret=`cord`lass
|
||||
=+ ham=(noon our sus whu.p.som.pip rul ruf)
|
||||
[~ pip(pez [%fin %ham ham])]
|
||||
?. =(lass u.pus.p.som.pip)
|
||||
|
@ -272,7 +272,7 @@
|
||||
[%smdt p=twig q=tusk] ::
|
||||
[%smdq p=(list beer)] :: assemble string
|
||||
[%smsg p=twig q=tusk] :: gonads
|
||||
[%smsm p=tile q=twig] :: make sure q is a p
|
||||
[%smsm p=twig q=twig] :: make sure q is a p
|
||||
:: :::::: compositions
|
||||
[%tsbr p=tile q=twig] :: push bunt: =+(_p q)
|
||||
[%tscl p=tram q=twig] :: p changes, then q
|
||||
@ -6662,8 +6662,7 @@
|
||||
::
|
||||
[%smsm *] :: ;;
|
||||
:+ %tsgr [%ktts %v ~ 1] :: => v=.
|
||||
:+ %tsls :+ %ktts %a :: =+ ^= a
|
||||
[%tsgr [%cnzy %v] [%bccm p.gen]] :: =>(v ,{p.gen})
|
||||
:+ %tsls [%ktts %a [%tsgr [%cnzy %v] p.gen]] :: =+ a==>(v {p.gen})
|
||||
:+ %tsls [%ktts %b [%tsgr [%cnzy %v] q.gen]] :: =+ b==>(v {q.gen})
|
||||
:+ %tsls :: =+ c=(a b)
|
||||
[%ktts %c [%cnhp [%cnzy %a] [%cnzy %b] ~]] ::
|
||||
@ -8947,7 +8946,7 @@
|
||||
=+ rev=(plex b)
|
||||
?~ rev ~
|
||||
%- some
|
||||
:+ %smsm a
|
||||
:+ %smsm ~(clam al a)
|
||||
[%dtkt %dtzz %$ %cx u.rev]
|
||||
;~(plug hill rood)
|
||||
==
|
||||
@ -9195,7 +9194,7 @@
|
||||
:~ [':' (rune col %smcl expi)]
|
||||
['.' (rune dot %smdt expi)]
|
||||
['~' (rune sig %smsg expi)]
|
||||
[';' (rune sem %smsm expo)]
|
||||
[';' (rune sem %smsm expb)]
|
||||
==
|
||||
==
|
||||
:- '='
|
||||
|
@ -19,7 +19,7 @@
|
||||
=+ ark=;;(arch .^(%cy pax))
|
||||
?^ q.ark
|
||||
:- leaf/(spud pax)
|
||||
%+ turn (lore ;;(@t .^(%cx pax)))
|
||||
%+ turn (lore ;;(,@t .^(%cx pax)))
|
||||
|=(a=cord leaf/(trip a))
|
||||
?- r.ark :: handle ambiguity
|
||||
~
|
||||
|
9
main/app/code/core.hook
Normal file
9
main/app/code/core.hook
Normal file
@ -0,0 +1,9 @@
|
||||
:: Show passcode
|
||||
/+ sh-utils
|
||||
|_ [hide ~]
|
||||
++ peer ,_`.
|
||||
++ poke--args
|
||||
%+ args-into-gate .
|
||||
=+ pax=/(crip <our>)/code/(crip <lat>)/(crip <our>)
|
||||
,_tang/~[leaf/"{<(,@p .^(%a pax))>}"]
|
||||
--
|
@ -12,6 +12,6 @@
|
||||
::
|
||||
++ pour
|
||||
|= [ost=bone * sih=*]
|
||||
~& poke-resp/;;([term term] [&1 &2]:sih)
|
||||
~& poke-resp/(,[term term] [&1 &2]:sih)
|
||||
:_(+> [ost %pass / %g %cide %$]~)
|
||||
--
|
||||
|
@ -10,8 +10,7 @@
|
||||
::
|
||||
|% ::
|
||||
++ axle ::
|
||||
$: %0 :: version
|
||||
tiv=? :: typing?
|
||||
$: tiv=? :: typing?
|
||||
pid=@u :: next process id
|
||||
pax=_`path`/=try= :: working directory
|
||||
act=(unit span) :: active child
|
||||
|
@ -58,6 +58,36 @@
|
||||
[%vega p=path] ::
|
||||
== == ==
|
||||
--
|
||||
::
|
||||
:::: from future import wick, pack, pick XX remove on breach or kelvin bump
|
||||
::
|
||||
|%
|
||||
++ wick :: span format
|
||||
|= a=@
|
||||
^- (unit ,@ta)
|
||||
=+ b=(rip 3 a)
|
||||
=- ?^(b ~ (some (rap 3 (flop c))))
|
||||
=| c=tape
|
||||
|- ^- [b=tape c=tape]
|
||||
?~ b [~ c]
|
||||
?. =('~' i.b)
|
||||
$(b t.b, c [i.b c])
|
||||
?~ t.b [b ~]
|
||||
?- i.t.b
|
||||
%'~' $(b t.t.b, c ['~' c])
|
||||
%'-' $(b t.t.b, c ['_' c])
|
||||
@ [b ~]
|
||||
==
|
||||
::
|
||||
++ pack :: light path encoding
|
||||
|= [a=term b=path] ^- span
|
||||
%+ rap 3 :- (wack a)
|
||||
(turn b |=(c=span (cat 3 '_' (wack c))))
|
||||
::
|
||||
++ pick :: light path decoding
|
||||
|= a=span ^- (unit ,[p=term q=path])
|
||||
(rush a (most cab (sear wick urt:ab)))
|
||||
--
|
||||
!:
|
||||
:::: helpers
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user