Skip to content

RegTest: undocumented differences between rem and remsingle? #18

Open

Description

@stormi

Unless I searched poorly, it seems that the difference is not documented, either in the script's help or in regtest.html.

Activity

  1. stormi commented on Jul 26, 2026

    @stormi
    Author

    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?

  2. erkyrath commented on Jul 29, 2026

    @erkyrath
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions