Skip to content
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

compiling dart vm to wasi/wasm as bootstrap #51782

Closed
3 tasks
selfisekai opened this issue Mar 20, 2023 · 2 comments
Closed
3 tasks

compiling dart vm to wasi/wasm as bootstrap #51782

selfisekai opened this issue Mar 20, 2023 · 2 comments

Comments

@selfisekai
Copy link
Contributor

this is just an idea, not sure how hard it would get to implement. inspired by zig: https://ziglang.org/news/goodbye-cpp/

  • add vm compilation targets for wasi
  • allow building sdk using these wasi builds as an alternative bootstrap method (running through wasmtime or other wasi runtime)
  • distribute official wasi builds

bootstrapping is a major point of pain from alpine linux perspective - we currently rely on a windows build via wine, which greatly limits available architectures

@mraleph
Copy link
Member

mraleph commented Mar 20, 2023

Compiling to WASI would:

a) require rewriting parts of the runtime that rely on things like mmap
b) using simulated build (e.g. simarm or simarm64) because Dart VM does not currently have an interpreter.

This is feasible, but hardly optimal. There is a much simpler path towards enabling bootstrap on alpine, outlined in this comment.

I am going to file an issue to track this work, though we are not committing at any concrete timeline yet.

@mraleph mraleph closed this as completed Mar 20, 2023
@mraleph
Copy link
Member

mraleph commented Mar 20, 2023

Filed #51788

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

No branches or pull requests

2 participants