Announcement

Collapse
No announcement yet.

SDL 2.23.1 Released With SDL2 Switching To A New Versioning Scheme

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SDL 2.23.1 Released With SDL2 Switching To A New Versioning Scheme

    Phoronix: SDL 2.23.1 Released With SDL2 Switching To A New Versioning Scheme

    SDL 2.0.22 was released back in April while now it's to be succeeded by the eventual SDL 2.24 stable and out today is the SDL 2.23.1 pre-release. Besides the shift in the versioning scheme there are many additions coming in this release for this library that's widely used by cross-platform games...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    This is probably one of the most stupid versioning schemes. If you need to explain similar looking version numbers, you failed...

    Instead of just ordering them alphabetically, now I need to parse the text, split the elements, convert to integer and check if it is even...
    Last edited by -MacNuke-; 17 June 2022, 12:52 AM.

    Comment


    • #3
      Is the full wayland support feature that got bumped from 2.22 still scheduled to arrive with 2.24?

      Comment


      • #4
        Originally posted by -MacNuke- View Post
        This is probably one of the most stupid versioning schemes. If you need to explain similar looking version numbers, you failed...
        Instead of just ordering them alphabetically, now I need to parse the text, split the elements, convert to integer and check if it is even...
        Semantic versioning has been around a while and is quite useful when used properly. It conveys to the user the amount of change between one version and another, as well as which ones are backwards compatible, and which ones should be a "safe" update (like point releases).

        If you're manually parsing version numbers, there might be an easier way. Coreutils has a sort utility that supports sorting by version number rather easily. Here is an example in BASH that will list the versions in order newest first:
        Code:
        $ echo -e "5.6.1\n5.12.2\n1.53.27"|sort -rV
        5.12.2
        5.6.1
        1.53.27
        Last edited by lectrode; 17 June 2022, 04:21 AM.

        Comment


        • #5
          Originally posted by lectrode View Post

          Semantic versioning has been around a while and is quite useful when used properly. It conveys to the user the amount of change between one version and another, as well as which ones are backwards compatible, and which ones should be a "safe" update (like point releases).

          If you're manually parsing version numbers, there might be an easier way. Coreutils has a sort utility that supports sorting by version number rather easily. Here is an example in BASH that will list the versions in order newest first:
          Code:
          $ echo -e "5.6.1\n5.12.2\n1.53.27"|sort -rV
          5.12.2
          5.6.1
          1.53.27
          You're missing the point, only even minor numbers are considered stable, the odd ones are development

          Comment


          • #6
            Originally posted by -MacNuke- View Post
            This is probably one of the most stupid versioning schemes. If you need to explain similar looking version numbers, you failed...

            Instead of just ordering them alphabetically, now I need to parse the text, split the elements, convert to integer and check if it is even...
            If one use alpha/beta naming instead, "ordering them alphabetically" still won't work. As the order will be like "2.11.x -> 2.12beta1 -> 2.12beta2 ... -> 2.12.0", where "2.12beta1" or "2.12b1" is alphabetically behind "2.12.0".

            Comment


            • #7
              So if they're working on a long-term feature or bug will they just keep adding a 9 to the end until the next even numbered release?

              2.24.3999999999

              "Why are there so many nines?"

              "Variable frame rates on Wayland."

              Comment


              • #8
                Originally posted by skeevy420 View Post
                So if they're working on a long-term feature or bug will they just keep adding a 9 to the end until the next even numbered release?

                2.24.3999999999

                "Why are there so many nines?"

                "Variable frame rates on Wayland."
                Features aren't worked-on in the even numbered minors. That is, you would have 2.23.1 ... 2.23.2 ... 2.23.N patch-level increments and when the bug is sorted out, they'll back/forward port to 2.22.+1 patch-level.

                Comment


                • #9
                  Originally posted by FireBurn View Post
                  You're missing the point, only even minor numbers are considered stable, the odd ones are development
                  Still no need to parse. Just filter using regex.

                  Here's an example that only lists the newest version where the 2nd digit (the "minor" version) is even:
                  Code:
                  $ echo -e "5.13.7\n5.6.1\n5.12.2\n1.53.27"|grep -E "^[0-9]+\.[0-9]*[02468]+\."|sort -rV|head -n1
                  5.12.2
                  Last edited by lectrode; 17 June 2022, 04:30 PM.

                  Comment


                  • #10
                    Originally posted by lectrode View Post

                    Still no need to parse. Just filter using regex.

                    Here's an example that only lists the newest version where the 2nd digit (the "minor" version) is even:
                    Code:
                    $ echo -e "5.13.7\n5.6.1\n5.12.2\n1.53.27"|grep -E "^[0-9]+\.[0-9]*[02468]+\."|sort -rV|head -n1
                    5.12.2
                    Ah yes, so simple...

                    Comment

                    Working...
                    X