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

PVM interpreter implementation #39

Closed
9 of 13 tasks
asmie opened this issue Aug 12, 2024 · 0 comments
Closed
9 of 13 tasks

PVM interpreter implementation #39

asmie opened this issue Aug 12, 2024 · 0 comments
Assignees

Comments

@asmie
Copy link
Member

asmie commented Aug 12, 2024

The basic implementation of Polka VM.
PVM instancing, execution and host-functions.

From the Matrix:

Every project is expected to implement. However, since M1 and M2 do not have any performance requirements, you can get away with implementing a simple interpreter, which shouldn't take too long (Jan managed to implement it in less than 24 hours).

Test vectors (PRed):
w3f/jamtestvectors#3

Tasks:

  • Parse program blob feat: parse PVM program blob #43
  • Execute and run code
    • Instantiate the program
    • Set/Get to registers
    • Store/Load to memory
    • Branch/jump
    • Execute external functions
    • Compute basic operations such as add/multiply/divide/shift/and/or/xor etc
    • Jump indirect
    • sbrk
  • Implement Gas
  • Implement tracing
  • tests

Pre-start condition:

  • PVM research task
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

2 participants