Conversation
There was a problem hiding this comment.
Maybe we should call this advice.masm instead? I don't think I'd know to look for these intrinsics in a module named io.masm
There was a problem hiding this comment.
Yes. Advice ops are in IO ops section of the book, but IO might be far too generic for the intrinsic file name.
sdk/stdlib-sys/src/intrinsics/mod.rs
Outdated
| pub use crypto::*; | ||
| pub use debug::*; | ||
| pub use felt::*; | ||
| pub use io::*; |
There was a problem hiding this comment.
I don't think it's a good idea to hide the namespacing and re-export everything from t he top level like this - I'd rather try to match the structure of the Miden standard library. Even if we do our own organization, I still think it aids discovery when things are namespaced.
For example, miden_stdlib_sys::merge (which I saw in the diff somewhere here) does not tell you what that function is at all, while miden_stdlib_sys::crypto::merge at least hints that it is a crypto-related operation.
There was a problem hiding this comment.
Good point. What about the types? I suppose we export types from the root, or do we want to export them from specific crates as well?
b230f2d to
4815892
Compare
|
Thank you! I addressed your notes. Please do another round. |
Close #626
This PR is stacked on the #555 and should be merged after it
This PR adds the following functions to the Miden SDK: