Skip to content

feat(vm): promises #5

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat(vm): promises #5

wants to merge 2 commits into from

Conversation

sambacha
Copy link
Owner

No description provided.

sambacha added 2 commits July 5, 2022 04:07
source: openrelayxyz/cardinal-evm@6b555dd
from that commit (sic): 

Pipelined EVM implementation
CPUs regularly use instruction pipelining: https://en.wikipedia.org/wiki/Instruction_pipelining

This allows them to have multiple operations executing in parallel when
one instruction does not rely on the output of the immediately preceding
instruction.

This commit experiments with introducing a form of pipelining to the EVM.
It shifts the stack from being uint256 values to essentially being promises
for uint256 values. Mathematical operations on these promises produce new
promises, allowing these operations to happen in the background where
appropriate, and blocking only when the outcome of an operation is dependent
on the resolved value of a stack value and cannot be deferred further.

The hope is that allowing certain types of operations (such as state lookups)
to happen in the background while operations that do not directly rely on
the value of the state lookup can continue operating, only blocking when
the value from the state lookup becomes a crucial piece of information.
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

Successfully merging this pull request may close these issues.

1 participant