-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pow2 function from Anoma/Nock stdlib (#2629)
This PR introduces the `pow2` function from the Anoma/Nock stdlib, replacing the 'Builtin function' version we wrote in the Tree->Nockma translation. This will be more efficient because it will be jetted in Anoma. ## New Anoma/nockma stdlib locations The Nock stdlib now has multiple layers. We now use a Nock term to to fetch each stdlib symbol's code because this can be obtained from Urbit's dojo, for example: > => anoma !=(add) [9 20 0 15] where `anoma` is the symbol where the anoma stdlib is loaded. The stdlib is the Nock code associated with https://github.com/anoma/anoma/blob/6a4e15fe9c356225034f38445ce0eace2b43ab5e/hoon/anoma.hoon ## Tests This commit also adds unit tests for the stdlib / appendRights functions. The tests use the evaluator with 'interceptStdlibCalls' both enabled and disabled.
- Loading branch information
1 parent
8dfe2ba
commit 1edddfb
Showing
8 changed files
with
409 additions
and
352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.