Skip to content

Reusable definitions #3

@ydewit

Description

@ydewit

Currently, in the classical implementation of Interaction Nets, there is no streamlined method to reuse smaller net structures. This limitation often results in repetitive copy-pasting of the same definitions, leading to inefficiencies and potential errors.

Proposed Solutions:

  • Textual Representation with Named Definitions:
    Introduce a method to define nets by name in the textual representation of the nets.
    The parser could then expand these named definitions into the final, larger net.
    Concern: This approach might lead to significant memory usage, as the expanded net would occupy memory until runtime reduction occurs.

  • Runtime Representation Enhancement:
    Extend the runtime representation of nets to include references to definitions.
    Implement a mechanism where the expansion of these definitions occurs dynamically during net reduction.
    Advantage: This could allow for unrolling definitions incrementally, one at a time, thereby distributing the memory and processing overhead more evenly.
    Goal: To achieve a balance between reusability and efficiency, minimizing memory waste and optimizing performance.

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