-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calls to the embedder #47
Comments
Improvements/clarifications always welcome, but the design repo does state that the way host environments expose host-specific functionality through builtin modules (see also NonWeb.md). Concretely, the way I was expecting this to be reflected in ml-proto:
Thus, just like the C/C++ standard (Section 1.9 Program Execution: "The semantic descriptions in this International Standard define a parameterized nondeterministic abstract machine."), the wasm semantics would be parameterized by the host environment (the import arguments to To make the spec vs. reference interpreter embedding distinction clear in ml-proto, I have been thinking it'd be nice to split up the ML files into subdirs (e.g., |
On 3 September 2015 at 21:00, Luke Wagner [email protected] wrote:
Makes sense. Regarding arithmetic.ml, I think it would belong into /Andreas |
I was also thinking along these lines. It would describe the builtin module situation well, but not the case where imports lead to dynamic fetches and, recursively, more module loading; for that it seems like you'd need some sort of "go load me this module that's not already in the map" callback which seems more complicated. |
Agreed (that's what I was alluding to by "after some massaging" :) |
Make It So :-) |
Created #54. |
Distinguish typeuse from reftype
WasmFX reference interpreter and testsuite
Merge with stack-switching/wasmfx
The design repo is pretty vague about how calls to the embedder work, mostly because we were waiting on an implementation to really get a good understanding. I''m hoping that the spec repo can try things out, and help inform the design.
Could the spec repo implement something so that I can e.g. compile "Hello World!" and print that string to the screen?
I think the current agreement is that embedder calls look like declared-but-not-defined functions in the module. It's pretty similar to what dynamic linking would do.
The text was updated successfully, but these errors were encountered: