Urgh. I hate libraries that believe that they are the most important thing in the universe and thus they must control the main loop of the program.

Especially when they're not reentrant nor thread safe.

And then the rust bindings say that there is no way to make the library actually safe.

The "fun" increases exponentially when you have to deal with multiple of such libraries in one program.

Follow

@isomer

So you have to dedicate a thread to that library and do your own message passing to actually makes calls to it, right?

@robryk in the ideal case that's what you do. But some of them don't play nicely (eg messing with process wide state like signals or somehow making assumptions that they are the main thread)

@isomer @robryk Lamprey and gRPC. Sorry, I'll go and excuse myself.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.