wing icon indicating copy to clipboard operation
wing copied to clipboard

Delegate all fs operations to WASI host in wingc

Open MarkMcCulloh opened this issue 2 years ago • 4 comments

Currently we use WASI to read/write files from within wingc. This is convenient, but brings challenges. It also limits us to requiring WASI rather than being able to run in pure WASM contexts.

Most challenges are due to dealing with preopens which have to be posix paths, thus causing issues with Windows.

Proposal: From rust, call into extern JS function for fs operations. Similiar to how this is used.

MarkMcCulloh avatar Feb 16 '23 11:02 MarkMcCulloh

The "business" impact might be that windows or other OS might break more easily

staycoolcall911 avatar Feb 20 '23 13:02 staycoolcall911

It's also a stability issue - we rely on WASI, which is experimental, instead of directly on WASM (which is not experimental)

staycoolcall911 avatar Feb 20 '23 13:02 staycoolcall911

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Apr 24 '23 06:04 github-actions[bot]

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar May 11 '24 06:05 github-actions[bot]