native-wasmtime: Rust/wasmtime + wgpu reference backend#1
Open
native-wasmtime: Rust/wasmtime + wgpu reference backend#1
Conversation
Collaborator
Author
|
Thanks for putting this together — having a reference Wasmtime/WGPU backend is useful for comparison. However, I don’t think this PR is in a mergeable state for the main branch right now, mainly because it’s out of sync with the current direction of the repo:
If you’d like to continue with this backend, I’d suggest:
Given the above, my recommendation is: do not merge as-is; either convert to draft and rework, or move this backend to a separate experimental repository. |
Adds a reference native runtime implemented in Rust (wasmtime + wgpu + winit), and wires mgstudio-cli --backend wasmtime to build/run it.
Rebase follow-up: remove repo-root auto-discovery/build for the wasmtime backend; prefer a runtime shipped in the SDK bin/ and allow explicit override via MGSTUDIO_WASMTIME_RUNTIME. Also update docs + add a third-party notices plan.
abf5f97 to
df4535b
Compare
Collaborator
Author
|
Addressed the concerns from the review:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a second native runtime backend implemented in Rust (Cargo), intended as a side-by-side reference implementation alongside the existing MoonBit/wasmoon runtime.
Changes:
Notes: