GithubHelp home page GithubHelp logo

Comments (4)

rossberg avatar rossberg commented on August 16, 2024

That would require first-class references to memories. That is something that has been discussed a couple of times, but it is a way more advanced extension and beyond the scope of this specific proposal. Here, we just introduce the same thing we already have for table and globals.

from multi-memory.

pepyakin avatar pepyakin commented on August 16, 2024

Maybe I am missing something, but why are memory references needed? I was more thinking about extending memory instructions in such a way that they would require an i32 operand which specifies the memory index on which to perform the operation. Instead of adding a set of new instructions a new bitflag could be devoted in existing ones which if enabled makes these instructions to take a new operand with the memory index.

I have no idea how it might be supported on the toolchain side though. I suspect that augmenting a pointer with additional memory index might just not work.

from multi-memory.

rossberg avatar rossberg commented on August 16, 2024

Static index spaces and dynamic operands are completely disjoint universes. If you could select a static index with a dynamic operand then all sorts of things would break, e.g., you could no longer merge modules.

To do it safely, you'll need an indirection through a table to do that, as for functions. But that would require the ability to put references to memory objects into tables.

from multi-memory.

pepyakin avatar pepyakin commented on August 16, 2024

Ah, now I see, thanks!

from multi-memory.

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.