-
-
Notifications
You must be signed in to change notification settings - Fork 670
Consider adding platform flags (E.g --browser, --wasi) / Easier defaults for newcomers #1132
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
Comments
Hm, yeah, the
Not sure what's more user-friendly. |
Ah that makes sense! :) So what about
Would it be too much to ask for a combination of these actually? 😄 Like if we detect they are using WASI. Default to adding the And yeah, I think it'd be good if we had an abort like built into the stdlib (if that means you don't have to manually import the one that Thanks! 😄 And again, down to look into getting my feet (more) wet with the compiler for this one 😄 |
Also, this came up in the beginners channel int he discord recently. @MaxGraey and I were helping someone, and gave some feedback here I thought was useful to this issue 😄
This has to mostly do with the JS side of things. But I don't think we need to expect this imports in these cases really if we provide them 😄 |
When using the loader, there is no need to specify an |
@dcodeIO Ah! I didn't know that was the issue. Personally, I never used the loader, outside of wrapping it for as-bind (which in that case I have) 😂 But now that I know the loader provides this, I think it's probably more about improving the docs on this one section? 🤔 It's hard to assume what someone new may think when playing with it 😢 |
Initial implementions to make WASI modules "just work": #1159 |
Closing this issue as part of 2020 vacuum since the new |
Hello!
So I have seen more than a handful of issues that creep up in multiple places (the latest being bytecodealliance/lucet#436 but I can definitely find more examples), that cause headaches for people because they happened to miss something in the docs.
As more "platforms" for wasm start coming around, I think it'd be nice to have some alias flags for certain envioronments.
Like for example, on all of my wasi applications (like as-echo), I always have to take the extra step of adding:
--use wasi_abort
from as-wasis wasi_abortMaybe it'd be a good idea for as different platforms require different things, we can add some default alises for said platform? Or maybe another solution works?
Just wanted to hear some thoughts on this. And I totally think I can open a PR for this one whatever we decide to do 😄
The text was updated successfully, but these errors were encountered: