-
Notifications
You must be signed in to change notification settings - Fork 108
IPLD Crete Resolutions #49
Comments
They are. I'll write them up later today. |
@Stebalien Looking forward to reading your write up. I've had a good chat with @nicola and we identified some misconceptions about how IPLD should work. There are simplifications that we should continue pursuing dev exp and maintenance, example: JSON doesn't have Buffers, that is fine, we don't need to recreate EJSON/BSON + JavaScript Objects are not JSON. |
@Stebalien here in Lisbon we kind of reverted the resolution to the second proposal, |
@nicola why would you do that? That leaves with a much worse solution than what we had at the end of our talks in Crete. |
Honestly, we should just avoid JSON as much as possible. However, JSON is useful for interoperability with, e.g., tools like |
@diasdavid, this is the time in which you explain your reasoning :D |
We want to enable users to:
We don't want to:
We also want:
As a side note to the side quest, the real issue with JSON and why we keep hitting the JSON wall is because it gets used as the data format to create responses on the HTTP-API. However, me, @whyrusleeping and I believe also @Stebalien agree that defaulting to JSON on the http-api is just a cause of great pain and not any gain. We want the users to pick however and the http-api should return a header with the serialization type (i.e application/dag-cbor). The way to solve the http-api situation is described here https://github.com/ipfs/interface-ipfs-core/issues/81#issuecomment-277271941 |
Couple of counter points:
I do agree however, the real cause of pain there is the fact that pure JSON can't represent byte arrays (precisely what we were trying to address). I do believe we should stop returning JSON from the HTTP endpoint by default, for performance if nothing else. However, being able to spit out JSON (or something like it) on the command line is still quite useful, if for no other reason than human readability (*without loss of important information as is the case today). Now, we could just add support for EJSON, however, IMO, it isn't the best fit:
TL;DR:
|
Closing due to staleness as per team agreement to clean up the issue tracker a bit (ipld/team-mgmt#28). This doesn't mean this issue is off the table entirely, it's just not on the current active stack but may be revisited in the near future. If you feel there is something pertinent here, please speak up, reopen, or open a new issue. [/boilerplate] |
@Stebalien, @dignifiedquire and I had a set of conversations on:
{'/': '...', type:''}
)@Stebalien can you write down the notes that we took?
I don't have the notes with me, I think they are on your notebook
The text was updated successfully, but these errors were encountered: