Stream: git-wasmtime

Topic: wasmtime / PR #7987 Revamp some of Wasmtime's book-based ...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 02:29):

alexcrichton requested abrown for a review on PR #7987.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 02:29):

alexcrichton requested wasmtime-default-reviewers for a review on PR #7987.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 02:29):

alexcrichton opened PR #7987 from alexcrichton:refresh-docs to bytecodealliance:main:

I've gone through and done a pass over our current documentation and updated it in some both significant and minor ways. Changes made here are:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen created PR review comment:

Eg wasmtime.dev has:

You can also download binaries directly from the GitHub Releases page.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen created PR review comment:

Alternatively, if we don't want these in the book, I think we should make an examples or tutorial public submodule in the wasmtime crate (cfg'd for docs builds) that has these things.

And we should still have a dedicated page in the book that links to the docs.rs docs for that submodule.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen created PR review comment:

Maybe worth linking to binary releases too, just to stave off the grumpy folks who don't like curl | bash.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 17:49):

fitzgen created PR review comment:

We still check that the associated examples compile in CI, so I'm not sure that getting rid of these is actually warranted? I feel like examples are the most useful form of non-API documentation and I think it would be a shame to just remove all of these. Maybe just keep the Rust versions?

The GCD examples, framed as GCD examples, don't really seem that useful but it is a simple example of the typed function API, which I think is valuable. Maybe we could reframe / retitle it or something?

The memory example seems useful.

The WASI example is dated. Definitely better places to go as far as toolchain docs go. But I think there is room for an example of how you call add_to_linker and all that with Wasmtime to consume WASI components (and probably also worth mentioning legazy preview1 stuff for a while, fwiw). We get a lot of issues filed by people not realizing they need to call add_to_linker and I think having an example to point people at would be good.

The linking example is dated. Subsumed by component model stuff. But we might want to have an example of using the Linker and defining custom functions to be available for import.

Language-specific debugging example seems redundant with the debugging section of the docs, although that section links to the Rust debugging bit. We should inline that into the debugging section (if you haven't already, haven't looked in detail at the rest of the changes yet).

Same thing for the language-specific core dumps bit.

The multi-value example seems like it is still generally useful.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 18:22):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 18:22):

pchickey created PR review comment:

I also feel the examples have some value and was planning on adding some more shortly.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2024 at 18:23):

pchickey edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 15 2024 at 01:04):

alexcrichton closed without merge PR #7987.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 15 2024 at 01:04):

alexcrichton commented on PR #7987:

I'm gonna close this for now and I'll reopen if/when I get a chance to get back to it.


Last updated: Dec 23 2024 at 12:05 UTC