Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Reference Types #28

Open
skas102 opened this issue Apr 25, 2019 · 0 comments
Open

Support Reference Types #28

skas102 opened this issue Apr 25, 2019 · 0 comments

Comments

@skas102
Copy link
Collaborator

skas102 commented Apr 25, 2019

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant