2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-03-25 21:12:35 +03:00
|
|
|
:::: /hook/core/radio/app
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
/? 314
|
2015-03-30 09:43:48 +03:00
|
|
|
/- *radio, *twitter, *sole
|
|
|
|
/+ radio, sole
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
::::
|
|
|
|
::
|
2014-07-03 02:08:02 +04:00
|
|
|
!:
|
2014-12-18 05:34:40 +03:00
|
|
|
=> |% :: data structures
|
|
|
|
++ house ,[%1 house-1] :: full state
|
|
|
|
++ house-any :: app history
|
2015-03-25 21:12:35 +03:00
|
|
|
$% [%1 house-1] :: 1: radio
|
2014-12-18 05:34:40 +03:00
|
|
|
[%0 house-0] :: 0: initial version
|
|
|
|
== ::
|
|
|
|
++ house-1 ::
|
2015-01-01 23:43:50 +03:00
|
|
|
$: stories=(map span story) :: conversations
|
2014-12-18 05:34:40 +03:00
|
|
|
general=(set bone) :: meta-subscribe
|
|
|
|
outbox=(pair ,@ud (map ,@ud thought)) :: urbit outbox
|
|
|
|
folks=(map ship human) :: human identities
|
2015-03-30 09:43:48 +03:00
|
|
|
shells=(map bone shell) :: interaction state
|
2014-12-18 05:34:40 +03:00
|
|
|
== ::
|
|
|
|
++ house-0 :: legacy state
|
|
|
|
%+ map path ::
|
|
|
|
,[p=(list zong) q=(map ship ,?)] ::
|
2014-12-18 21:43:07 +03:00
|
|
|
:: ::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ zong :: legacy messages
|
|
|
|
$% $: %mess p=@da q=ship ::
|
|
|
|
$= r ::
|
|
|
|
$% [%do p=@t] ::
|
|
|
|
[%exp p=@t q=tank] ::
|
|
|
|
[%say p=@t] ::
|
|
|
|
== == == ::
|
2015-01-19 02:19:06 +03:00
|
|
|
++ story :: wire content
|
2014-12-18 05:34:40 +03:00
|
|
|
$: count=@ud :: (lent grams)
|
|
|
|
grams=(list telegram) :: all history
|
|
|
|
locals=(map ship (pair ,@da status)) :: local presence
|
2015-01-26 04:38:03 +03:00
|
|
|
remotes=(map partner atlas) :: remote presence
|
|
|
|
sequence=(map partner ,@ud) :: partners heard
|
2014-12-18 05:34:40 +03:00
|
|
|
shape=config :: configuration
|
|
|
|
known=(map serial ,@ud) :: messages heard
|
|
|
|
guests=(map bone river) :: message followers
|
|
|
|
viewers=(set bone) :: presence followers
|
|
|
|
owners=(set bone) :: config followers
|
|
|
|
== ::
|
2015-03-30 09:43:48 +03:00
|
|
|
++ shell :: console session
|
|
|
|
$: her=ship :: client identity
|
|
|
|
man=span :: mailbox
|
|
|
|
say=sole-share :: console state
|
|
|
|
active=(unit (set partner)) :: active targets
|
|
|
|
passive=(set partner) :: passive targets
|
|
|
|
== ::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ river (pair point point) :: stream definition
|
|
|
|
++ point :: stream endpoint
|
|
|
|
$% [%ud p=@ud] :: by number
|
|
|
|
[%da p=@da] :: by date
|
|
|
|
== ::
|
|
|
|
++ gift :: result
|
2015-03-30 09:43:48 +03:00
|
|
|
$% [%rush salt] :: refresh
|
2014-12-18 05:34:40 +03:00
|
|
|
[%mean ares] :: cancel
|
|
|
|
[%nice ~] :: accept
|
|
|
|
== ::
|
|
|
|
++ sign :: response
|
|
|
|
$% $: %e :: from %eyre
|
|
|
|
$% [%thou p=httr] :: HTTP response
|
|
|
|
== == ::
|
|
|
|
$: %g :: application
|
|
|
|
$% [%mean p=ares] :: cancel
|
|
|
|
[%nice ~] :: acknowledge
|
2015-01-27 07:30:22 +03:00
|
|
|
[%rush p=silt] :: subs data
|
2014-12-18 05:34:40 +03:00
|
|
|
== == ::
|
|
|
|
$: %t ::
|
|
|
|
$% [%wake ~] :: timer wakeup
|
2014-12-19 02:28:26 +03:00
|
|
|
== == == ::
|
2015-03-30 09:43:48 +03:00
|
|
|
++ salt :: output rush
|
|
|
|
$% [%radio-report p=report] ::
|
|
|
|
[%sole-effect p=sole-effect] ::
|
|
|
|
== ::
|
|
|
|
++ silt :: input rush
|
2015-03-25 21:12:35 +03:00
|
|
|
$% [%radio-report p=report] :: refresh
|
2015-03-30 09:43:48 +03:00
|
|
|
[%twit-stat p=twit-stat] :: tweet receipt
|
|
|
|
[%twit-feed p=(list twit-stat)] :: tweet receipt
|
|
|
|
== ::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ move ,[p=bone q=(mold note gift)] :: all actions
|
|
|
|
++ hapt ,[p=ship q=path] :: app instance
|
|
|
|
++ note :: requests
|
2014-12-19 02:28:26 +03:00
|
|
|
$% $: %c ::
|
|
|
|
$% [%info p=@p q=@tas r=nori] ::
|
2014-12-18 05:34:40 +03:00
|
|
|
== == ::
|
|
|
|
$: %g :: network
|
|
|
|
$% [%mess p=hapt q=ship r=cage] :: message
|
|
|
|
[%nuke p=hapt q=ship] :: cancel
|
|
|
|
[%show p=hapt q=ship r=path] :: subscribe
|
2015-01-21 02:00:54 +03:00
|
|
|
[%took p=hapt q=ship] :: acknowledge
|
2014-12-19 02:28:26 +03:00
|
|
|
== == ::
|
2014-12-18 05:34:40 +03:00
|
|
|
$: %t ::
|
|
|
|
$% [%wait p=@da] ::
|
|
|
|
== == == ::
|
|
|
|
--
|
|
|
|
|_ [hid=hide house]
|
|
|
|
++ ra :: transaction core
|
|
|
|
|_ [ost=bone moves=(list move)]
|
|
|
|
++ ra-abet :: resolve core
|
|
|
|
^- [(list move) _+>]
|
2015-01-20 00:54:49 +03:00
|
|
|
[(flop moves) +>]
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ ra-emil :: ra-emit move list
|
|
|
|
|= mol=(list move)
|
|
|
|
%_(+> moves (welp (flop mol) moves))
|
|
|
|
::
|
|
|
|
++ ra-emit :: emit a move
|
|
|
|
|= mov=move
|
|
|
|
%_(+> moves [mov moves])
|
|
|
|
::
|
|
|
|
++ ra-ever :: emit success
|
|
|
|
(ra-emit ost %give %nice ~)
|
|
|
|
::
|
|
|
|
++ ra-evil :: emit error
|
|
|
|
|= msg=cord
|
|
|
|
~& [%ra-evil msg]
|
2015-03-28 01:53:35 +03:00
|
|
|
(ra-emit ost %give %mean ~ msg ~)
|
|
|
|
:: (ra-emit ost %give %nice ~)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-01-26 04:38:03 +03:00
|
|
|
++ ra-house :: emit partners
|
2014-12-18 05:34:40 +03:00
|
|
|
|= ost=bone
|
|
|
|
%+ ra-emit ost
|
2015-03-25 21:12:35 +03:00
|
|
|
:^ %give %rush %radio-report
|
2014-12-18 05:34:40 +03:00
|
|
|
:- %house
|
2015-01-26 04:38:03 +03:00
|
|
|
%- ~(gas in *(map span (pair posture cord)))
|
|
|
|
%+ turn (~(tap by stories))
|
|
|
|
|=([a=span b=story] [a p.cordon.shape.b caption.shape.b])
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-01-26 04:38:03 +03:00
|
|
|
++ ra-homes :: update partners
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ gel=general
|
|
|
|
|- ^+ +>
|
|
|
|
?~ gel +>
|
|
|
|
=. +> $(gel l.gel)
|
|
|
|
=. +> $(gel r.gel)
|
|
|
|
(ra-house n.gel)
|
|
|
|
::
|
2015-03-25 21:12:35 +03:00
|
|
|
++ ra-init :: initialize radio
|
2015-01-06 02:59:57 +03:00
|
|
|
=+ sir=(sein our.hid)
|
|
|
|
%+ ra-apply our.hid
|
|
|
|
:+ %design (main our.hid)
|
|
|
|
:- ~
|
2015-01-26 04:38:03 +03:00
|
|
|
:_ [%default ?:((gte our.hid 65.536) %brown %black) ~]
|
2015-01-06 02:59:57 +03:00
|
|
|
?:(=(sir our.hid) ~ [[%& sir (main sir)] ~ ~])
|
|
|
|
::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ ra-apply :: apply command
|
|
|
|
|= [her=ship cod=command]
|
|
|
|
^+ +>
|
|
|
|
?- -.cod
|
|
|
|
%design
|
|
|
|
?. =(her our.hid)
|
2015-03-25 21:12:35 +03:00
|
|
|
(ra-evil %radio-no-owner)
|
2014-12-18 05:34:40 +03:00
|
|
|
?~ q.cod
|
2015-01-01 23:43:50 +03:00
|
|
|
?. (~(has by stories) p.cod)
|
2015-03-25 21:12:35 +03:00
|
|
|
(ra-evil %radio-no-story)
|
2014-12-18 05:34:40 +03:00
|
|
|
=. +>.$ (ra-config p.cod *config)
|
2015-01-01 23:43:50 +03:00
|
|
|
ra-ever(stories (~(del by stories) p.cod))
|
2014-12-18 05:34:40 +03:00
|
|
|
=. +>.$ (ra-config p.cod u.q.cod)
|
|
|
|
ra-ever
|
|
|
|
::
|
|
|
|
%review ra-ever:(ra-think | her +.cod)
|
|
|
|
%publish ra-ever:(ra-think & her +.cod)
|
|
|
|
==
|
|
|
|
::
|
2015-01-01 23:43:50 +03:00
|
|
|
++ ra-config :: configure story
|
2014-12-18 05:34:40 +03:00
|
|
|
|= [man=span con=config]
|
|
|
|
^+ +>
|
2015-01-01 23:43:50 +03:00
|
|
|
=+ :- neu=(~(has by stories) man)
|
|
|
|
pur=(fall (~(get by stories) man) *story)
|
2014-12-18 05:34:40 +03:00
|
|
|
=. +>.$ pa-abet:(~(pa-reform pa man pur) con)
|
|
|
|
?:(neu +>.$ ra-homes)
|
|
|
|
::
|
|
|
|
++ ra-friend :: %friend response
|
2015-01-26 04:38:03 +03:00
|
|
|
|= [man=span tay=partner sih=sign]
|
2014-12-18 05:34:40 +03:00
|
|
|
^+ +>
|
2015-01-01 23:43:50 +03:00
|
|
|
=+ pur=(~(get by stories) man)
|
2015-01-27 04:55:01 +03:00
|
|
|
?~ pur ~& [%ra-friend-none man] +>.$
|
|
|
|
pa-abet:(~(pa-friend pa man u.pur) tay sih)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ ra-twitter :: %twitter response
|
2015-01-27 09:20:39 +03:00
|
|
|
|= [[num=@ud man=span] sih=sign]
|
2014-12-18 05:34:40 +03:00
|
|
|
^+ +>
|
2015-03-25 21:12:35 +03:00
|
|
|
?+ sih ~|([%radio-bad-twitter sih] !!)
|
2015-01-27 07:30:22 +03:00
|
|
|
[%g ?(%nice %mean) ~]
|
|
|
|
+>
|
2015-01-27 09:20:39 +03:00
|
|
|
[%g %mean ^]
|
|
|
|
(ra-repeat num [%| %twitter man] sih)
|
2015-01-27 07:30:22 +03:00
|
|
|
[%g %rush %twit-stat *]
|
2015-01-27 09:20:39 +03:00
|
|
|
(ra-repeat num [%| %twitter man] [%g %nice ~])
|
2015-01-27 07:30:22 +03:00
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ ra-repeat :: %repeat response
|
2015-01-27 09:20:39 +03:00
|
|
|
|= [num=@ud pan=partner sih=sign]
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ oot=(~(get by q.outbox) num)
|
|
|
|
?~ oot ~& [%ra-repeat-none num] +>.$
|
|
|
|
=. q.outbox (~(del by q.outbox) num)
|
|
|
|
=. q.u.oot
|
2015-01-27 09:20:39 +03:00
|
|
|
=+ olg=(~(got by q.u.oot) pan)
|
|
|
|
%+ ~(put by q.u.oot) pan
|
2015-01-26 04:38:03 +03:00
|
|
|
:- -.olg
|
2014-12-18 05:34:40 +03:00
|
|
|
?+ sih !!
|
2015-03-25 21:12:35 +03:00
|
|
|
[%g %mean *] ~&([%radio-repeat-rejected num pan sih] %rejected)
|
2014-12-18 05:34:40 +03:00
|
|
|
[%g %nice ~] %received
|
2014-07-03 02:08:02 +04:00
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
(ra-think | our.hid u.oot ~)
|
|
|
|
::
|
|
|
|
++ ra-cancel :: drop a bone
|
2015-01-23 01:01:39 +03:00
|
|
|
^+ .
|
2015-01-27 05:54:14 +03:00
|
|
|
=+ hep=(~(get by sup.hid) ost)
|
|
|
|
?~ hep +
|
|
|
|
?. ?=([@ @ *] q.u.hep)
|
2015-01-26 23:54:45 +03:00
|
|
|
+(general (~(del in general) ost))
|
2015-01-27 05:54:14 +03:00
|
|
|
=* man i.t.q.u.hep
|
2015-01-23 01:01:39 +03:00
|
|
|
=+ pur=(~(get by stories) man)
|
|
|
|
?~ pur +>
|
2015-01-27 05:54:14 +03:00
|
|
|
pa-abet:(pa-notify:~(pa-cancel pa man u.pur) p.u.hep %gone *human)
|
2015-01-23 01:01:39 +03:00
|
|
|
::
|
|
|
|
++ ra-human :: look up person
|
|
|
|
|= her=ship
|
|
|
|
^- [human _+>]
|
|
|
|
=^ who folks
|
|
|
|
=+ who=(~(get by folks) her)
|
|
|
|
?^ who [u.who folks]
|
|
|
|
=+ who=`human`[~ `(scot %p her)] :: XX do right
|
|
|
|
[who (~(put by folks) her who)]
|
|
|
|
[who +>.$]
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ ra-subscribe :: listen to
|
|
|
|
|= [her=ship pax=path]
|
|
|
|
^+ +>
|
2015-01-06 02:59:57 +03:00
|
|
|
:: ~& [%ra-subscribe her pax]
|
2014-12-18 05:34:40 +03:00
|
|
|
?: ?=(~ pax)
|
|
|
|
(ra-house(general (~(put in general) ost)) ost)
|
2015-01-07 04:27:02 +03:00
|
|
|
?. ?=([@ @ *] pax)
|
2015-03-25 21:12:35 +03:00
|
|
|
(ra-evil %radio-bad-path)
|
2015-01-07 04:27:02 +03:00
|
|
|
=+ ^= vab ^- (set ,@tas)
|
|
|
|
=| vab=(set ,@tas)
|
|
|
|
|- ^+ vab
|
|
|
|
?: =(0 i.pax) vab
|
|
|
|
$(i.pax (rsh 3 1 i.pax), vab (~(put in vab) (end 3 1 i.pax)))
|
2015-01-01 23:43:50 +03:00
|
|
|
=+ pur=(~(get by stories) i.t.pax)
|
2014-12-18 05:34:40 +03:00
|
|
|
?~ pur
|
2015-01-01 23:43:50 +03:00
|
|
|
~& [%bad-subscribe-story-c i.t.pax]
|
2015-03-25 21:12:35 +03:00
|
|
|
(ra-evil %radio-no-story)
|
2015-01-07 04:27:02 +03:00
|
|
|
=+ soy=~(. pa i.t.pax u.pur)
|
|
|
|
=. soy ?.((~(has in vab) %a) soy (pa-watch:soy her))
|
|
|
|
=. soy ?.((~(has in vab) %x) soy (pa-master:soy her))
|
|
|
|
=. soy ?.((~(has in vab) %f) soy (pa-listen:soy her t.t.pax))
|
2015-01-23 01:01:39 +03:00
|
|
|
=^ who +>.$ (ra-human her)
|
|
|
|
pa-abet:(pa-notify:soy her %hear who)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ ra-think :: publish/review
|
|
|
|
|= [pub=? her=ship tiz=(list thought)]
|
|
|
|
^+ +>
|
|
|
|
?~ tiz +>
|
|
|
|
$(tiz t.tiz, +> (ra-consume pub her i.tiz))
|
|
|
|
::
|
|
|
|
++ ra-consume :: consume thought
|
|
|
|
|= [pub=? her=ship tip=thought]
|
2015-01-26 04:38:03 +03:00
|
|
|
=+ aud=(~(tap by q.tip) ~)
|
2014-12-18 05:34:40 +03:00
|
|
|
|- ^+ +>.^$
|
|
|
|
?~ aud +>.^$
|
|
|
|
$(aud t.aud, +>.^$ (ra-conduct pub her p.i.aud tip))
|
|
|
|
::
|
2015-01-26 04:38:03 +03:00
|
|
|
++ ra-conduct :: thought to partner
|
|
|
|
|= [pub=? her=ship tay=partner tip=thought]
|
2014-12-18 05:34:40 +03:00
|
|
|
^+ +>
|
2014-12-18 21:37:36 +03:00
|
|
|
:: ~& [%ra-conduct pub her tay]
|
2014-12-18 05:34:40 +03:00
|
|
|
?- -.tay
|
|
|
|
%& ?: pub
|
|
|
|
=. her our.hid :: XX security!
|
|
|
|
?: =(her p.p.tay)
|
|
|
|
(ra-record q.p.tay p.p.tay tip)
|
|
|
|
(ra-transmit p.tay tip)
|
|
|
|
?. =(our.hid p.p.tay)
|
|
|
|
+>
|
|
|
|
(ra-record q.p.tay her tip)
|
|
|
|
%| ?. pub +>
|
|
|
|
?- -.p.tay
|
|
|
|
%twitter
|
2015-01-27 07:30:22 +03:00
|
|
|
(ra-tweet p.p.tay tip)
|
2014-12-18 05:34:40 +03:00
|
|
|
== ==
|
|
|
|
::
|
2015-01-01 23:43:50 +03:00
|
|
|
++ ra-record :: add to story
|
2014-12-18 05:34:40 +03:00
|
|
|
|= [man=span gam=telegram]
|
|
|
|
^+ +>
|
2015-01-01 23:43:50 +03:00
|
|
|
=+ pur=(~(get by stories) man)
|
2014-12-18 05:34:40 +03:00
|
|
|
?~ pur
|
2015-01-01 23:43:50 +03:00
|
|
|
~& [%no-story man]
|
2014-12-18 05:34:40 +03:00
|
|
|
+>.$
|
|
|
|
pa-abet:(~(pa-learn pa man u.pur) gam)
|
|
|
|
::
|
|
|
|
++ ra-transmit :: send to neighbor
|
2015-01-26 04:38:03 +03:00
|
|
|
|= [cuz=station tip=thought]
|
2014-12-18 05:34:40 +03:00
|
|
|
^+ +>
|
|
|
|
=. +>
|
|
|
|
%+ ra-emit ost
|
|
|
|
:* %pass
|
|
|
|
/repeat/(scot %ud p.outbox)/(scot %p p.cuz)/[q.cuz]
|
|
|
|
%g
|
|
|
|
%mess
|
2015-03-25 21:12:35 +03:00
|
|
|
[p.cuz /radio]
|
2014-12-18 05:34:40 +03:00
|
|
|
our.hid
|
2015-03-25 21:12:35 +03:00
|
|
|
[%radio-command !>(`command`[%review tip ~])]
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
|
|
|
+>(p.outbox +(p.outbox), q.outbox (~(put by q.outbox) p.outbox tip))
|
|
|
|
::
|
2015-01-27 07:30:22 +03:00
|
|
|
++ ra-tweet :: send to /twit
|
2015-01-27 09:20:39 +03:00
|
|
|
|= [man=span tip=thought]
|
|
|
|
=* sta r.tip
|
2015-01-27 07:30:22 +03:00
|
|
|
?> ?=(%lin -.r.sta)
|
2015-01-27 09:20:39 +03:00
|
|
|
=. q.outbox (~(put by q.outbox) p.outbox tip)
|
|
|
|
%^ ra-emil(p.outbox +(p.outbox))
|
2015-01-27 07:30:22 +03:00
|
|
|
:* ost
|
2015-01-27 09:20:39 +03:00
|
|
|
%pass /twitter/stat/(scot %ud p.outbox)/[man]
|
2015-01-27 07:30:22 +03:00
|
|
|
%g %mess
|
|
|
|
[our.hid /twit] our.hid
|
2015-01-27 09:20:39 +03:00
|
|
|
[%twit-do !>(`twit-do`[man %post p.tip q.r.sta])]
|
2015-01-27 07:30:22 +03:00
|
|
|
==
|
|
|
|
:* ost
|
2015-01-27 09:20:39 +03:00
|
|
|
%pass /twitter/stat/(scot %ud p.outbox)/[man]
|
|
|
|
[%g %show [our.hid /twit] our.hid /post/(scot %uv p.tip)]
|
2015-01-27 07:30:22 +03:00
|
|
|
==
|
|
|
|
~
|
2015-01-01 23:43:50 +03:00
|
|
|
++ pa :: story core
|
2014-12-18 05:34:40 +03:00
|
|
|
|_ $: man=span
|
2015-01-01 23:43:50 +03:00
|
|
|
story
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
|
|
|
++ pa-abet
|
|
|
|
^+ +>
|
2015-01-01 23:43:50 +03:00
|
|
|
+>(stories (~(put by stories) man `story`+<+))
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-admire :: accept from
|
|
|
|
|= her=ship
|
|
|
|
^- ?
|
|
|
|
::?- -.cordon.shape
|
|
|
|
:: %& (~(has in p.cordon.shape) her)
|
|
|
|
:: %| !(~(has in p.cordon.shape) her)
|
|
|
|
::==
|
|
|
|
&
|
|
|
|
::
|
|
|
|
++ pa-watch :: watch presence
|
|
|
|
|= her=ship
|
|
|
|
?. (pa-admire her)
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce ost [[%mean ~ %radio-watch-unauthorized ~] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
=. viewers (~(put in viewers) ost)
|
|
|
|
(pa-display ost ~ ~)
|
|
|
|
::
|
|
|
|
++ pa-master :: hear config
|
|
|
|
|= her=ship
|
|
|
|
?. (pa-admire her)
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce ost [[%mean ~ %radio-master-unauthorized ~] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
=. owners (~(put in owners) ost)
|
|
|
|
:: ~& [%pa-master her man shape]
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce ost [[%rush %radio-report %config shape] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-display :: update presence
|
|
|
|
|= vew=(set bone)
|
|
|
|
=+ ^= reg
|
|
|
|
:_ remotes
|
|
|
|
|- ^- atlas
|
|
|
|
?~ locals ~
|
|
|
|
[[p.n.locals q.q.n.locals] $(locals l.locals) $(locals r.locals)]
|
|
|
|
:: ~& [%pa-display man reg]
|
|
|
|
|- ^+ +>.^$
|
|
|
|
?~ vew +>.^$
|
|
|
|
=. +>.^$ $(vew l.vew)
|
|
|
|
=. +>.^$ $(vew r.vew)
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce n.vew [[%rush %radio-report %group reg] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-monitor :: update config
|
|
|
|
=+ owe=owners
|
|
|
|
|- ^+ +>
|
|
|
|
?~ owe +>
|
|
|
|
=. +> $(owe l.owe)
|
|
|
|
=. +> $(owe r.owe)
|
|
|
|
:: ~& [%pa-monitor man shape]
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce n.owe [[%rush %radio-report %config shape] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-friend :: subscribed update
|
2015-01-27 04:55:01 +03:00
|
|
|
|= [tay=partner sih=sign]
|
2014-12-18 05:34:40 +03:00
|
|
|
^+ +>
|
2015-03-25 21:12:35 +03:00
|
|
|
?+ sih ~|([%radio-bad-friend sih] !!)
|
2014-12-18 05:34:40 +03:00
|
|
|
[%g %nice ~]
|
2015-01-26 04:38:03 +03:00
|
|
|
+>.$
|
2015-01-26 23:54:45 +03:00
|
|
|
::
|
2015-01-26 04:38:03 +03:00
|
|
|
[%g %mean *]
|
2015-01-27 01:31:00 +03:00
|
|
|
?~ +>.sih
|
2015-01-27 04:55:01 +03:00
|
|
|
(pa-acquire [tay ~])
|
2015-01-27 01:31:00 +03:00
|
|
|
~& [%pa-friend-mean +>.sih]
|
2015-01-27 04:55:01 +03:00
|
|
|
pa-monitor(sources.shape (~(del in sources.shape) tay))
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-01-27 11:19:18 +03:00
|
|
|
[%g %rush %twit-feed *]
|
|
|
|
%- pa-lesson
|
|
|
|
%+ turn p.p.sih |= twit-stat
|
|
|
|
^- telegram
|
|
|
|
:^ our.hid :: XX inaccurate
|
|
|
|
(shas %twit id)
|
|
|
|
`audience`[[tay [& ~ tay] %received] `~] :: current party?
|
|
|
|
^- statement
|
|
|
|
:+ now
|
|
|
|
~ :: XX hashtags
|
|
|
|
[%lin & txt]
|
2015-03-25 22:04:25 +03:00
|
|
|
::
|
2015-03-25 21:12:35 +03:00
|
|
|
[%g %rush %radio-report *]
|
2015-01-27 01:41:24 +03:00
|
|
|
:: ~& [%pa-friend-report +>+.sih]
|
2015-01-27 11:19:18 +03:00
|
|
|
?> ?=(& -.tay)
|
2015-01-21 02:00:54 +03:00
|
|
|
=. +> %+ pa-scrub ost
|
|
|
|
:_ ~
|
2015-01-27 04:55:01 +03:00
|
|
|
:- /friend/show/[man]/(scot %p p.p.tay)/[q.p.tay]
|
2015-03-25 21:12:35 +03:00
|
|
|
[%g %took [p.p.tay /radio] our.hid]
|
|
|
|
?+ -.p.p.sih ~|([%radio-odd-friend sih] !!)
|
2015-01-06 02:59:57 +03:00
|
|
|
%config +>.$
|
2015-01-27 07:30:22 +03:00
|
|
|
%group (pa-remind tay +.p.p.sih)
|
|
|
|
%grams (pa-lesson q.+.p.p.sih)
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
2014-07-03 02:08:02 +04:00
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-scrub :: pass forward
|
|
|
|
|= [ost=bone bub=(list (pair path note))]
|
|
|
|
%_ +>.$
|
|
|
|
moves
|
|
|
|
(welp (flop (turn bub |=(a=(pair path note) [ost %pass a]))) moves)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ pa-sauce :: send backward
|
|
|
|
|= [ost=bone gub=(list gift)]
|
|
|
|
%_ +>.$
|
|
|
|
moves
|
|
|
|
(welp (flop (turn gub |=(a=gift [ost %give a]))) moves)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ pa-abjure :: unsubscribe move
|
2015-01-26 04:38:03 +03:00
|
|
|
|= tal=(list partner)
|
2014-12-18 05:34:40 +03:00
|
|
|
%+ pa-scrub 0
|
|
|
|
%- zing
|
|
|
|
%+ turn tal
|
2015-01-26 04:38:03 +03:00
|
|
|
|= tay=partner
|
2014-12-18 05:34:40 +03:00
|
|
|
?- -.tay
|
|
|
|
%| ~& tweet-abjure/p.p.tay
|
2014-12-18 21:43:07 +03:00
|
|
|
!!
|
2015-01-27 11:19:18 +03:00
|
|
|
:: :~ :- /friend/nuke/[man]/twitter/[p.p.tay]
|
|
|
|
:: [%g %nuke [our.hid /twit] our.hid]
|
|
|
|
:: ==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-03-25 22:04:25 +03:00
|
|
|
%& ~& [%pa-abjure [our.hid man] [p.p.tay q.p.tay]]
|
2015-01-27 04:55:01 +03:00
|
|
|
:~ :- /friend/nuke/[man]/(scot %p p.p.tay)/[q.p.tay]
|
2015-03-25 21:12:35 +03:00
|
|
|
[%g %nuke [p.p.tay /radio] our.hid]
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ pa-acquire :: subscribe to
|
2015-01-26 04:38:03 +03:00
|
|
|
|= tal=(list partner)
|
2014-12-18 05:34:40 +03:00
|
|
|
%+ pa-scrub 0
|
|
|
|
%- zing
|
|
|
|
%+ turn tal
|
2015-01-26 04:38:03 +03:00
|
|
|
|= tay=partner
|
2014-12-18 05:34:40 +03:00
|
|
|
^- (list (pair path note))
|
|
|
|
=+ num=(fall (~(get by sequence) tay) 0)
|
|
|
|
?- -.tay
|
|
|
|
%| ~& tweet-acquire/p.p.tay
|
2015-01-27 11:19:18 +03:00
|
|
|
:~ :- /friend/show/[man]/twitter/[p.p.tay]
|
|
|
|
[%g %show [our.hid /twit] our.hid /user/[p.p.tay]]
|
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2015-01-21 02:53:44 +03:00
|
|
|
%& :: ~& [%pa-acquire [our.hid man] [p.p.tay q.p.tay]]
|
2015-01-27 04:55:01 +03:00
|
|
|
:~ :- /friend/show/[man]/(scot %p p.p.tay)/[q.p.tay]
|
2015-03-25 21:12:35 +03:00
|
|
|
[%g %show [p.p.tay /radio] our.hid /af/[q.p.tay]/(scot %ud num)]
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ pa-reform :: reconfigure, ugly
|
|
|
|
|= cof=config
|
2015-01-26 04:38:03 +03:00
|
|
|
=+ ^= dif ^- (pair (list partner) (list partner))
|
|
|
|
=+ old=`(list partner)`(~(tap in sources.shape) ~)
|
|
|
|
=+ new=`(list partner)`(~(tap in sources.cof) ~)
|
|
|
|
:- (skip new |=(a=partner (~(has in sources.shape) a)))
|
|
|
|
(skip old |=(a=partner (~(has in sources.cof) a)))
|
2014-12-18 05:34:40 +03:00
|
|
|
=. +>.$ (pa-acquire p.dif)
|
|
|
|
=. +>.$ (pa-abjure q.dif)
|
|
|
|
=. shape cof
|
|
|
|
pa-monitor
|
|
|
|
::
|
|
|
|
++ pa-cancel :: unsubscribe from
|
2015-01-27 05:54:14 +03:00
|
|
|
:: ~& [%pa-cancel ost]
|
2015-01-23 01:01:39 +03:00
|
|
|
%_ .
|
2015-01-27 01:31:00 +03:00
|
|
|
guests (~(del by guests) ost)
|
2015-01-23 01:01:39 +03:00
|
|
|
viewers (~(del in viewers) ost)
|
|
|
|
owners (~(del in owners) ost)
|
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-notify :: local presence
|
|
|
|
|= [her=ship saz=status]
|
|
|
|
^+ +>
|
2015-01-23 01:01:39 +03:00
|
|
|
=+ ^= nol
|
|
|
|
?: =(%gone p.saz)
|
2015-01-23 04:24:04 +03:00
|
|
|
(~(del by locals) her)
|
2015-01-23 01:01:39 +03:00
|
|
|
(~(put by locals) her lat.hid saz)
|
|
|
|
?: =(nol locals) +>.$
|
|
|
|
(pa-display(locals nol) viewers)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
++ pa-remind :: remote presence
|
2015-01-26 04:38:03 +03:00
|
|
|
|= [tay=partner loc=atlas rem=(map partner atlas)]
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ ^= buk
|
|
|
|
=+ mer=(turn (~(tap by rem) ~) |=([* a=atlas] a))
|
|
|
|
|- ^- atlas
|
|
|
|
?~ mer loc
|
|
|
|
=. loc $(mer t.mer)
|
|
|
|
=+ dur=`(list (pair ship status))`(~(tap by i.mer) ~)
|
|
|
|
|- ^- atlas
|
|
|
|
?~ dur loc
|
|
|
|
=. loc $(dur t.dur)
|
|
|
|
=+ fuy=(~(get by loc) p.i.dur)
|
|
|
|
?~ fuy (~(put by loc) p.i.dur q.i.dur)
|
|
|
|
?: =(`presence`p.q.i.dur `presence`p.u.fuy)
|
|
|
|
loc
|
|
|
|
?- p.u.fuy
|
2015-01-01 23:43:50 +03:00
|
|
|
%gone (~(del by loc) p.i.dur q.i.dur)
|
2014-12-18 05:34:40 +03:00
|
|
|
%talk loc
|
|
|
|
%hear (~(put by loc) p.i.dur q.i.dur)
|
|
|
|
==
|
|
|
|
=+ gub=(~(get by remotes) tay)
|
|
|
|
:: ~& [%pa-remind tay gub buk]
|
|
|
|
?. |(?=(~ gub) !=(buk u.gub))
|
|
|
|
+>.$
|
|
|
|
=. remotes (~(put by remotes) tay buk)
|
|
|
|
(pa-display viewers)
|
|
|
|
::
|
|
|
|
++ pa-start :: start stream
|
|
|
|
|= riv=river
|
|
|
|
^+ +>
|
2015-01-22 08:04:40 +03:00
|
|
|
=- :: ~& [%pa-start riv lab]
|
2015-03-25 21:12:35 +03:00
|
|
|
=. +>.$ (pa-sauce ost [[%rush %radio-report %grams q.lab r.lab] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
?: p.lab
|
|
|
|
(pa-sauce ost [[%mean ~] ~])
|
|
|
|
+>.$(guests (~(put by guests) ost riv))
|
|
|
|
^= lab
|
|
|
|
=+ [end=count gaz=grams dun=| zeg=*(list telegram)]
|
|
|
|
|- ^- (trel ,? ,@ud (list telegram))
|
2015-01-19 02:19:06 +03:00
|
|
|
?~ gaz [dun end zeg]
|
2014-12-18 05:34:40 +03:00
|
|
|
?: ?- -.q.riv :: after the end
|
|
|
|
%ud (lte p.q.riv end)
|
|
|
|
%da (lte p.q.riv p.r.q.i.gaz)
|
|
|
|
==
|
|
|
|
$(end (dec end), gaz t.gaz)
|
|
|
|
?: ?- -.p.riv :: before the start
|
|
|
|
%ud (lth end p.p.riv)
|
|
|
|
%da (lth p.r.q.i.gaz p.p.riv)
|
|
|
|
==
|
2015-01-19 02:19:06 +03:00
|
|
|
[dun end zeg]
|
2014-12-18 05:34:40 +03:00
|
|
|
$(end (dec end), gaz t.gaz, zeg [i.gaz zeg])
|
|
|
|
::
|
|
|
|
++ pa-listen :: subscribe
|
|
|
|
|= [her=ship pax=path]
|
|
|
|
^+ +>
|
|
|
|
?. (pa-admire her)
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce ost [[%mean ~ %radio-listen-unauthorized ~] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ ^= ruv ^- (unit river)
|
|
|
|
?: ?=(~ pax)
|
|
|
|
`[[%ud count] [%da (dec (bex 128))]]
|
|
|
|
?: ?=([@ ~] pax)
|
|
|
|
=+ say=(slay i.pax)
|
|
|
|
?. ?=([~ %$ ?(%ud %da) @] say) ~
|
|
|
|
`[(point +>.say) [%da (dec (bex 128))]]
|
|
|
|
?. ?=([@ @ ~] pax) ~
|
|
|
|
=+ [say=(slay i.pax) den=(slay i.t.pax)]
|
|
|
|
?. ?=([~ %$ ?(%ud %da) @] say) ~
|
|
|
|
?. ?=([~ %$ ?(%ud %da) @] den) ~
|
|
|
|
`[(point +>.say) (point +>.den)]
|
2015-01-06 02:59:57 +03:00
|
|
|
:: ~& [%pa-listen her pax ruv]
|
2014-12-18 05:34:40 +03:00
|
|
|
?~ ruv
|
2015-03-25 21:12:35 +03:00
|
|
|
(pa-sauce ost [[%mean ~ %radio-malformed ~] ~])
|
2014-12-18 05:34:40 +03:00
|
|
|
(pa-start u.ruv)
|
|
|
|
::
|
2015-03-30 09:43:48 +03:00
|
|
|
++ pa-refresh :: update to guests
|
2014-12-18 05:34:40 +03:00
|
|
|
|= [num=@ud gam=telegram]
|
2015-03-30 09:43:48 +03:00
|
|
|
^+ +>
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ ^= moy
|
|
|
|
|- ^- (pair (list bone) (list move))
|
|
|
|
?~ guests [~ ~]
|
2015-01-06 02:59:57 +03:00
|
|
|
:: ~& [%pa-refresh num n.guests]
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ lef=$(guests l.guests)
|
|
|
|
=+ rit=$(guests r.guests)
|
|
|
|
=+ old=[p=(welp p.lef p.rit) q=(welp q.lef q.rit)]
|
|
|
|
?: ?- -.q.q.n.guests :: after the end
|
|
|
|
%ud (lte p.q.q.n.guests num)
|
|
|
|
%da (lte p.q.q.n.guests p.r.q.gam)
|
|
|
|
==
|
|
|
|
[[p.n.guests p.old] [[p.n.guests %give %mean ~] q.old]]
|
|
|
|
?: ?- -.p.q.n.guests :: before the start
|
|
|
|
%ud (gth p.p.q.n.guests num)
|
|
|
|
%da (gth p.p.q.n.guests p.r.q.gam)
|
|
|
|
==
|
|
|
|
old
|
|
|
|
:- p.old
|
2015-03-25 21:12:35 +03:00
|
|
|
[[p.n.guests %give %rush %radio-report %grams num gam ~] q.old]
|
2014-12-18 05:34:40 +03:00
|
|
|
=. moves (welp q.moy moves)
|
|
|
|
|- ^+ +>.^$
|
|
|
|
?~ p.moy +>.^$
|
|
|
|
$(p.moy t.p.moy, guests (~(del by guests) i.p.moy))
|
|
|
|
::
|
|
|
|
++ pa-lesson :: learn multiple
|
|
|
|
|= gaz=(list telegram)
|
|
|
|
^+ +>
|
|
|
|
?~ gaz +>
|
|
|
|
$(gaz t.gaz, +> (pa-learn i.gaz))
|
|
|
|
::
|
|
|
|
++ pa-learn :: learn message
|
|
|
|
|= gam=telegram
|
|
|
|
^+ +>
|
|
|
|
?. (pa-admire p.gam)
|
|
|
|
~& %pa-admire-rejected
|
|
|
|
+>.$
|
2015-01-26 04:38:03 +03:00
|
|
|
=. q.q.gam
|
|
|
|
=+ ole=(~(get by q.q.gam) [%& our.hid man])
|
|
|
|
?~ ole q.q.gam
|
|
|
|
(~(put by q.q.gam) [%& our.hid man] -.u.ole %received)
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ old=(~(get by known) p.q.gam)
|
|
|
|
?~ old
|
|
|
|
(pa-append gam)
|
|
|
|
(pa-revise u.old gam)
|
|
|
|
::
|
|
|
|
++ pa-append :: append new
|
|
|
|
|= gam=telegram
|
|
|
|
^+ +>
|
|
|
|
%+ %= pa-refresh
|
|
|
|
grams [gam grams]
|
|
|
|
count +(count)
|
|
|
|
known (~(put by known) p.q.gam count)
|
|
|
|
==
|
|
|
|
count
|
|
|
|
gam
|
|
|
|
::
|
|
|
|
++ pa-revise :: revise existing
|
|
|
|
|= [num=@ud gam=telegram]
|
|
|
|
=+ way=(sub count num)
|
|
|
|
=. grams (welp (scag (dec way) grams) [gam (slag way grams)])
|
|
|
|
(pa-refresh num gam)
|
2014-07-03 02:08:02 +04:00
|
|
|
--
|
2014-12-18 05:34:40 +03:00
|
|
|
--
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ sigh :: assemble label
|
|
|
|
|= [len=@ud pre=tape yiz=cord]
|
|
|
|
%+ welp pre
|
|
|
|
^- tape
|
|
|
|
=+ nez=(trip yiz)
|
|
|
|
?> (gth len (lent pre))
|
|
|
|
=. len (sub len (lent pre))
|
|
|
|
?. (gth (lent nez) len) nez
|
|
|
|
(welp (scag (dec len) nez) ">")
|
|
|
|
::
|
|
|
|
++ sn :: station render core
|
|
|
|
|_ one=station
|
|
|
|
++ sn-best :: best to show
|
|
|
|
|= two=station
|
|
|
|
^- ?
|
|
|
|
?: =(our.hid p.one) %|
|
|
|
|
?: =(our.hid p.two) %&
|
|
|
|
(lth p.one p.two)
|
|
|
|
::
|
|
|
|
++ sn-curt :: render name in 14
|
|
|
|
|= mup=?
|
|
|
|
^- tape
|
|
|
|
=+ ^= syl
|
|
|
|
|= [len=@ud sez=(list cord)]
|
|
|
|
?> !=(0 len)
|
|
|
|
|- ^- tape
|
|
|
|
?~ sez ~
|
|
|
|
=+ nez=(trip i.sez)
|
|
|
|
=+ nel=(lent nez)
|
|
|
|
?: (gte nel len)
|
|
|
|
(welp (scag (dec len) nez) ">")
|
|
|
|
(welp nez $(sez t.sez))
|
|
|
|
::
|
|
|
|
?: =(p.one our.hid)
|
|
|
|
(sigh 14 ?:(mup "*%" "%") q.one)
|
|
|
|
?: =(p.one (sein our.hid))
|
|
|
|
(sigh 14 ?:(mup "*/" "/") q.one)
|
|
|
|
=+ rac=(clan p.one)
|
|
|
|
=+ raw=(scow %p p.one)
|
|
|
|
=. raw ?.(mup raw ['*' (slag 2 raw)])
|
|
|
|
?- rac
|
|
|
|
%czar (weld " " raw)
|
|
|
|
%king (weld " " raw)
|
|
|
|
%duke raw
|
|
|
|
?(%earl %pawn)
|
|
|
|
;: welp
|
|
|
|
(scag 7 raw)
|
|
|
|
?:(=(%earl rac) "^" "_")
|
|
|
|
(scag 6 (slag 14 raw))
|
|
|
|
==
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ sn-phat :: render accurately
|
|
|
|
^- tape
|
|
|
|
?: =(p.one our.hid)
|
|
|
|
['%' (trip q.one)]
|
|
|
|
?: =(p.one (sein our.hid))
|
|
|
|
['/' (trip q.one)]
|
|
|
|
:(welp (scow %p p.one) "/" (trip q.one))
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ ta :: partner core
|
|
|
|
|_ one=partner
|
|
|
|
++ ta-best :: more important
|
|
|
|
|= two=partner
|
|
|
|
=- ?:(bet one two)
|
|
|
|
^= bet
|
|
|
|
|- ^- ?
|
|
|
|
?- -.one
|
|
|
|
%&
|
|
|
|
?- -.two
|
|
|
|
%| %&
|
|
|
|
%& (~(sn-best sn p.one) p.two)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
%|
|
|
|
|
?- -.two
|
|
|
|
%& %|
|
|
|
|
%| ?: =(-.p.two -.p.one)
|
|
|
|
(lth (mug +.p.one) (mug +.p.two))
|
|
|
|
(lth -.p.two -.p.one)
|
|
|
|
==
|
|
|
|
==
|
|
|
|
++ ta-show :: render partner
|
|
|
|
|= moy=(unit ,?)
|
|
|
|
^- tape
|
|
|
|
?- -.one
|
|
|
|
%&
|
|
|
|
?~ moy
|
|
|
|
~(sn-phat sn p.one)
|
|
|
|
(~(sn-curt sn p.one) u.moy)
|
|
|
|
::
|
|
|
|
%|
|
|
|
|
=+ ^= pre ^- tape
|
|
|
|
?- -.p.one
|
|
|
|
%twitter "@t:"
|
|
|
|
==
|
|
|
|
?~ moy
|
|
|
|
(weld pre (trip p.p.one))
|
|
|
|
=. pre ?.(=(& u.moy) pre ['*' pre])
|
|
|
|
(sigh 14 pre p.p.one)
|
|
|
|
==
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ te :: audience renderer
|
2015-03-30 23:25:30 +03:00
|
|
|
|_ [man=span lix=(set partner)]
|
2015-03-30 09:43:48 +03:00
|
|
|
++ te-best ^- (unit partner)
|
2015-03-30 23:25:30 +03:00
|
|
|
?~ lix ~
|
2015-03-30 09:43:48 +03:00
|
|
|
:- ~
|
|
|
|
|- ^- partner
|
2015-03-30 23:25:30 +03:00
|
|
|
=+ lef=`(unit partner)`te-best(lix l.lix)
|
|
|
|
=+ rit=`(unit partner)`te-best(lix r.lix)
|
|
|
|
=. n.lix ?~(lef n.lix (~(ta-best ta n.lix) u.lef))
|
|
|
|
=. n.lix ?~(rit n.lix (~(ta-best ta n.lix) u.rit))
|
|
|
|
n.lix
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ te-deaf ^+ . :: except for self
|
2015-03-30 23:25:30 +03:00
|
|
|
.(lix (~(del in lix) `partner`[%& our.hid man]))
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ te-maud ^- ? :: multiple audience
|
|
|
|
=. . te-deaf
|
2015-03-30 23:25:30 +03:00
|
|
|
?~ lix %&
|
|
|
|
|(!=(~ l.lix) !=(~ r.lix))
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ te-prom :: render targets
|
|
|
|
=. . te-deaf
|
|
|
|
=+ bez=(need te-best)
|
2015-03-30 23:25:30 +03:00
|
|
|
=+ all=(~(tap in (~(del in lix) bez)))
|
2015-03-30 09:43:48 +03:00
|
|
|
%+ weld (~(ta-show ta bez) ~)
|
|
|
|
|- ^- tape
|
|
|
|
?~ all ~
|
|
|
|
;: welp
|
|
|
|
" "
|
2015-03-30 23:25:30 +03:00
|
|
|
(~(ta-show ta i.all) ~)
|
2015-03-30 09:43:48 +03:00
|
|
|
$(all t.all)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ te-whom :: render sender
|
|
|
|
(~(ta-show ta (need te-best)) ~ te-maud)
|
|
|
|
--
|
|
|
|
::
|
|
|
|
++ tr :: telegram renderer
|
|
|
|
|_ $: man=span
|
|
|
|
who=ship
|
|
|
|
sen=serial
|
|
|
|
aud=audience
|
|
|
|
wen=@da
|
|
|
|
bou=(set flavor)
|
|
|
|
sep=speech
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ tr-line ^- tape :: one-line print
|
|
|
|
=+ txt=tr-text
|
|
|
|
?~ txt ~
|
|
|
|
(welp tr-prof txt)
|
|
|
|
::
|
2015-03-30 23:25:30 +03:00
|
|
|
++ tr-pals ^- (set partner) :: audience to set
|
|
|
|
%- ~(gas in *(set partner))
|
|
|
|
%+ turn (~(tap by aud))
|
|
|
|
|=([a=partner *] a)
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ tr-prof ^- tape :: prefix
|
|
|
|
=+ dul=[%& our.hid man]
|
|
|
|
?: =(who our.hid)
|
|
|
|
:* '<'
|
2015-03-30 23:25:30 +03:00
|
|
|
?:((~(has by aud) dul) '+' '-')
|
2015-03-30 09:43:48 +03:00
|
|
|
(~(sn-curt sn [who (main who)]) |)
|
|
|
|
==
|
|
|
|
:* '>'
|
2015-03-30 23:25:30 +03:00
|
|
|
?:((~(has by aud) dul) '+' '-')
|
|
|
|
~(te-whom te man tr-pals)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ tr-text ^- tape
|
|
|
|
?+ -.sep ""
|
|
|
|
%lin ?: p.sep
|
|
|
|
(weld ": " (trip q.sep))
|
|
|
|
(weld " " (trip q.sep))
|
2015-03-30 09:43:48 +03:00
|
|
|
==
|
|
|
|
--
|
|
|
|
++ sh :: shell i/o
|
|
|
|
|_ $: $: ost=bone
|
|
|
|
moves=(list move)
|
|
|
|
commands=(list command)
|
|
|
|
==
|
|
|
|
she=shell
|
|
|
|
==
|
|
|
|
++ sh-abed [(flop moves) +>] :: final reduce
|
|
|
|
++ sh-abet sh-abed:sh-axel:sh-amor :: resolve and keep
|
|
|
|
++ sh-amok sh-abed:sh-axel:sh-aver :: resolve and lose
|
|
|
|
++ sh-amor %_(. shells (~(put by shells) ost she)) :: accept shell
|
|
|
|
++ sh-aver %_(. shells (~(del by shells) ost)) :: abandon shell
|
|
|
|
++ sh-axel :: apply commands
|
|
|
|
=+ :* rah=~(. ra ost *(list move))
|
|
|
|
coz=(flop commands)
|
|
|
|
==
|
|
|
|
|- ^+ +>
|
|
|
|
?~ coz
|
|
|
|
=^ moz +>+>.$ ra-abet:rah
|
|
|
|
(sh-axon(commands ~) moz)
|
|
|
|
$(coz t.coz, rah (ra-apply:rah her.she i.coz))
|
|
|
|
::
|
|
|
|
++ sh-axon :: capture reports
|
|
|
|
|= moz=(list move)
|
|
|
|
^+ +>
|
|
|
|
?~ moz +>
|
|
|
|
%= $
|
|
|
|
moz t.moz
|
|
|
|
+>
|
|
|
|
?. ?& (~(has by shells) `bone`p.i.moz)
|
|
|
|
?=([%give %rush %radio-report *] q.i.moz)
|
|
|
|
==
|
|
|
|
+>(moves [i.moz moves])
|
|
|
|
(sh-repo `report`+>+.q.i.moz)
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ sh-fact :: send console effect
|
|
|
|
|= fec=sole-effect
|
|
|
|
^+ +>
|
|
|
|
+>(moves :_(moves [ost %give %rush %sole-effect fec]))
|
|
|
|
::
|
|
|
|
++ sh-peep :: subscribe to
|
|
|
|
|= pax=path
|
|
|
|
=^ moz +>+>.$
|
|
|
|
ra-abet:(~(ra-subscribe ra ost ~) her.she pax)
|
|
|
|
(sh-axon moz)
|
|
|
|
::
|
|
|
|
++ sh-peer :: subscribe shell
|
|
|
|
sh-prod:(sh-peep:(sh-peep ~) [%afx man.she ~])
|
|
|
|
::
|
|
|
|
++ sh-prod :: show prompt
|
|
|
|
^+ .
|
2015-03-30 23:25:30 +03:00
|
|
|
%+ sh-fact %pro
|
|
|
|
:+ & %radio-line
|
|
|
|
^- tape
|
|
|
|
=+ ^= rew ^- (pair (pair ,@t ,@t) (set partner))
|
|
|
|
?~ active.she
|
|
|
|
[['(' ')'] passive.she]
|
|
|
|
[['[' ']'] u.active.she]
|
|
|
|
=+ por=~(te-prom te man.she q.rew)
|
|
|
|
(weld `tape`[p.p.rew por] `tape`[q.p.rew ~])
|
2015-03-30 09:43:48 +03:00
|
|
|
::
|
|
|
|
++ sh-rend :: print on one line
|
|
|
|
|= gam=telegram
|
|
|
|
(sh-fact %txt ~(tr-line tr man.she gam))
|
|
|
|
::
|
|
|
|
++ sh-repo-grams :: apply telegrams
|
|
|
|
|= [num=@ud gaz=(list telegram)]
|
|
|
|
^+ +>
|
|
|
|
!!
|
|
|
|
::
|
|
|
|
++ sh-repo :: apply report
|
|
|
|
|= rad=report
|
|
|
|
^+ +>
|
|
|
|
?- -.rad
|
|
|
|
%house ~& [%sh-repo-house rad]
|
|
|
|
+>
|
|
|
|
%grams ~& [%sh-repo-grams +.rad]
|
|
|
|
+>
|
|
|
|
%config ~& [%sh-repo-config +.rad]
|
|
|
|
+>
|
|
|
|
%group ~& [%sh-group +.rad]
|
|
|
|
+>
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ sh-sole
|
|
|
|
|= act=sole-action
|
|
|
|
^+ +>
|
2015-03-30 23:25:30 +03:00
|
|
|
~& [%sh-sole-act act]
|
|
|
|
+>
|
2015-03-30 09:43:48 +03:00
|
|
|
--
|
|
|
|
::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ peer
|
|
|
|
|= [ost=bone her=ship pax=path]
|
|
|
|
^- [(list move) _+>]
|
2015-03-30 09:43:48 +03:00
|
|
|
?: ?=([%sole *] pax)
|
|
|
|
~& [%radio-peer-sole ost her pax]
|
|
|
|
?< (~(has by shells) ost)
|
|
|
|
?> =(our.hid her)
|
|
|
|
=+ man=`span`?~(t.pax (main her) ?>(?=(~ t.t.pax) i.t.pax))
|
|
|
|
sh-abet:~(sh-peer sh [ost ~ ~] `shell`[her man *sole-share ~ ~])
|
|
|
|
:: ~& [%radio-peer-data ost her pax]
|
2014-12-18 05:34:40 +03:00
|
|
|
ra-abet:(~(ra-subscribe ra ost ~) her pax)
|
2014-07-04 05:47:51 +04:00
|
|
|
::
|
2015-03-25 21:12:35 +03:00
|
|
|
++ poke-radio-command
|
2014-12-18 05:34:40 +03:00
|
|
|
|= [ost=bone her=ship cod=command]
|
|
|
|
^- [(list move) _+>]
|
2015-03-25 21:33:49 +03:00
|
|
|
:: ~& [%radio-poke-command her cod]
|
2015-01-22 08:04:40 +03:00
|
|
|
=^ moz +>.$ ra-abet:(~(ra-apply ra ost ~) her cod)
|
|
|
|
[moz +>.$]
|
2014-07-04 05:47:51 +04:00
|
|
|
::
|
2015-03-30 09:43:48 +03:00
|
|
|
++ poke-sole-action
|
|
|
|
|= [ost=bone her=ship act=sole-action]
|
|
|
|
sh-abet:(~(sh-sole sh [ost ~ ~] (~(got by shells) ost)) act)
|
|
|
|
::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ pour
|
|
|
|
|= [ost=bone pax=path sih=*]
|
2014-07-03 02:08:02 +04:00
|
|
|
^- [(list move) _+>]
|
2014-12-18 05:34:40 +03:00
|
|
|
:: ~& sih=sih
|
|
|
|
=+ sih=((hard sign) sih)
|
2015-03-25 21:12:35 +03:00
|
|
|
:: ~& [%radio-pour ost pax sih]
|
|
|
|
?+ pax ~& [%radio-strange-path pax] !!
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
[%twitter *]
|
|
|
|
=- ra-abet:(~(ra-twitter ra ost ~) met sih)
|
|
|
|
^= met
|
2015-03-25 21:12:35 +03:00
|
|
|
?+ t.pax ~| [%radio-twitter-strange-path pax] !!
|
2015-01-27 07:30:22 +03:00
|
|
|
:: [%mine @ @ ~]
|
|
|
|
:: [i.t.pax i.t.t.t.pax]
|
2015-01-27 09:20:39 +03:00
|
|
|
[%stat @ @ ~]
|
|
|
|
[(slav %ud i.t.t.pax) i.t.t.t.pax]
|
2014-07-03 02:08:02 +04:00
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
[%friend *]
|
|
|
|
?> ?=([@ @ @ @ ~] t.pax)
|
|
|
|
?. =(%show i.t.pax)
|
2015-03-25 22:04:25 +03:00
|
|
|
:: ~& [%pour-friend-nuke-nuke pax]
|
2014-12-18 05:34:40 +03:00
|
|
|
[~ +>.$]
|
2015-01-27 11:19:18 +03:00
|
|
|
=+ man=i.t.t.pax
|
|
|
|
=+ ?: ?=(%twitter i.t.t.t.pax)
|
|
|
|
tay=[%| i.t.t.t.pax i.t.t.t.t.pax]
|
|
|
|
tay=[%& (slav %p i.t.t.t.pax) i.t.t.t.t.pax]
|
2015-01-27 04:55:01 +03:00
|
|
|
ra-abet:(~(ra-friend ra ost ~) man tay sih)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
|
|
|
[%repeat *]
|
|
|
|
?> ?=([@ @ @ ~] t.pax)
|
|
|
|
=+ [num her man]=[(slav %ud i.t.pax) (slav %p i.t.t.pax) i.t.t.t.pax]
|
2015-01-27 09:20:39 +03:00
|
|
|
ra-abet:(~(ra-repeat ra ost ~) num [%& her man] sih)
|
2014-07-03 02:08:02 +04:00
|
|
|
==
|
|
|
|
::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ pull
|
|
|
|
|= ost=bone
|
|
|
|
^- [(list move) _+>]
|
2015-03-25 22:04:25 +03:00
|
|
|
:: ~& [%radio-pull `*`ost]
|
2015-03-30 09:43:48 +03:00
|
|
|
=. shells (~(del by shells) ost)
|
2015-03-25 22:04:25 +03:00
|
|
|
ra-abet:ra-ever:~(ra-cancel ra ost ~)
|
2014-12-18 05:34:40 +03:00
|
|
|
::
|
2014-12-19 02:28:26 +03:00
|
|
|
++ poke-bit
|
|
|
|
|= [ost=bone you=ship ~]
|
|
|
|
^- [(list move) _+>]
|
|
|
|
:_ +>.$
|
2015-03-25 21:12:35 +03:00
|
|
|
=+ paf=/(scot %p our.hid)/try/(scot %da lat.hid)/radio/backlog/jam
|
2014-12-19 02:28:26 +03:00
|
|
|
[ost %pass /jamfile %c %info our.hid (foal paf (jam +<+.+>.$))]~
|
|
|
|
::
|
2014-12-18 05:34:40 +03:00
|
|
|
++ prep
|
|
|
|
|= old=(unit (unit house-any))
|
|
|
|
^- [(list move) _+>]
|
|
|
|
?> ?=(^ old)
|
2015-01-23 01:01:39 +03:00
|
|
|
=| moz=(list move)
|
2015-01-01 23:43:50 +03:00
|
|
|
|-
|
2014-12-18 05:34:40 +03:00
|
|
|
?~ u.old
|
2015-03-25 21:12:35 +03:00
|
|
|
=+ paf=/(scot %p our.hid)/try/(scot %da lat.hid)/radio/backlog/jam
|
2014-12-19 02:28:26 +03:00
|
|
|
?. ?=([%0 %0 %0] [.^(%cy paf)])
|
2015-03-25 21:12:35 +03:00
|
|
|
~& %radio-prep-restore
|
2014-12-19 02:28:26 +03:00
|
|
|
$(u.old (some ((hard house-any) (cue ((hard ,@) .^(%cx paf))))))
|
2015-01-06 02:59:57 +03:00
|
|
|
ra-abet:~(ra-init ra 0 moz)
|
|
|
|
:- moz
|
2014-12-18 05:34:40 +03:00
|
|
|
|-
|
|
|
|
?- -.u.u.old
|
2014-12-19 02:28:26 +03:00
|
|
|
%1 %_(+>.^^$ +<+ u.u.old)
|
2014-12-18 05:34:40 +03:00
|
|
|
%0 $(u.u.old [%1 (house-0-to-house-1 +.u.u.old)])
|
|
|
|
==
|
|
|
|
::
|
|
|
|
++ house-0-to-house-1
|
|
|
|
|= vat=house-0
|
|
|
|
^- house-1
|
2015-01-01 23:43:50 +03:00
|
|
|
=- :* stories=-
|
2014-12-18 05:34:40 +03:00
|
|
|
general=~
|
|
|
|
outbox=[0 ~]
|
|
|
|
folks=~
|
2015-03-30 09:43:48 +03:00
|
|
|
shells=~
|
2014-12-18 05:34:40 +03:00
|
|
|
==
|
2015-01-01 23:43:50 +03:00
|
|
|
^- (map span story)
|
2014-12-18 05:34:40 +03:00
|
|
|
=- %- ~(run by -)
|
|
|
|
|= grams=(list telegram)
|
2015-01-01 23:43:50 +03:00
|
|
|
^- story
|
2014-12-18 05:34:40 +03:00
|
|
|
:* count=(lent grams)
|
|
|
|
grams=grams
|
|
|
|
locals=~
|
|
|
|
remotes=~
|
|
|
|
sequence=~
|
2015-01-26 04:38:03 +03:00
|
|
|
shape=[.(cordon [%black ~])]:*config
|
2014-12-18 05:34:40 +03:00
|
|
|
^= known %- mo ^- (list ,[serial @]) =< +
|
|
|
|
(roll grams |=([telegram a=@ b=(list ,[serial @])] [+(a) [a p.q] b]))
|
|
|
|
guests=~
|
|
|
|
viewers=~
|
|
|
|
owners=~
|
|
|
|
==
|
2014-12-17 04:33:08 +03:00
|
|
|
^- (map span (list telegram))
|
2014-12-18 05:34:40 +03:00
|
|
|
%- mo %+ turn (~(tap by vat))
|
2014-12-17 04:33:08 +03:00
|
|
|
|= [a=path b=(list zong) c=(map ship ,?)]
|
2014-12-18 05:34:40 +03:00
|
|
|
=+ ^= par
|
|
|
|
?: =(/ a) 'hub'
|
|
|
|
=+ (turn a |=(d=span leaf/(trip d)))
|
|
|
|
(crip ~(ram re %rose ["_" ~ ~] -))
|
2014-12-17 04:33:08 +03:00
|
|
|
:- par
|
2015-01-26 04:38:03 +03:00
|
|
|
=+ aud=`audience`[[[%& our.hid par] *envelope %received] `~]
|
2014-12-17 04:33:08 +03:00
|
|
|
=+ ^= spe
|
|
|
|
|= r=_r:*zong ^- speech
|
|
|
|
?- -.r
|
2015-01-06 23:31:36 +03:00
|
|
|
%say [%lin %& p.r]
|
|
|
|
%do [%lin %| p.r]
|
|
|
|
%exp [%fat [%tank q.r ~] [%exp p.r]]
|
2014-12-17 04:33:08 +03:00
|
|
|
==
|
2014-12-18 05:34:40 +03:00
|
|
|
%+ turn b
|
2014-12-17 04:33:08 +03:00
|
|
|
|= d=zong ^- telegram
|
2015-01-26 04:38:03 +03:00
|
|
|
[q.d (sham eny.hid d) aud p.d ~ (spe r.d)]
|
2014-07-03 02:08:02 +04:00
|
|
|
--
|