mindy icon indicating copy to clipboard operation
mindy copied to clipboard

event loop

Open waywardmonkeys opened this issue 10 years ago • 3 comments

We currently have parts of an event loop in the C code within the interpreter. But we aren't using any modern mechanisms ... and it isn't providing support for doing stuff from the Dylan level.

What can we improve here?

Can we learn something from the Haskell MIO library?

waywardmonkeys avatar Oct 31 '15 03:10 waywardmonkeys

libuv? there is also the eventloop from redis (ae.c) that could be used. But first, wouldn't it be better to gather the interpreter globals into a state object?

kaveman- avatar Oct 31 '15 07:10 kaveman-

From what I remember all the interpreter state is already encapsulated in a thread_t structure containing the PC, SP, etc...

pierredepascale avatar Nov 02 '15 12:11 pierredepascale

Yes, but those then share the same heap and loaded code. There are things where having entirely separate VMs in a single process would be useful (but a fair bit of work).

waywardmonkeys avatar Nov 02 '15 12:11 waywardmonkeys