Skip to content

Question about determinism #601

Description

@encloinc

I looked into LUAU but couldn't find any information pertaining to this. Does mlua provide a way to interpret a script OP_CODE by OP_CODE?

Example: lets say I wanted to deterministically run lua scripts where I can guarantee the output on any machine, and I assign each opcode a "cost" and have a "max cost" for the script - which all machines respect. How would I go about this with mlua?

I know theres ways to terminate a lua script after x time with LUAU, but even then I cant guarantee determinism because different machines might deviate from how much is actually ran during this window of time.

Thanks in advance!

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions