-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Converting a little Bash script to WAT as an exercise #546
Comments
bash scripts are not really the kind of thing that can be easily compiled to WebAssembly. As of today you are probably better choosing a project that is written in some language that does have good WebAssembly support such as C/C++ or rust. If you are hoping to run your program in the browser you probably want to look at using emscripten to build your project... if you are planning on running your project on the server you probably want to use wasi-sdk. If you are targeting the web, remember that you don't have easy access the actual filesystem of either the server or the client, so Maildir processing might not be a good match.b |
Yep, worked that out!
Yep, using C, converting to WASM then to WAT to see what it looks like . .
Yes, doing that as the first stage . .
If I make some progress with the first stage, I will then look at that angle . .
Yes, that could certainly be an issue . . Thanks! |
I don't think this issue is really WASI related so maybe we can close this? |
People,
I want to convert the little Bash script hereunder to WAT as an actuall useful exercise for me to getting started with WASM - the script simply counts the number of emails in a Maildir tree that are less than x minutes old and prints the numbers out for each of the dirs.
I presume I will need WASI for this exercise - pointers to any similar exercises would be helpful . .
Thanks,
Phil.
The text was updated successfully, but these errors were encountered: