8 ms·
CalVer: Calendar Versioning
- Deukhoofd 7y agoYou should probably look at updating your TLS. TLS 1.0 will be deprecated in 2 months.
- chrismorgan 7y agoTLS 1.0 won’t be deprecated in two months’ time, it’s being removed in two months’ time (from at least Firefox, Chrome and Safari; for IE and Edge Microsoft have just said the first half of the year). It’s already deprecated, has been for yonks.
- tialaramex 7y agoThat's for web browsers though, which get to be early movers. In terms of the standards organisations the IETF's Best Common Practice update to deprecate TLS 1.0 (and TLS 1.1 which wasn't widely deployed before TLS 1.2 anyway) is still working its way through the bureaucracy. Currently: https://tools.ietf.org/html/draft-ietf-tls-oldversions-deprecate-05 https://tools.ietf.org/html/draft-ietf-tls-oldversions-depre... Although I liked its original name (oldversions-die-die-die) obviously that's one of many things that couldn't survive in a publicly endorsed document.
- mhashemi 7y agoYou're quite right, and this site is being migrated this week. I was going to do it this morning, but there was a traffic spike for some reason? :)
- mhashemi 7y agoAll done, thanks again for looking out!
- wodenokoto 7y agoI would have expected D to be short day (1, 2, 3 .. 29,30,31) and DD be zero padded (01,02,03 .. 29, 30, 31) But other than that, I think it is a good idea to try and lay out a common language for the cases described.
- chrismorgan 7y agoYeah, DD being short day is just wrong by conventional usage.
- regularfry 7y agoI've done something similar to this in the past, only simpler: "YYYYMMDDXX" where XX is an incrementing index of today's releases. It works well where you've got no commitment or requirement to release patches of old versions rather than roll forward. In my experience, that covers most internal software, where semver is overkill.
- lioeters 7y agoI've used the same format as you mentioned, usually for non-public-facing modules. Sometimes it starts with "YYYYMMDD", then "YYYYMMDD.XX" if needed. Every version potentially breaks backward compatibility, regardless of versioning standard (semver, calver, or anything else). It's the responsibility of the module consumer to have tests and ensure its own functioning. I do find semantic versioning useful for public-facing modules/interfaces, to indicate (or infer from the consumer side) the intended compatibility. In practice, though, sometimes patch versions break things, or major version upgrades work fine without any changes. So the consumer still needs to be responsible for ensuring compatibility - not much different than calendar versioning.
- regularfry 7y agoYeah, that was my realisation. Semver ends up being a lie often enough, and back-ported patches happen rarely enough, that it ends up being engineering theatre more often than not.
- skrebbel 7y agoAny opinions on calver vs semver for, say, open source projects or APIs/SDKs?
- wufocaculura 7y agoNo strong opinion here, but I see calver as a good fit for a new / rapidly changing project (with yyyymmdd being a both version and snapshot date), or for a software where you don't need semver guarantees about api change - so not for a library or for some important tool that is often scripted. Or, as described in the project, calver might be good as a release date for a "umbrella projects" - like Ubuntu, or even Windows 10 builds.
- vegardx 7y agoSemantic versioning tells you a lot about the state of a release. Is it supposed to break backwards compatibility or does it just add new or patch existing backwards compatible functionality? I think that sort of stuff is more important than on what day the release was made. For an API it seems like a no-brainer to use semantic versioning, makes it easier to document feature deprecation, like supporting latest two major releases and so on.
- capableweb 7y agoSomething like CalVer forces you to consider every version breaking and puts the responsibility on you to ensure compatibility with your project. SemVer puts the responsibility on the maintainer to assume how users are using the library. I think by now we've learned that even though SemVer was a good idea, people are people and they are gonna eventually fail at setting the version correctly, making your assumptions broken
- vegardx 7y agoThat can be said about any versioning scheme. The idea that making things inconvenient suddenly makes people do the right thing is pretty naive, if you ask me. Semantic versioning lets the user decide.
- 7y ago
- SlowRobotAhead 7y agoAmazon just adopted this for at least their FreeRTOS releases. 201912.00 is the latest. Handy enough to know how out of date you are - but overall fairly useless because I still need to go check and see what’s been released since. Not to mention some people might flinch if your latest release is 200501.00 even if it’s amazingly complete code.
- julbaxter 7y agoYou should probably consider changing the name. https://translate.google.com/?hl=fr#fr/en/calvaire https://translate.google.com/?hl=fr#fr/en/calvaire
- naniwaduni 7y agoI mean, considering it's versioning, sounds about right, really.
- Matheo05 7y agoI thought the same!
- mrmuagi 7y agoDoesn't the prononciation differ -- ver vs. vaire?
- julbaxter 7y agoNo, same prononciation in French.
- flixic 7y agoA good 30 minute podcast discussing this topic is Episode #164 "Meaningless Version Numbers" of Under The Radar podcast with Marco Arment and _David Smith. During this episode Marco explains his decision to switch to YYYY.MINOR.MICRO scheme for Overcast, his podcast player. https://www.relay.fm/radar/164 https://www.relay.fm/radar/164
- barryR 7y agoWireguard uses a hybrid approach: 0.1.20191231 major.minor.YYYYMMDD
- javajosh 7y agoNice. It puts the important stuff first, and even has a nice nested field at the end (which also puts the important stuff first).
- James-primitive 7y ago"Moldbug's electronic sentience".
- RKearney 7y ago> YY - Short year - 6, 16, 106 > [...] > Note that traditional, incremented version numbers are 0-based, whereas date segments are 1-based, and the short and zero-padded years are relative to the year 2000. Y3K here we come!
- mfer 7y agoYou don't need to wait for Y3k. 21xx is enough to cause duplication. There is software still running from over 50 years ago. I'd imagine new releases have come out. But, this may be a legit problem some day.
- CodesInChaos 7y agoThis specification defines `YY` and `0Y` as switching to 3 digits for 21xx (i.e. it outputs it as 1xx).
- Sean1708 7y agoThe upside being that releasing a new version with a different version scheme isn't a time-sensitive task, the old version isn't going to stop working just because the new version number wouldn't be valid.
- 0xffff2 7y agoChanging versioning schemes comes with its own set of problems. There is rather famously no "Windows 9" because enough people detected Windows 95/98 with the equivalent of a regex looking for "Windows 9*" that Microsoft thought it might be a problem.
- Sean1708 7y agoMy point isn't that it has no downsides, my point is that it would be a far less pressing issue than Y2K was.
- albertzeyer 7y agoI am just using major.YYYYMMDD.HHMMSS for some of my projects, e.g. https://pypi.org/project/better_exchook/ https://pypi.org/project/better_exchook/ has the latest release 1.20191227.150050. I have never thought about version numbers for these projects anymore.
- hden 7y agoAWS API versioning: YYYY-MM-DD https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/locking-api-versions.html https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-...
- timeattack 7y agoI'm using similar versioning for pre-build packages, but it's extended with commit information to 1:1 mapping to the source tree: local date=$(git log -1 --format="%cd" --date=short | sed s/-//g) local count=$(git rev-list --count HEAD) local commit=$(git rev-parse --short HEAD) echo "$date.${count}_$commit" Example result: 20191121.68_84f90ff It provides user about general information about when program was updated along with specific information for developer for bug reporting. Also, it allows intraday releases.
- vegardx 7y agoYou can also just use "git describe" to get more or less the exact same information, which is useful for development releases that are untagged when using versioning schemes like semantic versioning.
- edejong 7y agoIt helps to have the versioning ordered correctly, so I'd zero-pad the ${count} variable, like so: printf "%s.%03d_%s\n" $date $count $commit
- boris 7y agoIn build2 we do something similar for snapshot versioning between releases by incorporating the date and commit id into the pre-release component of semver. The result is a unique, properly ordered version for every commit in a project (we call it "continuous versioning"). If anyone is interested, here are the details: https://build2.org/build2/doc/build2-build-system-manual.xhtml#module-version https://build2.org/build2/doc/build2-build-system-manual.xht...
- emptysea 7y agoFYI, using `local foo=$(some-command)` does not actually make the variable local. main() { local count=$(git rev-list --count HEAD) echo $count foo } foo() { echo $count } main prints: 2282 2282
- minitech 7y ago
- SamWhited 7y agoFor some projects I like the idea of calendar based versioning, sadly I mostly write Go and they've decided that anything but semver isn't allowed if you want to use the new packaging standard, Go Modules :(
- mfer 7y agoFunny thing is, the previous tools for Go and tools in other languages tell you SemVer but you have enough control that you can use CalVer if you like.
- macintux 7y agoRecent discussion on chronological versioning: https://news.ycombinator.com/item?id=21929063 https://news.ycombinator.com/item?id=21929063
- NetOpWibby 7y agoWhoah, that’s my project!
- NaNtales 7y agoOne use case for this that comes to mind is for patching multiple major versions with a particular fix. For example, you might release a hotfix patch today that fixes a bug in all major versions of your software. Using calendar versioning as a patch number would give something like - 3.4.20200106 - 2.1.20200106 - 1.5.20200106 making it very easy to tell whether a particular version includes todays fix or not.
- TheCraiggers 7y agoI thought this was a new team calendar that was version controlled when I first read the headline. And now I want that.
- swalsh 7y agoI had exactly the same thought, it's kind of an interesting idea. I'm not 100% sure what the usefulness is though.
- TheCraiggers 7y agoI suppose it depends on how much content you put in your calendars, but I agreed with you on the usefulness, at first. Then I thought about how meeting requests are basically PRs. How how easy it could be to create shared calendars using submodules and such.
- tasn 7y agoI also wish all of my data was version controlled, which is why when I created EteSync[1] I made sure to include a full change history. Check it out, I think it's exactly what you're looking for, and it's fully open source, so you can host in on-site if your company requires that. https://www.etesync.com https://www.etesync.com
- TheCraiggers 7y agoI will take a look! I'm looking to further distance myself from Google and such this year, so this is very timely.
- aidenn0 7y agoCan that do shared calendars? (I know that's technically challenging with ETE encryption). If it does, I will drop my self-hosted davical for it in a heartbeat.
- kalmi10 7y agoI found this in the FAQ: If I want to share a calendar with my spouse, do I need to get two subscriptions? No. You can just create a normal subscription for yourself, and an "Associate" subscription for your spouse. Then share the calendar with the second account, and that's it. However, Associate accounts can't create their own calendars. So in order to have a personal calendar (that you can't see), your spouse will have to get a normal subscription too.
- awoods187 7y agoAt Cockroach Labs we switched to Calver covered in this thread https://news.ycombinator.com/item?id=19658969 https://news.ycombinator.com/item?id=19658969
- CivBase 7y agoI could see this being useful in some cases for marketing disambiguation. The Wifi Alliance should be taking notes. Otherwise, I don't see any reason to use CalVer over SemVer. I would rather the version numbers be used to inform users about the nature of the changes (patches, new features, backwards-incompatible interface changes) rather than simply when the change was published. I very rarely care about the publishing date.
- flankstaek 7y agoInteresting to see that so many of the exemplary projects are python based. I wonder if there's any correlation there.
- mhashemi 7y agoJust a bit of original author bias. If you know other projects, I'd be happy to merge em! https://github.com/mahmoud/calver https://github.com/mahmoud/calver
- plainOldText 7y agoI find calendar versioning virtually useless. It reveals the freshness of one's project over much more important information such as maturity, as revealed by semantic versioning. Imagine researching some libraries and having to decide over which one to use, say LibA v2020.01.06 vs LibB 2019.12.31. These versions tell you nothing about the projects except their release dates. On the other hand, semantic versioning (when not abused) – say LibA v3.0.1 vs LibB 1.0.0 – reveals something useful, such as, that LibA has undergone three major revisions, so perhaps it is much more mature than LibB. Perhaps the calendar versioning works well with already mature and famous projects – e.g. Ubuntu 18.04, etc – but for smaller projects I don't think it's such a good idea. Comment v1.0.4-20jan06
- meddlepal 7y agoIt's not a good fit for libraries but it's great for applications. edit: I'm also a huge fan because unlike semver it can be easily generated in a CD pipeline.
- paulddraper 7y agoEverything is a library to someone.
- elsurudo 7y agoNot sure if you should rely on SemVer for maturity estimates either, though. I guess it can be one signal, but I wouldn't say a very useful one.
- itake 7y agowhat would be a more reliable way to know?
- codetrotter 7y agoLook at the following: - Number of commits. - Number of open issues. - Number of closed issues. - How they respond to issues. - Are the commit messages descriptive? - Is the codebase a mess or does it look reasonable?
- awinter-py 7y agoAPIs and libraries should tell us much more about their semantics so that we can assert compatibility directly rather than relying on a number
- eqvinox 7y agoThis comes crashing down in a nice mudslide the exact moment you start maintaining an older stable release for fixes while also progressing on a newer version. If anything, date codes are useful as later version number component, e.g. 4.1.0.191220. Also, the "When to use" section is getting things quite wrong: Does your project feature a large or constantly-changing scope? Large systems and frameworks, like Ubuntu and Twisted. Amorphous sets of utilities, like Boltons. Wrong question - relevant is: "is your project the top end of the dependency chain?" Is your project time-sensitive in any way? Do other external changes drive new project releases? Business requirements, such as Ubuntu's focus on support schedules. Security updates, such as certifi's need to update certificates. And both of these are actually made much harder by calendaric versioning. Administrators are already reluctant to update software for fear of breaking things. SemVer gives extremely useful information here to establish how "dangerous" and update might be. With date code versions, the admin is forced to dig through change logs, which costs time they probably don't have, so they'll just not update.
- BubRoss 7y agoWhy not use two date codes, the release date and the update date?
- eqvinox 7y agoFor starters, that's a pretty long version number, making it difficult to see at a glance what the relation is. One date (or two for comparing) is something humans are trained to handle, two dates (or four!) not so much. Also, now you just have SemVer with really large version numbers.
- paulddraper 7y agoThe release date portion may be abbreviated (assuming no more than one major release per month). Released 2020-04-05, updated 2020-10-15. Version: 2004.201015 I'm not in love with that, but that's how I'd assume it'd work.
- mhashemi 7y ago
- gregmac 7y agoI like that there's a standard page for this for reference, but I disagree with some of the use cases. I think it makes sense in a few cases: * Umbrella-type projects, such as an Operating System, with Ubuntu being a great example. * Time-dependent projects (where it's more about data), such as tzdata, certificates, tax rates, etc. * Constantly-changing APIs I disagree with some of the projects listed, such as Unity and boltons (more on that below). ---- I think the trick to this working well is that at least one of the following must be true: * You never break backwards compatibility. For example: tzdata, certificates * There has to be another way to check dependencies. For example: the individual package versions used within Ubuntu * Release notes (and upgrade notes) need to be really good. For example: include an "upgrade guide" that explicitly calls out breaking changes and how to fix them; summarize the major changes over time; make sure they're digestible by someone who is updating from a few major versions from a couple years ago (without having to read through each incremental guide). ---- Unity is actually a good counter-example to CalVer as it doesn't follow any of these rules. A quick search comes up with breaking changes in at least 2019.2.5, 2019.1.0 and 2018.3.0 [1]. To make things worse, they release frequently -- if I'm updating from say, 2018.2.0, there have been 85 (!) releases since then. The release notes are very detailed and on individual pages so it would be a multi-hour effort to read through to even figure out how complex it'll be to upgrade. This is especially annoying if I'm updating in a hurry to get an important security fix. At least with SemVer I could focus on the major releases. [1] https://unity3d.com/unity/whats-new/2019.2.5 https://unity3d.com/unity/whats-new/2019.2.5, https://unity3d.com/unity/whats-new/2019.1.0 https://unity3d.com/unity/whats-new/2019.1.0, https://unity3d.com/unity/whats-new/unity-2018.3.0 https://unity3d.com/unity/whats-new/unity-2018.3.0
- joshspankit 7y agoThe unfortunate truth about calendar versioning is that it pushes devs and clients toward “freshness” instead of quality. Same issue that we have in Apple’s design department: change for the sake of change.
- mhashemi 7y agoPeople like bigger numbers and newer releases regardless of exact versioning scheme. SemVer makes that situation worse, by requiring a bigger major release to break some part of the API. Other failure modes detailed here: https://sedimental.org/designing_a_version.html https://sedimental.org/designing_a_version.html
- joshspankit 7y agoDefinitely a fair point. I think we’ve all seen at least one of our favourite pieces of software fall in to this when the company needed another major release to bring in funds.
- sakisv 7y agoI find this absolutely useless for libraries. For things like Ubuntu yes, it makes sense because you wouldn't just run a command to upgrade your os. However, your code you usually has a bunch of libraries that depends on. When I upgrade a library I don't care when the new version came out, all I care is that doesn't have breaking changes. With semver I can get this information at a glance, calver on the other hand just says "newer version". As others have mentioned, some combination of both approaches might give an extra data point for "freshness" especially if you're managing multiple versions, but even then what's wrong with just bumping the minor/patch?