-
Notifications
You must be signed in to change notification settings - Fork 97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* would like to add a method for unmarshal into a struct | ||
* dag nodes | ||
* don't have consistent format? | ||
* this need stems from go being statically typed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is, dagNode
in js-ipld don't have consistent types/interfaces. This doesn't work well (it can work, it just sucks) in statically typed languages so this interface isn't portable across languages.
* not convinced this is the best way forward (@diasdavid accurate?) | ||
* javascript does not have interfaces, which is why we have separate interface tests | ||
* that said, having consistent naming convention helps | ||
* go, block level doesn't understand ipld, node level does, but ... (@stebalien to fill out) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In go, we have two levels, soon to be 3:
- Blocks: Raw data, carry CIDs, don't understand IPLD.
- Nodes: Serialized but traversable data, carry CIDs, understand IPLD.
- Objects (abstract nodes?): Not serialized, traversable data, don't carry CIDs with them, understand IPLD. (PROPOSED)
Basically, when working with IPLD, one will be able to "unmarshal"/"deserialize" Node
s into abstract Object
s for editing and then serialize them back into nodes to commit them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Stebalien please update the notes directly, remember that Jon is still picking up in a lot of these terms and it would be hard for him to write exactly what we would like to have in the notes with the links to what we know. He already did a great job of capturing the whole thread of the convo, now we can just tune it up for every follower and for ourselves :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Sorry, I forgot I could do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
* Create 2017-08-31--ipld-deep-dives.md * 2017-08-31 IPLD Deep Dive: Fill out my (stebalien) parts.
@diasdavid, @Stebalien, @Kubuxu please add to it :)