Comments (6)
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.
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.
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.
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 Add
ed 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.
Thanks so much for the update, I shall stay tuned!
from wazero.
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)
- ` fd_fdstat_set_flags` truncates file HOT 1
- [WASI] `fd_fdstat_set_flags` with `fdflags::append` resets fd offset HOT 1
- `fd_filestat_set_size` wraps instead of error on large file size
- Inaccurate clock resolution in WASI `clock_res_get` HOT 3
- Feature Request: Rust tokio async interoperability through pollOneOff HOT 20
- Issue with reloading compiled module HOT 3
- flaky test: ExampleCoreFeaturesThreads HOT 2
- flaky test: internal/engine/wazevo.TestE2E on amd64 HOT 2
- flaky test: wasi_snapshot_preview1/wasi_stdlib_unix_test Test_NonblockingFile
- flaky test: TestFileCache_{compiler, wazevo} HOT 12
- Complex Types using WIT Supported HOT 2
- flaky test: TestPoll_Windows/poll_should_wait_for_the_given_duration
- Expose fsConfig.WithSysFSMount for custom writable FS support HOT 4
- How to concurrent call one instance's export function? HOT 2
- dirfs.OpenFile can return EEXIST even if that is not defined FS.OpenFile in the interface documentation HOT 4
- dirfs.OpenFile can return ENAMETOOLONG even if that is not defined FS.OpenFile in the interface documentation HOT 3
- flaky test: Test_pathOpen_Errors/trailing_slash_on_file on Windows HOT 1
- [Question] How to handle importing memory HOT 4
- compiler(arm64) overflow in call relocations HOT 8
- Can a Runtime be reused in parallel and across multiple mutually-untrusted modules? HOT 2
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 wazero.