Skip to content

One-time stack re-ordering step for repeat loops #51

Open

Description

@ControlCplusControlV
No description provided.

Activity

  1. ControlCplusControlV commented on Dec 17, 2022

    @ControlCplusControlV
    OwnerAuthor

    One-time stack re-ordering step for repeat loops

    For repeat loops, instead of re-ordering the stack afterwards to be like before, you can instead see what the stack is going to look like at the end of the loop, and order the stack accordingly before the loop.

    Ex. if the stack is [a, b, c] before the repeat, and will be [b, a, c] after one loop, instead of going [b, a, c] -> [a, b, c] N times, you can go from [a, b, c] -> [b, a, c] once, before the loop.

  2. webbrain-one commented on Aug 21, 2026

    @webbrain-one

    A PR is now up for this: #57. It adds a one-time stack re-ordering step when a repeat loop starts, which fixes the stack ordering issue for repeat loops. 🎉

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