Open LinqLover opened 2 years ago
Evaluating process-switching Smalltalk code on top of other languages (Python in this example) is not (yet) supported. I'm not sure it can ever be supported correctly across languages as Smalltalk uses continuations for execution and not all languages support that. For your example to work, Python stack frame would need to be persisted before yielding back to the UI process. There's no way to do this at the moment.
The following expression crashes the GraalVM for me:
Stack trace
If I fork this expression instead, the image hangs for a while, then displays a polyglot error for a process switch, but the UI process seems not to be running any longer after that, and because TruffleSqueak apparently does not support user interrupts at the moment (?), I find no way to continue from there, either.