-
Notifications
You must be signed in to change notification settings - Fork 716
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
☂️ Document Dart's support for compilation to Wasm #5609
Comments
For readers note that this list is tentative and still being added to and adjusted! Also not all of these entries need to be resolved as this is just a rough list. @MaryaBelanger I created this as a place to start collecting pieces that might need additions or changes as we start to work on Wasm docs over time. Feel free to edit this as you complete your evaluation process - Thanks :) @kevmoo Also feel free to add to the issue or comment here with anything that comes to you as important or relevant :D |
Also need to figure out if this is |
Sound list! Couple extra things I'm wondering about from my evaluation:
|
I think in the short term it could make sense to have its own page to have a clearly identifiable home for those wanting to learn about the new deployment target, its status, how to prepare for it, how to enable it, how to test it, etc. It'll likely be easier for us to maintain while there's still a lot of evolution too. However, you're right and in the long term it likely doesn't make sense to document it as a standalone entity. The experimental/migration period is of course a bit special though, so it's probably fine. Eventually I can see it being a section of the web deployment page with links to other relevant docs. Later on we can redirect it to a section on the deployment page or wherever we decide later on down the road :)
As for where that could be located, I think your suggestion of it being under Development > Web apps makes perfect sense. I imagine a redirect like
That's true. As mentioned in our last chat, I think we can expand those docs with a section about trying to compile to Wasm to verify those steps have been completed successfully.
I love that idea!! As you mentioned, the existing JS interop docs will cover most necessary code changes. So that leaves tooling and workflow changes, which a walkthrough of a package migration including tests and everything seems like it could perfectly showcase that. We might have to end up crafting an example, but that shouldn't be too bad. The number and other semantics differences can of course be sprinkled in as well :) |
Thanks for the feedback @parlough! I'll add the more concrete ideas we settled on to the top description. Another thought: In addition to updating the web deployment page, we should probably update the "Build a web app" page too.... Would that update fall under "updating for wasm"? Or is that more of just a I was thinking maybe this simple example from mit might be a good sample web app to reframe that rewrite around, if that makes sense: dart-lang/sdk#32894 (comment) |
I stubbed out some content here that may be useful input into this docs effort: main...wasm |
Support:
Semantics and behavior:
dart2wasm
supporting native semantics #5345Interop:
Command line tools:
dart compile wasm
command #5440webdev
supports Wasm compilationbuild_web_compilers
support ([webdev] Generate auto-switching combined build for dart2js and dart2wasm output webdev#2296)Tooling:
The text was updated successfully, but these errors were encountered: