There is an interesting SO question:https://stackoverflow.com/questions/63365401/resuming-lua-script-using-its-c-api
OP uses Lua in his game and wants to be able to get (using Lua C API)
current Lua VM snapshot in some serializable form
for saving it inside a savegame file.
When the saved game is loaded, Lua VM resumes from the saved snapshot.
It looks like a useful feature for embeddable language.
It would also allow running a long-lasting script on one computer,
then pausing it and resuming the calculations on another computer.
The idea might be too hard to implement, but it surely worth discussing.