You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RegTest: undocumented differences between rem and remsingle? #18
So, the docstring tells it: "Rather than keeping an interpreter open in the background, we launch it once for each input. RemGlk will autosave each turn and autorestore for the next turn."
I could document it, but I don't understand the use case. In which case is it meant to be used?
The remsingle option is useful for an application server which might need to handle many simultaneous games without keeping an interpreter process running for each one.
For example, I used this to construct a Discord bot (see https://github.com/iftechfoundation/discoggin). The bot can handle any number of active games without running out of RAM, because any given interpreter runs only long enough to process a single turn.
Activity
stormi commentedon Jul 26, 2026
So, the docstring tells it: "Rather than keeping an interpreter open in the background, we launch it once for each input. RemGlk will autosave each turn and autorestore for the next turn."
I could document it, but I don't understand the use case. In which case is it meant to be used?
erkyrath commentedon Jul 29, 2026
The remsingle option is useful for an application server which might need to handle many simultaneous games without keeping an interpreter process running for each one.
For example, I used this to construct a Discord bot (see https://github.com/iftechfoundation/discoggin). The bot can handle any number of active games without running out of RAM, because any given interpreter runs only long enough to process a single turn.