elliottt opened PR #7134 from elliottt:trevor/serve-args
to bytecodealliance:main
:
Generalize some of the command-line handling between the
serve
andrun
commands, and refactorserve
to process the arguments it was ignoring before.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt has marked PR #7134 as ready for review.
elliottt requested alexcrichton for a review on PR #7134.
elliottt requested wasmtime-core-reviewers for a review on PR #7134.
elliottt submitted PR review.
elliottt created PR review comment:
Viceroy spawns a thread for this, is it reasonable to use a tokio task instead?
elliottt updated PR #7134.
elliottt updated PR #7134.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
No I think this is best done as a thread because if you've got N cores each running wasm within Tokio then because nothing is preemptive a separate Tokio task wouldn't ever actually run to increment the epoch, so OS scheduling is required to guarantee epochs get incremented and Tokio tasks yield
alexcrichton submitted PR review:
Thanks! If you're interested the WASI configuration stuff would also be a good candidate for
src/common.rs
because the arguments like-S
live within thecli-flags
crate but they're not actually processed there. I think this is good to merge either way though!(similarly handling
--allow-precompiled
and loading a module to run might be good to put insrc/common.rs
as well)
elliottt updated PR #7134.
elliottt updated PR #7134.
elliottt has enabled auto merge for PR #7134.
elliottt merged PR #7134.
Last updated: Nov 22 2024 at 16:03 UTC