Open philiprhoades opened 11 months ago
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
bash scripts are not really the kind of thing that can be easily compiled to WebAssembly
Yep, worked that out!
some language that does have good WebAssembly support such as C
Yep, using C, converting to WASM then to WAT to see what it looks like . .
If you are hoping to run your program in the browser you probably want to look at using emscripten to build your project...
Yes, doing that as the first stage . .
if you are planning on running your project on the server you probably want to use wasi-sdk.
If I make some progress with the first stage, I will then look at that angle . .
so Maildir processing might not be a good match.
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.