Skip to content

Support Reference Types #28

@skas102

Description

@skas102

The existing virtual machine work with value types for all types including arrays, maps and structs. This should be changed due to various reason such as gas cost (which are currently really high -> See Array Opcode ArrAt) and space efficiency.

In this issue we should find out, what changes in the vm would be required to be able to support reference types.

Things to concider:

  • A simple heap implementation might be required to map the references to pointers.
  • How is the garbage collection done? Is it required?
  • Are there OpCodes that need to be created/removed/modified?
  • Is the Roll Opcode still required? Could it be an alternative for the heap?
  • Other ideas on how to solve this issue.

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