From 431d6e6c3d1f72094c10d538b9a3a801a9283e4c Mon Sep 17 00:00:00 2001 From: ault011 Date: Mon, 22 Jun 2015 11:59:29 -0700 Subject: [PATCH 1/3] add nock11 reference --- pub/doc/nock/reference.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pub/doc/nock/reference.md b/pub/doc/nock/reference.md index 0d1f4977a..5e9ecac67 100644 --- a/pub/doc/nock/reference.md +++ b/pub/doc/nock/reference.md @@ -710,6 +710,13 @@ variants of `10` as equivalent.) ------------------------------------------------------------------------ +Op 11: Lookup +----------- + +**Lookup and retrieve data from global namespace from path** + +nock 11 is an additional nock operation provided by arvo to provide access to the global namespace. It's provided by arvo, so even though it's not technically a part of the nock, any code that arvo runs has access to it. When nock running on top of arvo hits nock 11, it either produces a value or blocks. The most common usage is with clay, where ^(%cx /path/to/file) will produce the referred-to-file. + Crash default ------------- From 26be153a63c85f38e68da90f924c756090e7e0ae Mon Sep 17 00:00:00 2001 From: ault011 Date: Mon, 22 Jun 2015 12:02:41 -0700 Subject: [PATCH 2/3] update nock 11 reference --- pub/doc/nock/reference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pub/doc/nock/reference.md b/pub/doc/nock/reference.md index 5e9ecac67..1550b9273 100644 --- a/pub/doc/nock/reference.md +++ b/pub/doc/nock/reference.md @@ -710,10 +710,10 @@ variants of `10` as equivalent.) ------------------------------------------------------------------------ -Op 11: Lookup +Op 11: Retrieve ----------- -**Lookup and retrieve data from global namespace from path** +**operator 11** retrieves data from the global namespace at the path it is given. nock 11 is an additional nock operation provided by arvo to provide access to the global namespace. It's provided by arvo, so even though it's not technically a part of the nock, any code that arvo runs has access to it. When nock running on top of arvo hits nock 11, it either produces a value or blocks. The most common usage is with clay, where ^(%cx /path/to/file) will produce the referred-to-file. From 3f9b8942da6c38e22fbce9a6081b545aa50219e3 Mon Sep 17 00:00:00 2001 From: Philip C Monk Date: Tue, 23 Jun 2015 18:22:26 -0400 Subject: [PATCH 3/3] respond to subscription even if "nothing changed" fixes #320 --- arvo/clay.hoon | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arvo/clay.hoon b/arvo/clay.hoon index 0879f5894..9e01db46e 100644 --- a/arvo/clay.hoon +++ b/arvo/clay.hoon @@ -381,7 +381,6 @@ =+ sar=(lobes-at-path:ze u.nab r.q.rav) =+ ear=(lobes-at-path:ze top r.q.rav) =. +>.$ - ?: =(sar ear) +>.$ (bleb hen u.nab ?:(p.rav ~ `[u.nab top])) ?^ huy (blub hen) @@ -868,7 +867,8 @@ =+ let=let =+ hut=(~(uni by hut.ran) nut) =+ lat=(~(uni by lat.ran) nat) - =+ =+ yon=`aeon`1 :: sanity check + =+ ?: =(0 let) ~ + =+ yon=`aeon`1 :: sanity check |- ~| yon=yon =+ tak=(~(got by hit) yon) @@ -1453,6 +1453,8 @@ ^- nako :+ hit.dom let.dom + ?~ =(0 b) + [~ ~] (data-twixt-takos (~(get by hit.dom) a) (aeon-to-tako b)) :: ++ query :: query:ze @@ -2493,7 +2495,6 @@ [mos ..^$] :: %mont - =. hez.ruf ?^(hez.ruf hez.ruf `[[%$ %sync ~] ~]) =+ pot=(~(get by mon.ruf) p.q.hic) ?^ pot ~& [%already-mounted pot]