This seems pretty cool. Don't know if this is more common in game scripting languages, but I've never seen it before
This seems pretty cool. Don't know if this is more common in game scripting languages, but I've never seen it before
Stackless Python: https://stackless.readthedocs.io/en/2.7-slp/library/stackles...
Also Tcl and some special versions of Java and WebAssembly VMs, Lua with some ugly hacks. I tried to find systems like these: https://github.com/void4/notes/issues/16
Challenge for language designers: make this kind of sandboxing work recursively, and 100% securely: https://www.reddit.com/r/ProgrammingLanguages/comments/jxo92...
https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExa...
When the Smalltalk implementation provides lightweight processes, snapshot saves the state of the lightweight processes — so when Smalltalk is restarted, the lightweight processes restart and continue doing whatever they were doing.
Common e.g. in Smalltalk VMs