shrub/mar/talk/report.hoon

145 lines
3.9 KiB
Plaintext
Raw Normal View History

2014-12-06 11:12:52 +03:00
::
2015-06-05 03:27:01 +03:00
:::: /hoon/talk-report/mar
2014-12-06 11:12:52 +03:00
::
/? 314
/- talk
2015-09-01 22:35:42 +03:00
/+ talk
2014-12-06 11:12:52 +03:00
!:
[talk .]
2015-12-10 12:17:19 +03:00
|_ rep+report
2014-12-06 11:12:52 +03:00
::
++ grab :: convert from
|%
++ noun report :: clam from %noun
--
++ grow
|%
++ mime [/text/json (taco (crip (pojo json)))]
2015-06-19 04:47:41 +03:00
++ json
2014-12-10 02:11:30 +03:00
=> +
2014-12-06 11:12:52 +03:00
|^ %+ joba -.rep
?- -.rep
2015-12-10 12:17:19 +03:00
$cabal (cabl +.rep)
2015-12-20 14:48:17 +03:00
$house a#(turn (~(tap by +.rep)) jose)
2015-12-10 12:17:19 +03:00
$glyph ((jome |=(a+char a) nack) +.rep)
2015-12-20 14:48:17 +03:00
$grams (jobe num#(jone p.rep) tele#[%a (turn q.rep gram)] ~)
$group (jobe local#(grop p.rep) global#%.(q.rep (jome parn grop)) ~)
2014-12-06 11:12:52 +03:00
==
2015-12-10 12:17:19 +03:00
++ joce |=(a+span [%s a])
2015-01-26 20:44:09 +03:00
++ jose
2015-12-10 12:17:19 +03:00
|= {a+span b+posture c+cord}
2015-12-20 14:48:17 +03:00
(jobe name#[%s a] posture#[%s a] caption#[%s b] ~)
2015-01-26 20:44:09 +03:00
::
2015-06-19 04:47:41 +03:00
++ jove
2015-12-10 12:17:19 +03:00
|= {a+envelope b+delivery}
2015-01-26 20:44:09 +03:00
%- jobe :~
2015-12-20 14:48:17 +03:00
envelope#(jobe visible#[%b p.a] sender#?~(q.a ~ s#(parn u.q.a)) ~)
delivery#[%s b]
2015-01-26 20:44:09 +03:00
==
2015-12-10 12:17:19 +03:00
++ jope |=(a+ship (jape +:<a>)) ::[%s (crip +:(scow %p a))])
++ joke |=(a+tank [%s (role (turn (wash 0^80 a) crip))])
++ jode |=(a+time (jone (div (mul (sub a ~1970.1.1) 1.000) ~s1)))
2015-06-19 04:47:41 +03:00
:: ++ jase
2014-12-06 11:12:52 +03:00
:: |* a=,json
2015-12-14 10:58:14 +03:00
:: |= b=(set ,$+<.a) ^- json
2014-12-06 11:12:52 +03:00
:: ~! b
:: [%a (turn (~(tap in b)) a)]
::
++ jome :: stringify keys
2015-12-15 01:21:10 +03:00
|* {a+_cord b+_json}
|= c+(map _+<.a _+<.b)
2014-12-06 11:12:52 +03:00
(jobe (turn (~(tap by c)) (both a b)))
::
++ both :: cons two gates
2015-12-15 01:21:10 +03:00
|* {a+_* b+_*}
|=(c+_[+<.a +<.b] [(a -.c) (b +.c)])
2014-12-06 11:12:52 +03:00
::
::
2015-12-10 12:17:19 +03:00
++ nack |=(a+(set (set partner)) [%a (turn (~(tap in a)) sorc)])
++ grop (jome phon stas) :: (map ship status)
2015-12-10 12:17:19 +03:00
++ phon |=(a+ship (scot %p a))
2015-12-20 14:48:17 +03:00
++ stas |=(status (jobe presence#(joce p) human#(huma q) ~))
++ gram |=(telegram (jobe ship#(jope p) thought#(thot q) ~))
2015-06-19 04:47:41 +03:00
++ thot
|= thought
2015-12-20 14:48:17 +03:00
(jobe serial#(jape <p>) audience#(audi q) statement#(stam r) ~)
2014-12-06 11:12:52 +03:00
::
2015-01-26 20:44:09 +03:00
++ audi (jome parn jove)
++ bouq
2015-12-10 12:17:19 +03:00
|= a+bouquet
2015-12-20 14:48:17 +03:00
a#(turn (~(tap in a)) |=(b+path a#(turn b |=(c+span s#c))))
2015-01-26 20:44:09 +03:00
::
++ parn
2015-12-10 12:17:19 +03:00
|= a+partner ^- cord
2015-04-06 22:57:23 +03:00
?- -.a
$& (stat p.a)
$| %- crip
?- -.p.a
$twitter "{(trip -.p.a)}/{(trip p.p.a)}"
==
2014-12-06 11:12:52 +03:00
==
::
2015-04-06 22:57:23 +03:00
++ stat
2015-12-10 12:17:19 +03:00
|= a+station ^- cord
2015-04-06 22:57:23 +03:00
(crip "{<p.a>}/{(trip q.a)}")
::
2015-06-19 04:47:41 +03:00
++ stam
|= statement
2015-12-20 14:48:17 +03:00
(jobe date#(jode p) bouquet#(bouq q) speech#(spec r) ~)
2015-01-26 20:44:09 +03:00
::
2014-12-06 11:12:52 +03:00
++ spec
2015-12-10 12:17:19 +03:00
|= a+speech
2014-12-06 11:12:52 +03:00
%+ joba -.a
2015-12-20 14:48:17 +03:00
?+ -.a ~|(stub#-.a !!)
$lin (jobe txt#[%s q.a] say#[%b p.a] ~)
$url (joba txt#[%s (crip (earf p.a))])
$exp (joba txt#[%s p.a])
$tax (joba txt#(jape (rend-work-duty p.a)))
$app (jobe txt#[%s q.a] src#[%s p.a] ~)
$fat (jobe tor#(tors p.a) taf#$(a q.a) ~)
$mor a#(turn p.a spec)
:: %inv (jobe ship#(jope p.a) party#[%s q.a] ~)
2014-12-06 11:12:52 +03:00
==
::
2015-06-19 04:47:41 +03:00
++ tors
2015-12-13 03:35:35 +03:00
|= a+torso
2015-06-19 04:47:41 +03:00
%+ joba -.a
?- -.a
2015-12-10 12:17:19 +03:00
$text [%s (role +.a)]
$tank [%a (turn +.a joke)]
2015-12-20 14:48:17 +03:00
$name (jobe nom#s#p.a mon#$(a q.a) ~)
2015-06-19 04:47:41 +03:00
==
::
2014-12-06 11:12:52 +03:00
++ huma
|= human
%^ jobe
2015-12-20 14:48:17 +03:00
hand#?~(hand ~ [%s u.hand])
2014-12-06 11:12:52 +03:00
:- %true
2015-06-19 04:47:41 +03:00
?~ true ~
=+ u.true
2015-12-20 14:48:17 +03:00
(jobe first#[%s p] middle#?~(q ~ [%s u.q]) last#[%s r] ~)
2014-12-06 11:12:52 +03:00
~
::
2015-04-06 22:57:23 +03:00
++ cabl
|= cabal
%- jobe :~
2015-12-20 14:48:17 +03:00
loc#(conf loc)
ham#((jome stat conf) ham)
2015-04-06 22:57:23 +03:00
==
::
++ sorc
2015-12-10 12:17:19 +03:00
|= a+(set partner) ^- json
2015-12-20 14:48:17 +03:00
[%a (turn (~(tap in a)) |=(b+partner s#(parn b)))]
::
2014-12-06 11:12:52 +03:00
++ conf
|= config
%- jobe :~
2015-12-20 14:48:17 +03:00
sources#(sorc sources)
caption#[%s caption]
=- cordon#(jobe posture#[%s -.cordon] list#[%a -] ~)
2015-01-26 20:44:09 +03:00
(turn (~(tap in q.cordon)) jope) :: XX jase
2014-12-06 11:12:52 +03:00
==
--
-- --