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

Implement BiBo in the CU #145

Merged
merged 14 commits into from
Nov 9, 2023
Merged

Implement BiBo in the CU #145

merged 14 commits into from
Nov 9, 2023

Conversation

TillaTheHun0
Copy link
Member

@TillaTheHun0 TillaTheHun0 commented Nov 9, 2023

This PR updates the CU implementation to use the new Bytes-In, Bytes-Out ao approach. This is implemented on top of the message streaming already in place in the CU.

Summary of changes to impl:

  • tags are now passed to processes as the native { name, value }[] arweave tag shape. This is for both Sequenced and Scheduled Messages
  • The buffer that represents the process state is persisted as an attachment on the evaluation document. The buffer is compressed using zlib
  • Changes to support the new shape of the process return. Instead of { state, result: { output, messages, spawns, error } }, it is { output, messages, spawns, error }
  • No longer persist the input message, as part of cached evaluation -- it is unused and just bloats persistence.

Closes #132

@TillaTheHun0 TillaTheHun0 merged commit 3d3b968 into main Nov 9, 2023
5 checks passed
@TillaTheHun0 TillaTheHun0 deleted the tillathehun0/cu-bibo-132 branch November 9, 2023 23:37
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.

BiBo changes in CU
1 participant