mirror of
https://github.com/urbit/ares.git
synced 2024-12-22 12:51:42 +03:00
pull generator don't print result, debug hints only
This commit is contained in:
parent
4bbb786861
commit
e86a4fe0f0
@ -1,3 +1,3 @@
|
||||
/+ subject-knowledge
|
||||
|= [s=sock:subject-knowledge f=*]
|
||||
-:(pull:subject-knowledge bord:subject-knowledge s f)
|
||||
~:(pull:subject-knowledge bord:subject-knowledge s f)
|
||||
|
@ -398,14 +398,14 @@
|
||||
:: memo miss
|
||||
=. memo (~(put by memo) [s k.f] `(unit sock)`~) :: blackhole for recursive eval
|
||||
=^ res memo ^$(s s, f k.f)
|
||||
~& "Miss: {<[s k.f]>}"
|
||||
~& "Miss: sock {<s>} formula {<k.f>}"
|
||||
[[%mis res] (~(put by memo) [s k.f] `(unit sock)``r.res)] :: fill in result
|
||||
?~ u.mem
|
||||
:: memo blackhole
|
||||
~& "Recur: {<[s k.f]>}"
|
||||
~& "Recur: sock {<[s]>} formula {<k.f>}"
|
||||
[[%rec s k.f] memo]
|
||||
:: memo hit
|
||||
~& "Hit: {<[s k.f]>}"
|
||||
~& "Hit: sock {<[s]>} formula {<k.f>} result {<u.u.mem>}"
|
||||
[[%hit u.u.mem] memo]
|
||||
?+ f ~| %pull-bonk !!
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user