Readit News logoReadit News
evacchi commented on WebAssembly: Yes, but for What?   queue.acm.org/detail.cfm?... · Posted by u/todsacerdoti
jchw · 2 months ago
I think WebAssembly could be amazing for taking chunks of existing programs and making them super portable (and sandboxed!), and it kind of is already, but boy, I was pretty surprised to just recently realize it's not really as polished or complete as I think you'd hope for this use case.

If you want to build something like libpng (or a myriad of other C libraries,) you need setjmp/longjmp. Not really a huge problem: Emscripten can handle this, it just needs a tiny bit of help via host functions. You can also use Wasm Exception Handling instead, in which case you don't need any hacks on the host side.

So far this sounds pretty good, but actually it isn't, because:

- Wasm Exception Handling is still not part of the standard. They are supported by browsers and runtimes based on browsers, but they are unsupported by lots of other runtimes (Wazero doesn't seem to support them, for example.)

- When you're using Emscripten outside of a browser, you can use the Emscripten method for sjlj support even in a "standalone" build, calling into some simple host functions, which is handy. The problem is... standalone builds with Emscripten don't really work that well. A lot of the syscalls don't really go anywhere: https://github.com/emscripten-core/emscripten/blob/main/syst...

A non-standalone build is possible, but even though Emscripten does use WASI for many things automatically, a lot of host support is required to make this work properly, so outside of a browser environment I reckon this will take a lot of work, and it seems also that it will be hard to properly implement those functions in many of the standalone Wasm runtimes.

You can compile with a Clang/WASI toolchain instead, which will implement much more of the syscalls via WASI, but I don't think this supports the Esmcripten method for handling Wasm Exception Handling, which means you need to have a runtime with Wasm Exception Handling support.

I guess the Clang/WASI toolchain is doing the right thing here, but it's still somewhat frustrating that Wasm Exception Handling is still not a part of the standard or many of the non-browser runtimes.

evacchi · 2 months ago
> - Wasm Exception Handling is still not part of the standard. They are supported by browsers and runtimes based on browsers, but they are unsupported by lots of other runtimes (Wazero doesn't seem to support them, for example.)

...yet! :p

EDIT: I realized this comment might be too terse. I contribute to Chicory and wazero, I have recently worked on tail calls for wazero and EH would be the next item on my personal todo list. Let's see!

evacchi commented on WASM Agents: AI agents running in the browser   blog.mozilla.ai/wasm-agen... · Posted by u/selvan
asim · 2 months ago
The frustrating thing about this is the limitation of using a browser. Agents should be long-running processes that exist external to a browser. The idea of using wasm is clever, but it feels like the entire browser environment needs to evolve because we're no longer dealing with just web pages. I think we are looking at a true evolution of the web now if this is the way it's going to go
evacchi · 2 months ago
mcp.run is entirely based on wasm. Tools can run on our cloud or locally
evacchi commented on Mill as a direct style build tool   mill-build.org/blog/12-di... · Posted by u/lihaoyi
evacchi · 3 months ago
OT: I really like Li Haoyi's work in the Scala community, trying to bring Python's straightforward programming model to Scala.

I've been wondering if there is an equivalent in the Rust ecosystem. I think https://github.com/facet-rs/facet is going in the right direction

evacchi commented on OCaml's Wings for Machine Learning   github.com/raven-ml/raven... · Posted by u/musha68k
evacchi · 4 months ago
so finally someone is actually putting ML in ML
evacchi commented on MCP Run Python   github.com/pydantic/pydan... · Posted by u/xrd
evacchi · 4 months ago
cool!! you might also want to check out https://www.mcp.run/dylibso/eval-py

It's open source too :) https://github.com/dylibso/mcp.run-servlets/tree/main/servle...

We also use Wasm to sandbox all our servlets https://docs.mcp.run/blog/2025/04/07/mcp-run-security

(I work at Dylibso)

evacchi commented on A hackable AI assistant using a single SQLite table and a handful of cron jobs   geoffreylitt.com/2025/04/... · Posted by u/stevekrouse
evacchi · 4 months ago
hah! this is great. I built something similar using mcp.run and a task

- https://docs.mcp.run/tasks/tutorials/telegram-bot

for memories (still not shown in this tutorial) I have created a pantry [0] and a servlet for it [1] and I modified the prompt so that it would first check if a conversation existed with the given chat id, and store the result there.

The cool thing is that you can add any servlets on the registry and make your bot as capable as you want.

[0] https://getpantry.cloud/ [1] https://www.mcp.run/evacchi/pantry

Disclaimer: I work at Dylibso :o)

u/evacchi

KarmaCake day805November 13, 2013
About
In the past I worked on programming language research at unimi.it; after working at the R&D dept of UniCredit Bank, I joined Red Hat, working on the Drools rules engine and the Kogito cloud-native business automation platform, contributing to Quarkus and lately qbicc.org; I joined Tetrate.io to work on the wazero Wasm runtime for Go. Now I have joined Dylibso, where I work on the Chicory Wasm runtime for Java, on wazero, Extism, XTP, mcp.run and more!

evacchi.dev

View Original