• Re: Toy asynchronous implementation

    From Lawrence D'Oliveiro@21:1/5 to Dmitri Volkov on Sun Sep 29 23:34:07 2024
    On Sun, 29 Sep 2024 16:56:46 -0400, Dmitri Volkov wrote:

    Wrote a toy implementation of asynchronous programming using
    continuations.

    Continuations can be used to implement

    * coroutines
    * loop constructs
    * exceptions

    but not

    * arbitrary gotos.

    They truly are the universal control construct!

    I implemented them in GXScript <https://bitbucket.org/ldo17/gxscript/>,
    which is my attempt to create a more modern PostScript derivative (sans
    the graphics API), with proper lexical binding and some conveniences to
    try to make stack-based programming a little less error-prone.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)