← Back to context

Comment by souvik1997

8 hours ago

agentvm looks very cool! They are taking a different approach - full Linux VM emulated in WASM. It's very impressive technically.

We differentiate from agentvm by being lightweight (~11 MB Wasm binary, compared to 173 MB for agentvm). Though there is still a lot we can learn from agentvm, thank you for sharing their project.

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.

  • 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.

  • Nice! Fork is actually already working on Wasmer thanks to WASIX :) (and sockets, subprocesses, ...).

    Let me know if you need any help using it!

  • "Rethinking Code Refinement: Learning to Judge Code Efficiency" https://news.ycombinator.com/item?id=42092120

    ewasm docs > Gas Costs > "Gas costs of individual instructions" 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