winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.05k stars 196 forks source link

Delegate all fs operations to WASI host in wingc #1560

Open MarkMcCulloh opened 1 year ago

MarkMcCulloh commented 1 year ago

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.

staycoolcall911 commented 1 year ago

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

staycoolcall911 commented 1 year ago

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

github-actions[bot] commented 1 year ago

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] commented 6 months ago

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!