| ▲ | schmuhblaster 15 hours ago | |
Thank you! When I started working on agentvm my original goal was similar to yours, build a kind of Mingw or Cygwin for WASM. However, I quickly learned that this wouldn't really be feasible with reasonable amounts of time/token spend, mostly due to issues like having to find a way to make fork work, etc. I am no expert for WASM or Linux system programming, but it's been a lot of fun working on this stuff. I hope that the WASI standard and runtimes become more mature, as I feel that WASM sandboxes make a lot of sense in environments where containers are not an option. | ||
| ▲ | souvik1997 14 hours ago | parent | next [-] | |
Thanks for sharing the context! The fork problem is gnarly. Makes sense that full Linux emulation was the path forward for your use case. Agreed on WASI maturity. We're hoping the component model lands in a stable form soon. Would love to see the ecosystem converge so these approaches can interoperate. | ||
| ▲ | syrusakbary 14 hours ago | parent | prev | next [-] | |
Nice! Fork is actually already working on Wasmer thanks to WASIX :) (and sockets, subprocesses, ...). Let me know if you need any help using it! | ||
| ▲ | westurner 15 hours ago | parent | prev [-] | |
"Rethinking Code Refinement: Learning to Judge Code Efficiency" https://news.ycombinator.com/item?id=42097656 eWASM has costed opcodes. The EVM virtual machine has not implemented eWASM. Costed opcodes in WASM for agents could incentivize efficiency re: wasm-bpf and eWASM and the BPF verifier: https://news.ycombinator.com/item?id=42092120 ewasm docs > Gas Costs > "Gas costs of individual instructions" https://ewasm.readthedocs.io/en/mkdocs/determining_wasm_gas_... Browser tabs could show CPU, RAM, GPU utilization; From "The Risks of WebAssembly" (2022) https://news.ycombinator.com/item?id=32765865 : > Don't there need to be per- CPU/RAM/GPU quotas per WASM scope/tab? Or is preventing DOS with WASM out of scope for browsers? > IIRC, it's possible to check resource utilization in e.g. a browser Task Manager, but there's no way to do `nice` or `docker --cpu-quota` or `systemd-nspawn --cpu-affinity` to prevent one or more WASM tabs from DOS'ing a workstation with non-costed operations. Presumably workerd supports resource quotas somehow? From 2024 re: Process isolation in browsers : https://news.ycombinator.com/item?id=40861851 : > From "WebGPU is now available on Android" [...] (2022) : >> What are some ideas for UI Visual Affordances to solve for bad UX due to slow browser tabs and extensions? >> UBY: Browsers: Strobe the tab or extension button when it's beyond (configurable) resource usage thresholds >> UBY: Browsers: Vary the {color, size, fill} of the tabs according to their relative resource utilization | ||