Giter Club home page Giter Club logo

Comments (3)

bobbinth avatar bobbinth commented on August 24, 2024 1

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.

grjte avatar grjte commented on August 24, 2024

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.

bobbinth avatar bobbinth commented on August 24, 2024

Closed by #124

from miden-vm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.