Skip to content

The compiler should implement the desktop compiler's optimizations #176

Closed
@TheBizzle

Description

@TheBizzle

The NetLogo Web compiler does not yet reproduce any of the desktop compiler's optimizations. This has two negative effects:

  1. Some primitives are much slower than they need to be
  2. It causes divergent RNG states

I think that item (2) is honestly the bigger problem right now. Sure, I welcome any speedup that NetLogo Web gets, but (2) causes legitimate problems. First of all, it means that some of our language tests cannot be run, because the tests error when they detect divergent RNG states. Secondly, it means that random-seed does not always guarantee reproducible results between desktop NetLogo and NLW, which is unpleasant, and it's not easy for users to predict when divergence will occur and when it won't.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions