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

exploration: Agoric marshal types, protobuf, rholang data types #19

Closed
dckc opened this issue Jan 17, 2022 · 3 comments
Closed

exploration: Agoric marshal types, protobuf, rholang data types #19

dckc opened this issue Jan 17, 2022 · 3 comments

Comments

@dckc
Copy link
Collaborator

dckc commented Jan 17, 2022

As @erights was presenting Agoric marshal types and such in the ZEstival last week, I said it's remarkable how much it looks like the data types in rholang: immutable lists, sets, maps, etc. as well as matching and sorting.

Based on some some type-directed prototyping (marshal-rhoproto.js in service of rchain-community/js2rho#16 , I think using RhoTypes.proto for interchange is promising, though I doubt the matching and sorting semantics are consistent between Agoric and RChain in the details. I haven't tried a serializing matchers in such a way that they would show up as matchers in rholang yet. That would be a good test.

cc @cwebber @kriskowal

@zenhack
Copy link
Collaborator

zenhack commented Jan 17, 2022

Hm, there's a lot of stuff in RhoTypes.proto that probably don't make sense in language-agnostic protocol; it looks like it is designed to encode a full rho AST, not just data literals & caps.

...either way, we really should nail down the data model before we devote too may cycles to specific encodings.

@dckc
Copy link
Collaborator Author

dckc commented Jan 17, 2022

Hm, there's a lot of stuff in RhoTypes.proto that probably don't make sense in language-agnostic protocol; it looks like it is designed to encode a full rho AST, not just data literals & caps.

sure; I don't propose to use the whole thing. Just the relevant parts.

...either way, we really should nail down the data model before we devote too may cycles to specific encodings.

I don't know how to nail down abstract things; only running code that I can test.

After all, .proto is abstract in that it has at least 3 concrete syntaxes. (JSON, text, binary)

@dckc dckc changed the title RhoTypes.proto as meta-schema? exploration: Agoric marshal types, protobuf, rholang data types Nov 17, 2022
@dckc
Copy link
Collaborator Author

dckc commented Dec 6, 2022

doubt this is worth tracking going forward

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