Skip to content

Commit

Permalink
Update anoma nock stdlib to include resource machine client library (#…
Browse files Browse the repository at this point in the history
…3110)

> ⚠️ There's a big diff because `stdlib.nockma` is now exported from
Anoma with no line-breaks.

The nock stdlib code was obtained from anoma release v0.24.1. The nock
stdlib now contains the resource machine client library.


https://github.com/anoma/anoma/blob/a20b5e78380b4dcf554fda6f4c75758cc1b70063

using the Elixir interactive prompt in the root of a clone of Anoma.

```
iex -S mix
iex(1)> File.write("./stdlib.nockma", Nock.rm_core |> Noun.Format.print)
```

I've added these instructions for updating the `stdlib.nockma` file in a
`README.md`.

The nock cells in StdlibFunction.hs were obtained in the urbit dojo
using:


https://github.com/anoma/anoma/blob/a20b5e78380b4dcf554fda6f4c75758cc1b70063/hoon/anoma.hoon

https://github.com/anoma/anoma/blob/a20b5e78380b4dcf554fda6f4c75758cc1b70063/hoon/resource-machine.hoon
  • Loading branch information
paulcadman authored Oct 18, 2024
1 parent 0a9ec8f commit c238429
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2,194 deletions.
11 changes: 11 additions & 0 deletions runtime/nockma/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Anoma Resource Machine Standard Library

The file `stdlib.nockma` is obtained from the [Anoma Node repository](https://github.com/anoma/anoma).

Follow the compilation instructions for Anoma and run the Elixir interactive
shell in the root of the Anoma clone:

```sh
iex -S mix
iex(1)> File.write("./stdlib.nockma", Nock.rm_core |> Noun.Format.print)
```
Loading

0 comments on commit c238429

Please sign in to comment.