Skip to content

For loop with creating objects get stuck depending on the N #879

@DercilioFontes

Description

@DercilioFontes

Based on the issue (tryandromeda/andromeda#141) in Andromeda and its investigation, a loop that creates a new object gets stuck depending on N.

I created a test case in Andromeda in this branch:
https://github.com/DercilioFontes/andromeda/blob/fix(issue-141)-Blank-output%2C-freezes-during-class-initialization/examples/loops.ts

I don't think this is a problem in Andromeda, but in the Nova engine.

Likely root cause (ChatCPT): Andromeda's Map implementation + GC cannot handle 5000 object-valued entries in a tight loop, causing the VM to freeze or stall.

Sharing it here to get feedback from Nova contributors.

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