|
From: Matthias K. <mk...@uc...> - 2025-05-18 22:24:54
|
Michel, Thanks a lot for sharing this. I'm open to using multiple threads in ECL for my use case, but haven't checked the details about its thread support yet. On Sun, May 11, 2025 at 2:08 AM Michel Talon <ta...@lp...> wrote: > For this use case, why not start an ecl thread to run the user interaction for side computations? [...] one may run maxima programs in one thread without disturbing computations in an other thread, thanks to the fact that a lot of maxima variables are global dynamic [...] I understand that the special variables defined in MAXIMA have thread-local bindings, making the bindings of these variables separate while running in separate threads. But I don't think it will help with global state such as assumptions or the gensym counter, unless I am missing something. (By the way, in your version of the code, why do you have to go through the print representation (WRITE-STRING, MREAD-RAW) at all? Don't the threads share the same heap and can directly communicate using values?) Matthias -- Matthias Koeppe -- http://www.math.ucdavis.edu/~mkoeppe |