Skip to content

WASI prototype design, implementation, and documentation.#65

Merged
sunfishcode merged 4 commits intomasterfrom
wasi
Mar 27, 2019
Merged

WASI prototype design, implementation, and documentation.#65
sunfishcode merged 4 commits intomasterfrom
wasi

Conversation

@sunfishcode
Copy link
Member

This adds documents describing the WASI Core API, and an implementation in
Wasmtime.

For more information about WASI, see
https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/

For documentation, see the docs directory in this PR, which is also linked to from
https://wasi.dev.

This adds documents describing the WASI Core API, and an implementation in
Wasmtime.
Fix a missing comma.

Co-Authored-By: sunfishcode <sunfish@mozilla.com>
@maxmcd
Copy link
Contributor

maxmcd commented Mar 27, 2019

Whoaaa nice!

-o, --optimize runs optimization passes on the translated functions
-g generate debug information
-d, --debug enable debug output on stderr/stdout
--preload=<wasm> load an additional wasm module before loading the main module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe allow multiple modules to be preloaded?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use --preload= multiple times.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know that.

Path::new(argv0)
.components()
.next_back()
.map(Component::as_os_str)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I was looking for a function that did that, but somehow missed it. Thanks!

Fix spelling error.

Co-Authored-By: sunfishcode <sunfish@mozilla.com>
@sunfishcode
Copy link
Member Author

Thanks for the reviews all! I'm going to merge this now to make it easier for people to experiment with WASI, but this is just the beginning 😄 .

@sunfishcode sunfishcode merged commit 3ae7c60 into master Mar 27, 2019
@sunfishcode sunfishcode deleted the wasi branch March 27, 2019 18:33
howjmay pushed a commit to howjmay/wasmtime that referenced this pull request Jan 24, 2022
pchickey added a commit to pchickey/wasmtime that referenced this pull request May 16, 2023
* implement some host filesystem operations:

create_directory_at
stat
remove_directory_at
symlink_at
unlink_file_at

* host filesystem tests: some new ones pass, others use EXPECT_FAIL constant

by using `if EXPECT_FAIL` instead of `if true` its now easier to find
which failing tests are actually passing.

The following are now expected to pass (though it may not be the fault
of this branch fixing them):

dangling_fd
file_pread_pwrite
file_unbuffered_write
isatty
path_exists
symlink_create

* dangling_fd fails on windows

* test-programs macros: deduplicate tests

I invoked the test_log::test and tokio::test proc macros incorrectly, so
it created 2 identically named versions of each test
dhil added a commit to dhil/wasmtime that referenced this pull request Dec 6, 2023
mooori pushed a commit to mooori/wasmtime that referenced this pull request Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants