[Cuis-dev] Threaded VM FFI usage

short.toy8168 at lrz.me short.toy8168 at lrz.me
Wed Feb 18 17:32:03 PST 2026


Has anyone tried the FFI in a threaded opensmalltalk VM?

As I was building some FFI code for libcurl, I came to understand that
this blocks the entire VM for the duration of the network call,
even in a green thread.

I compiled the threaded VM hoping the code would go from
blocking for the duration of the call to keeping the GUI active.
(The threaded VM is not built by the CI, not where I could find it).

In fact, the network call still works (ie. prints the example.com HTML),
but then the entire VM hangs. I made a threaded debug build too, but with that
I get "Error: Callout mechanism not available"
(despite the ffi prims being there!).

I'm trying this on Windows 11.
Has anyone succeeded with the non-blocking FFI in Cuis yet, on Windows or otherwise?

greetings, Lorenz


More information about the Cuis-dev mailing list