Using ffi for event loop alternative to stream_select? #533
Replies: 2 comments 4 replies
-
Think @clue tried it out a while ago but nothing solid came out of that back then. If a FFI package would expose the exact same API as the extension it could be a drop in replacement in those situations.
Not really, it's a matter of calling different functions achieving the same thing. It differs from event loop to event loop anyway. |
Beta Was this translation helpful? Give feedback.
-
I was able to use the mentioned package and it worked OOTB. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I was wondering if anyone tried using FFI for creating an event loop that could potentially be used if additional modules are not available and perhaps can be used OOTB and to avoid the limitations imposed by using stream_select.
I was looking at https://github.com/symplely/uv-ffi and was wondering if there would be significant differences of implementing an event loop like that instead of using a separate extension.
Beta Was this translation helpful? Give feedback.
All reactions