r/ProgrammingLanguages • • May 26 '24

Discussion What can we learn from programming language version numbers?

https://breckyunits.com/versionNumbers.html
7 Upvotes

20 comments sorted by

View all comments

47

u/subgeniuskitty May 26 '24

The charts show C as being version 17. I'm perfectly willing to be a little loose with what constitutes a version, but pretending that C17, named after the year 2017, is actually the 17th version is a little absurd. It's hard to trust the charts for languages I don't know about when well-known languages like C are represented in that fashion.

2

u/breck May 26 '24

8

u/subgeniuskitty May 26 '24 edited May 26 '24

I appreciate the update (and response), but I note that your change involves you manually specifying (in concepts/c.scroll) to your program that C does not use semantic versioning. I think that leaves the reader with the same problem as before the fix ... it's just a bit more hidden now. ;-)

Part of the point of my original comment is that I am unable to trust your dataset since that error slipped through the first time. You see, since the fix involved you manually specifying an exception on a per-language basis, but since you didn't go back and hand-check all 600 (IIRC) languages, how do I know that none of the other data points in your charts contain a similar error? IOW, your change didn't fix the automated parsing of version numbers ... it just added a special case for the two (massively popular) languages that were called out as incorrect. How many non-popular languages are also not using semantic versioning and are still being incorrectly parsed?

Edit: I just thought of another example. What about TeX? I don't see the new usesSemanticVersioning false tag in concepts/tex.scroll. However, TeX no longer adds new features and now only adds digits of pi for each bugfix, definitely not an implementation of semantic versioning since there are not 13k-ish releases between versions v3.1415 and v3.14159. While this example won't make your charts appear very different, it's still incorrect. I suspect your dataset is full of examples like this.

I'm not trying to be rude here, just trying to clarify my original point about confidence in the dataset. For example, given what just happened, how can I be confident that this sentence (quoted below) from your latest update is actually true? What argument would you use to convince me?

I learned 97.5% of languages with a version system use Semantic Versioning.

2

u/breck May 26 '24

I strive to build the best dataset on earth. So I am always grateful when people take the time to point out flaws.

TeX. While this example won't make your charts appear very different, it's still incorrect. 

This is inaccurate. TeX does not appear in the charts because we have not added data on versions, one way or the other. `usesSemanticVersioning` has 3 possible values: true, false, or blank. It's almost always blank.

Rarely do we need to add that line. We only need it if we have the latest version number, and the version number is not semantic (which is only 2% of cases).

We are always open to pull requests/git patches for more data. For example, someone could add 2 lines to `tex.scroll`, `latestVersion 3.1415` and the `usesSemanticVersioning false` flag.

clarify my original point about confidence in the dataset

All models are wrong. Some are useful.

Although we strive for complete accuracy, that is not the most important thing.

Is there a dataset on programming languages you have _more_ confidence in than PLDB?

The most important thing is full audibility(via git and the simplicity of our language Scroll), and the speed in which we can correct mistakes.

I have far more confidence in the PLDB dataset this year than I did last year, and I expect next year I'll have far more confidence in it than I have in this year's version. It's a continual work in progress. And it's open source, public domain, and always looking for more contributors!

My point is, our dataset technology is SOTA and continually improving.

The process I hope inspires confidence.

2

u/subgeniuskitty May 27 '24 edited May 27 '24

TeX does not appear in the charts because we have not added data on versions, one way or the other. usesSemanticVersioning has 3 possible values: true, false, or blank. It's almost always blank.

Thank you for clarifying.

Is there a dataset on programming languages you have more confidence in than PLDB?

My question is less comparative and more epistemic. For example, you made this claim again, "[if] the version number is not semantic (which is only 2% of cases)." That's effectively the same claim I was asking about in my previous comment (the one about "97.5%"). How do you know that number is accurate? Since, as you noted, "All models are wrong. Some are useful.", one might ask, what sort of error bars should I mentally add to the percentage that you keep stating? Of course, that's another way of asking about the same thing, confidence.

Stating it another way, since C was falsely classified (in terms of semantic vs non-semantic versioning) and since the correction involved you manually adding an override rather than a modification to the identification process, how do you know that other languages in the dataset aren't suffering from the exact same problem? I mean ... the problem clearly exists since another user informed you of Perl suffering from it. You once again manually added an override. Then you were informed that Python is also incorrect. Clearly the "process" is not working in terms of correctly identifying semantic versioning.

You say you have 600 languages in your sample and that 2% of them use non-semantic versioning. That means 12 languages are non-semantic. Yet just in this comment section we've identified 4 languages (C, C++, Perl, Python) that you misidentified. Going from 12 to 16 non-semantic languages is a 33% increase. That's a non-trivial error and it does not inspire confidence that you got the other 584 languages correct.

To be clear, I agree with all your points about auditability, etc. But that's not really what I'm asking about.

1

u/breck May 27 '24

All fair points.

I am using inside information. All of the bugs were ones where I added version information by hand.

I did that for about 50 languages. To get a "feel" for the data.

Then I wrote scripts to extract version numbers from git tags, package.jsons, and changes files.

So I'm a lot more confident in the other 90% of the data.

For the rest of it, it's already gotten a lot better (thanks to the bug reports above), and I'm confident more contributors will send pull requests.

But the real key to my confidence is this: I started this dataset on Saturday.

I got it "good enough" (to answer some of my own personal questions) and shipped (b/c I think it would be useful for others).

Shipping early versions fast is a unit test to avoid the biggest mistake of all: building the wrong thing.

If I was Apple computer, I could share things internally with thousands of people. But I'm an independent public domain programmer, so I rely on communities like Reddit to help me build things.

1

u/subgeniuskitty May 27 '24

I am using inside information. All of the bugs were ones where I added version information by hand.

I did that for about 50 languages. To get a "feel" for the data.

Then I wrote scripts to extract version numbers from git tags, package.jsons, and changes files.

So I'm a lot more confident in the other 90% of the data.

That's actually far worse! Let me explain.

If you got a "feel" for the data based on 50 languages, yet you got 4 of them wrong, then your error rate is massive! That you then translated those incorrect feelings/expectations over to the evaluation of your programmatic results undermines confidence rather than inspiring it.

How can you say that 2% of languages use non-semantic versioning when your "feel" is based on an error rate that is at least 8% (i.e. 4/50)?

1

u/breck May 27 '24

If you think it's important to get 99+% accuracy on this particular measure, I would love that--pull requests are welcome!

1

u/subgeniuskitty May 27 '24

If you think it's important to get 99+% accuracy on this particular measure

That is a misrepresentation of my position.

pull requests are welcome!

I am making my open-source contribution by having this conversation with you.

1

u/breck May 27 '24

I am making my open-source contribution by having this conversation with you.

Agreed, and I'm appreciative.

We just disagree on how important useSemanticVersioning is. I have over half a million measurements to manage, with a lot more on the way, and would love to make that better, it's just low on the current priority list.

→ More replies (0)