Skip to content

Commit

Permalink
WIP: remove %loud hint, add Ackermann function
Browse files Browse the repository at this point in the history
  • Loading branch information
ashelkovnykov committed Jun 13, 2023
1 parent 38d8990 commit 37d1a73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
3 changes: 1 addition & 2 deletions hoon/scaffolding/baby.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
^- ^
:: ~> %slog.[0 'got']
:: ~> %slog.[0 -.card.ovo]
~> %loud.0
=/ fec [//term/1 %blit [%put "effect"] [%nel ~] ~]
=/ fec [//term/1 %blit [%put (jois "A(2,1) = " (ack 2 1))] [%nel ~] ~]
[[fec ~] ..poke]
--
::
Expand Down
11 changes: 11 additions & 0 deletions hoon/scaffolding/cradle.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -718,4 +718,15 @@
=+ d=(get b)
(~(put by a) b (~(put in d) c))
--
++ ack
|= [m=@ud n=@ud]
?~ m +(n)
?~ n
$(m (dec m), n 1)
$(m (dec m), n $(n (dec n)))
++ jois
|= [t=(list @t) n=@ud]
?~ t
[`@t`(add 48 n) ~]
[i.t $(t t.t)]
--
12 changes: 0 additions & 12 deletions rust/ares/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,10 +671,6 @@ fn match_hint_pre_hint(
let mut key = Cell::new(stack, subject, formula).as_noun();
cache.lookup(stack, &mut key)
}
tas!(b"loud") => {
eprintln!("%loud pre-hint reporting!\r");
None
}
_ => None,
}
}
Expand Down Expand Up @@ -704,10 +700,6 @@ fn match_hint_pre_nock(

None
}
tas!(b"loud") => {
eprintln!("%loud pre-nock reporting!\r");
None
}
_ => None,
}
}
Expand All @@ -731,10 +723,6 @@ fn match_hint_post_nock(
*cache = cache.insert(stack, &mut key, res);
None
}
tas!(b"loud") => {
eprintln!("%loud post-hint reporting!\r");
None
}
_ => None,
}
}

0 comments on commit 37d1a73

Please sign in to comment.