From 584bfbb74fff6ee607b1b13fbe3a012ac93e0925 Mon Sep 17 00:00:00 2001 From: Paul Driver Date: Tue, 8 Nov 2016 21:03:58 -0800 Subject: [PATCH 1/6] hint +-wyt:in --- sys/hoon.hoon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/hoon.hoon b/sys/hoon.hoon index 3ebd9aaa77..97bc96a8f3 100644 --- a/sys/hoon.hoon +++ b/sys/hoon.hoon @@ -1096,7 +1096,9 @@ $(b [n.b l.b $(b r.b, a [n.a ~ r.a])], a l.a) :: +- wyt :: size of set - |- ^- @ + =< $ + ~% %wyt + ~ + |. ^- @ ?~(a 0 +((add $(a l.a) $(a r.a)))) -- :: :: From 573562fc0cfd76913140ef53012eab7bfdf89bee Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Tue, 8 Nov 2016 09:58:14 -0800 Subject: [PATCH 2/6] add /===/mar and /===/arvo to %core req dependends This will cause many false positives (all apps reloaded on any mark change), but @cgyarvin says it's better than them drifting out of sync as they currently do. --- sys/vane/ford.hoon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vane/ford.hoon b/sys/vane/ford.hoon index de6f910de6..08c7ec0e62 100644 --- a/sys/vane/ford.hoon +++ b/sys/vane/ford.hoon @@ -1323,6 +1323,8 @@ :: $core %+ cool |.(leaf+"ford: core {<(en-beam p.kas)>}") + %+ flag [bek /mar] + %+ flag [bek /arvo] (cope (lear cof p.kas) (flux |=(a/vase [%& %core a]))) :: $diff From e6dcaa4a1c3a37cb48d4ca7d602e8d0e27d3bf4d Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Tue, 8 Nov 2016 10:28:33 -0800 Subject: [PATCH 3/6] comments --- sys/vane/ford.hoon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/vane/ford.hoon b/sys/vane/ford.hoon index 08c7ec0e62..2ac3f4fee3 100644 --- a/sys/vane/ford.hoon +++ b/sys/vane/ford.hoon @@ -1323,8 +1323,12 @@ :: $core %+ cool |.(leaf+"ford: core {<(en-beam p.kas)>}") + :: code runtime behaviour is frequently affected by marks + :: TODO: track this more formally %+ flag [bek /mar] - %+ flag [bek /arvo] + :: until /? is in use, any hoon may implicitly depend on arvo types + %+ flag [bek /arvo/hoon] + %+ flag [bek /arvo/zuse] (cope (lear cof p.kas) (flux |=(a/vase [%& %core a]))) :: $diff From b713d424b5994c3fd4a0566811de5c5883eaefd0 Mon Sep 17 00:00:00 2001 From: Fang Date: Fri, 25 Nov 2016 19:22:42 +0100 Subject: [PATCH 4/6] Fixed talk's command parser: now properly parses ;who * instead of ;who*. --- app/talk.hoon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/talk.hoon b/app/talk.hoon index d984f5343e..811bca0d8c 100644 --- a/app/talk.hoon +++ b/app/talk.hoon @@ -304,7 +304,7 @@ qut == :: - ;~(plug (perk %who ~) ;~(pose para (easy ~))) + ;~(plug (perk %who ~) ;~(pose ;~(pfix ace para) (easy ~))) ;~(plug (perk %bind ~) ;~(pfix ace glyph) (punt ;~(pfix ace para))) ;~((glue ace) (perk %join ~) para) ;~((glue ace) (perk %leave ~) para) From 63d2d970a8ec4cf7bcca58acf34ec936b4888c91 Mon Sep 17 00:00:00 2001 From: Fang Date: Fri, 2 Dec 2016 22:00:55 +0100 Subject: [PATCH 5/6] Telegram renderer receives all settings, instead of just %noob. sef for SEttings Flags. --- app/talk.hoon | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/talk.hoon b/app/talk.hoon index d984f5343e..f11946f4a4 100644 --- a/app/talk.hoon +++ b/app/talk.hoon @@ -440,8 +440,8 @@ :: ++ sh-rend :: print on one line |= gam/telegram - =+ lin=~(tr-line tr man.she (~(has in settings.she) %noob) gam) - (sh-pass:(sh-fact %txt lin) q.q.gam) + =+ lin=~(tr-line tr man.she settings.she gam) + (sh-pass:(sh-fact %txt lin) q.q.gam) :: ++ sh-numb :: print msg number |= num/@ud @@ -1007,7 +1007,7 @@ ++ activate :: from %number |= gam/telegram ^+ ..sh-work - =+ tay=~(. tr man.she (~(has in settings.she) %noob) gam) + =+ tay=~(. tr man.she settings.she gam) =. ..sh-work (sh-fact tr-fact:tay) sh-prod(active.she `tr-pals:tay) :: @@ -2094,7 +2094,7 @@ :: ++ tr :: telegram renderer |_ $: man/knot - nob/? + sef/(set knot) who/ship sen/serial aud/audience @@ -2111,7 +2111,7 @@ =+ ^= baw :: ?: oug :: ~(te-whom te man tr-pals) - ?. nob + ?. (~(has in sef) %noob) (~(sn-curt sn man [who (main who)]) |) (~(sn-nick sn man [who (main who)])) (weld baw txt) From 18afd44cd13f37ad5f0a87c17e17c02ad7a1a33a Mon Sep 17 00:00:00 2001 From: Fang Date: Fri, 2 Dec 2016 22:06:16 +0100 Subject: [PATCH 6/6] Talk can now display a timestamp at the end of messages. Settings flag %showtime. --- app/talk.hoon | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/talk.hoon b/app/talk.hoon index f11946f4a4..e64607e7fb 100644 --- a/app/talk.hoon +++ b/app/talk.hoon @@ -293,6 +293,7 @@ %- perk :~ %noob %quiet + %showtime == ++ work %+ knee *^work |. ~+ @@ -2114,6 +2115,15 @@ ?. (~(has in sef) %noob) (~(sn-curt sn man [who (main who)]) |) (~(sn-nick sn man [who (main who)])) + ?: (~(has in sef) %showtime) + =+ dat=(yore now.hid) + =+ ^= t + |= a/@ ^- tape + %+ weld + ?: (lth a 10) "0" ~ + (scow %ud a) + =+ ^= time :(weld "~" (t h.t.dat) "." (t m.t.dat) "." (t s.t.dat)) + :(weld baw txt (reap (sub 67 (lent txt)) ' ') time) (weld baw txt) :: ++ tr-meta ^- tang