← Back to context

Comment by syrusakbary

8 hours ago

> For agent tool calling, you don't really need NumPy and Pandas.

That's true, but you'll likely need sockets, pydantic or SQLAlchemy (all of of them require heavy support on the Wasm layer!)

Fair point. We get around this by "yielding" back from the Wasm runtime (in a coroutine style) so that the "host" can do network calls or other IO on behalf of the Wasm runtime. But it would be great to do this natively within Wasm!

  • Might be worth taking a look at WASIX [1]

    We implemented all the system calls necessary to make networking work (within Wasm), and dynamic linking (so you could import and run pydantic, numpy, gevent and more!)

    [1] https://wasix.org/

    • We will take a look! Thanks for sharing. Dynamic linking to run pydantic/numpy/etc. would be huge!