Comments (3)
Just to reiterate - procedures will always be trusted, right?
Yes, this is correct.
How much do you expect this to come up, though? I wonder if it's worth doing it now vs. waiting to see to what extent we really want this & in what contexts, since different contexts could drive different preferred solutions.
Good point! We can wait a little on this. I think u256 operations, EC signatures, and hash functions might need something like this - but good to wait until we actually start working on them.
from miden-vm.
The only downside of this I can think of is that it would enable potential abuse of fmp where a procedure could return absolute address of its local (which would be a logical error).
Just to reiterate - procedures will always be trusted, right? (With functions used for "untrusted" procedures, where parameters passed via the stack, as discussed in #73 )
We could add assembly instructions to access fmp and then the caller would be able to compute the absolute address, but i wonder whether having a more specialized instruction is more convenient.
Yes, I prefer passing via env as proposed rather than requiring the caller to figure it out themselves. The complexity is minimized this way & kept in one place (where it will in fact be straightforward to handle).
In some situations it may be useful to get the absolute memory location of a local variable.
How much do you expect this to come up, though? I wonder if it's worth doing it now vs. waiting to see to what extent we really want this & in what contexts, since different contexts could drive different preferred solutions
from miden-vm.
Closed by #124
from miden-vm.
Related Issues (20)
- `MastForest`: Ensure that the number of nodes is less than 2^30 HOT 2
- Rename `internals` feature to `testing` HOT 1
- Add tests on `Windows` in CI
- Using the univariate sum-check IOP from Aurora to implement final evaluation claim
- Fix `ModuleGraph` constructors HOT 1
- LogUp-GKR proposition to simplify input layer polynomials HOT 4
- `VerifyCmd` flag collision HOT 2
- Restrict the number of stack inputs and outputs to 16
- Reinstate inlining of `repeat` statements HOT 1
- Minor refactoring of the `Library` struct HOT 1
- Investigate removing `AssemblyError` enum HOT 1
- Restore documentation build in the `miden-stdlib`
- Investigate specifying external libraries for the assembler at construction time HOT 3
- Add support for procedure annotations to the assembler HOT 1
- Implement support for vendoring procedures in the assembler HOT 3
- Allow multi-module kernels HOT 4
- Finish debugging improvements HOT 2
- CLI `bundle` command: add `debug_mode` and `kernel` flags HOT 1
- Implement `Eq` and (`De`)`Serializable` for `AdviceMap`
- Fix re-exports from aliased module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miden-vm.