GithubHelp home page GithubHelp logo

Comments (6)

mathetake avatar mathetake commented on July 22, 2024 1

Hi @neilalexander, I just forgot to reply here.. we are planning to refactor the API in anyway #170, so we will revisit this issue after that. I will keep you posted! Thank you!

from wazero.

codefromthecrypt avatar codefromthecrypt commented on July 22, 2024

would you mind giving a before and after code snippet for what motivated you to raise the issue? I bet you felt annoyed at a call site you'd love to have better. can you give an example of that?

(ps you can also ignore my feedback, I'm just trying to learn how people are using this, so would appreciate it)

from wazero.

mathetake avatar mathetake commented on July 22, 2024

Thanks @neilalexander. That kind of API sounds great, but I would like to better understand your usecase and API you have in your mind. Then we could come up with the concrete API before we merge in.

from wazero.

neilalexander avatar neilalexander commented on July 22, 2024

I have a project which has a runtime where ideally we'd be able to control which functions and globals are available at runtime based on permissions/capabilities (which can change during execution).

Right now we only have Add functions and no ability to Remove them later, and even if we did have Remove functions, it would turn into a bit of a nightmare tracking which things have been exported and removed from a given VM safely.

I don't have a specific API shape in mind here, but being able to pass in a callback which gets notified when resolving a function or global hasn't already been Added so that we can call custom functions and/or return custom values would be amazing.

I'm not terribly familiar with this codebase but I'll be more than happy to work with you to help design an API shape :-)

from wazero.

neilalexander avatar neilalexander commented on July 22, 2024

Thanks so much for the update, I shall stay tuned!

from wazero.

codefromthecrypt avatar codefromthecrypt commented on July 22, 2024

I think this is a relic as the API is wildly different since this was opened. Please open a new issue for any features you need!

from wazero.

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.