Skip to content

Determine version of spec #195

Open
Open

Description

@rikvdh

Hello,

It is not possible to determine a version of MessagePack from the spec. When using MessagePack in corporate applications it is preferred to refer to a specific version of the spec, in order to prevent incompatible changes in the spec which can affect end products. Referring to 'master' is not desirable since it is normally volatile.

In the tags of this repository I can not distinguish versions of the spec. However the website states a v5, but no v4, 3, 2 and 1 can be found.

Is it possible to tag specs etc?
How do all current existing tags relate to the spec?

Greetings,

Rik

Activity

  1. changed the title [-]Determine verion of spec[/-] [+]Determine version of spec[/+] on Apr 10, 2015
  2. vonj commented on Apr 10, 2015

    @vonj

    I concur!

    On April 10, 2015 11:38:43 AM CEST, Rik van der Heijden notifications@github.com wrote:

    Hello,

    It is not possible to determine a version of MessagePack from the spec.
    When using MessagePack in corporate applications it is preferred to
    refer to a specific version of the spec, in order to prevent
    incompatible changes in the spec which can affect end products.
    Referring to 'master' is not desirable since it is normally volatile.

    In the tags of this repository I can not distinguish versions of the
    spec. However the website states a v5, but no v4, 3, 2 and 1 can be
    found.

    Is it possible to tag specs etc?
    How do all current existing tags relate to the spec?

    Greetings,

    Rik


    Reply to this email directly or view it on GitHub:
    #195

    Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

  3. methane commented on Apr 10, 2015

    @methane
    Member

    "MessagePack update proposal v5" means v5 of the "proposal", not the spec.

  4. methane commented on Apr 10, 2015

    @methane
    Member
  5. rikvdh commented on Apr 10, 2015

    @rikvdh
    Author

    All the gists state 'proposal'. But wouldn't it be a good idea to just 'tag' the spec in the repo here? And clearly elaborate on the version number in the spec itself.

    The gist's were also not linked from the website. When I click in 'spec' on the website I am redirected to spec.md in master. But I can't determine version of this.

  6. methane commented on Apr 10, 2015

    @methane
    Member

    While proposal have version number, it's not a version of spec.
    All of proposal (v1, v2, ... v5) is for "new spec".

  7. rikvdh commented on Apr 10, 2015

    @rikvdh
    Author

    Ok,

    • But what version is the current spec?
    • Where are the old versions of the spec?
    • Why is there no version numbering in the spec?
    • How can enterprise applications use a specific 'version' of MessagePack without a possibility to refer to a version?
  8. methane commented on Apr 10, 2015

    @methane
    Member

    But what version is the current spec?

    "Current" or "New".

    Where are the old versions of the spec?

    https://github.com/msgpack/msgpack/blob/master/spec-old.md

    Why is there no version numbering in the spec?

    I think because @frsyuki doesn't want to modify spec in the future.

    How can enterprise applications use a specific 'version' of MessagePack without a possibility to refer to a version?

    "New spec" or "Old spec"

  9. methane commented on Apr 10, 2015

    @methane
    Member

    FYI, new spec doesn't deprecate data created by old spec.
    Decoders based on new spec can decode data encoded by encoders based on old spec.
    Incompatible changes can't happen in msgpack. They have different name like BinaryPack.
    So you can refer to msgpack/spec.md safely.

  10. vonj commented on Apr 10, 2015

    @vonj

    I am afraid this answer is just too open ended. I would be hesitant to use msgpack before and even more now, after this response.

    What's the harm in adding a versioning scheme?

    On April 10, 2015 1:02:43 PM CEST, INADA Naoki notifications@github.com wrote:

    FYI, new spec doesn't deprecate data created by old spec.
    Decoders based on new spec can decode data encoded by encoders based on
    old spec.
    Incompatible changes can't happen in msgpack. They have different name
    like BinaryPack.
    So you can refer to msgpack/spec.md safely.


    Reply to this email directly or view it on GitHub:
    #195 (comment)

    Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

  11. xor-gate commented on Apr 10, 2015

    @xor-gate

    I totaly agree with vonj, protocol design MUST describe versioning with eventually incompatbilities and migration strategies between them. Look at IPv4/IPv6 etc.

    If i rephrase what you say is that there is only a implicit version of MessagePack (msgpack) protocol? This is not desirable where a application or library needs to mention which specification or version of the protocol it implements. It is possible to get software architectures where applications and devices communicate with different versions of the protocol and get undefined behavior. Especially in Embedded (firmware) implementations.

  12. methane commented on Apr 10, 2015

    @methane
    Member

    JSON also doesn't version number. Do you hesitate using JSON?

  13. xor-gate commented on Apr 10, 2015

    @xor-gate

    Still there is only one document for JSON and not 5 proposals of documents and a floating spec-old.md

  14. methane commented on Apr 10, 2015

    @methane
    Member

    Proposal is proposal, not a spec.

  15. vonj commented on Apr 10, 2015

    @vonj

    I use it only with great care and because it has HUGE traction. Msgpack does not have that going for it. It is coming from an underdog position and it is a little bit better. Unless I get assurance from a versioning scheme this technical superiority is just not enough to go for a less tried protocol.

    On April 10, 2015 2:14:08 PM CEST, Jerry Jacobs notifications@github.com wrote:

    Still there is only one document for JSON and not 5 proposals of
    documents and a floating spec-old.md


    Reply to this email directly or view it on GitHub:
    #195 (comment)

    Skickat från min Android-telefon med K-9 E-post. Ursäkta min fåordighet.

  16. 3 remaining items

  17. methane commented on Apr 10, 2015

    @methane
    Member

    FYI, https://github.com/msgpack/msgpack/blob/master/spec.md is always describe final format.
    tag is not required to refer format.

  18. xor-gate commented on Apr 10, 2015

    @xor-gate

    I think there is a duplicate issue over here same as subject of this issue: #162

  19. methane commented on Apr 10, 2015

    @methane
    Member

    When I today implement the current master and the spec is changed over a few month, my products specification implicitly change, but my implementation won't magically change.

    Do you mean fixing typo or adding example is problem for you?
    I recommend you to use SHA-1.

    If you say about changing format, master/spec.md always specifies one format.
    There is no good commit for tagging.

  20. rikvdh commented on Apr 10, 2015

    @rikvdh
    Author

    But why can your implementations refer to an version of MessagePack?

    https://github.com/msgpack/msgpack-c/blob/8455a2eb703b52672f75843f01dac52ddcf55aad/include/msgpack/version_master.h

    This states a major of 0, and a minor of 6.

    https://github.com/msgpack/msgpack-c/blob/master/include/msgpack/version_master.h

    And this states a major of 1, and a minor of 1.

    Probably things changed, and implementation refer to MessagePack with a version. Why not simply add a version to MessagePack spec. This will improve broader adoption in the community.

  21. methane commented on Apr 10, 2015

    @methane
    Member

    This states a major of 0, and a minor of 6.
    And this states a major of 1, and a minor of 1.

    It's a library (msgpack-c) version, not a format version.

    This will improve broader adoption in the community.

    How? Why just using "old" to refer old spec is not enough?

  22. methane commented on Apr 10, 2015

    @methane
    Member

    While I'm not @frsyuki, I'm -0.5 on adding version.

    I would like to make msgpack like JSON. Fixing format is better than versioning format.
    If we have "v2", many people will request "Please add XXX type in v3!".

  23. xor-gate commented on Apr 10, 2015

    @xor-gate

    I totally agree on having fixed format

  24. rikvdh commented on Apr 10, 2015

    @rikvdh
    Author

    Why don't you fix all typo's and submit this to IETF? When using MessagePack in SIL-4 applications the assessor shall accept an RFC, but not the head of a git repo as version.

  25. methane commented on Apr 10, 2015

    @methane
    Member

    Does it relate to this issue?

    While format is stable, polishing specification is not only fixing typos.
    It may require a lot of time and energy.

  26. kuenishi commented on Apr 11, 2015

    @kuenishi
    Member

    -1 on putting any tags and versions to the spec - although I believe that depends on each library's maintainer. If all maintainers, including @frsyuki, that may happen.

    Although, I don't think any of us are interested in submitting to IETF, as the original purpose of creating RFC is for multiple hardware vendors of in lower layers to agree on the spec and guarantee connectivity. That is why strict versioning and standardization were required.

    MessagePack and other serialization format like JSON mostly work on top of TCP or as file format - where all of them are handled by software like kernel or databases. ORC, Thrift, Protocol buffers, Parquet, all of them have different strategy of (not) versioning formats. Why don't you just accept diversity?

    Maybe it's a good time to just delete this repo and make a single file just uploaded on msgpack.org. A file in repo has versions but a single web page doesn't.

  27. kuenishi commented on Apr 11, 2015

    @kuenishi
    Member

    Also, it is guaranteed that objects serialised with old spec can be deserialised with new spec libraries (I dare not use the word 'compatible'), as the new spec was carefully designed by @frsyuki and all library maintainers carefully implemented new spec. That's why I believe no versioning is required. Also, I don't think any more changes to the spec happens, or required like @methane stated. With incompatible changes different name than MessagePack would be used. Given these points, is there any other problems with not having versions?

  28. vonj commented on Apr 11, 2015

    @vonj

    I was not sure if I was going to use msgpack before. Now, I am.

  29. firegurafiku commented on Mar 26, 2018

    @firegurafiku

    @methane

    I would like to make msgpack like JSON. Fixing format is better than versioning format.

    I second that. To my mind, keeping MessagePack isomorphic to JSON is the best possible option. As long as JSON does not have multiple versions, there is no need for them in MessagePack, too.

    @kuenishi

    Although, I don't think any of us are interested in submitting to IETF ...

    I'm with the minority who thinks that submitting an Internet-Draft is worth it. Let's suppose that one is designing a new application layer protocol or trying to improve an existing one, and they found that MessagePack fits their task nicely. They also want their work to eventually become an RFC; however, it's not possible to say, for example, “the payload is MessagePack-encoded, navigate to the GitHub to see the details” in an I-D, there must be the normative description to link to.

    I agree that preparing such a draft is highly time-consuming, but it is not useless.

    Maybe it's a good time to just delete this repo and make a single file just uploaded on msgpack.org. A file in repo has versions but a single web page doesn't.

    Nice thing to do after the format is fixed. The copy should go to ietf.org 😄.

  30. gfx commented on May 13, 2019

    @gfx
    Member

    Any update about it?

    I suggest the GraphQL style versioning: https://graphql.github.io/graphql-spec/

    It uses year and month like "May 2019"; Or, "2019.05" may be better because of its sortability.

  31. timmc commented on Dec 15, 2019

    @timmc
    Contributor

    @frsyuki Would you be open to a PR marking the old spec as "version 2011" and the new one as "version 2013"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions