-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement version() and banner() #185
Comments
We need a scheme for numerically-comparable version numbers. How about abbcc for a.bb.cc, allowing 2 digits for minor and bugfix versions? The major version can have any number of digits. |
I was just thinking of version being a floating point number a.b, and just using regular arithmetic on it. The downside is that bugfix releases are difficult to make. -viral On 22-Aug-2011, at 11:34 AM, JeffBezanson wrote:
|
Perl has made every ugly mistake possible with this issue, leading to the existence of things like this. The solution that makes the most sense is to return the version as a
Comparison should work so that |
Yes, I thought of a VersionNumber Type, but thought it was a bit too much pain for now. Admittedly much lesser pain than doing it in other languages. -viral On 22-Aug-2011, at 8:26 PM, StefanKarpinski wrote:
|
This is really not hard at all. I will implement it. |
Seems over-engineered, since it seems to me this can be solved with zero code and zero new types. |
Sure, zero code and zero new types, but instead, an ad-hoc "scheme for numerically-comparable version numbers", specifically:
Now Julia version numbers look like We'd be making the same mistake that Perl already made. You can read some history here. I completely disagree with the author's conclusions, however: he's wrong that "version numbers are for machines, not people" — they're for both machines and people. Maybe that would be a good way to go in isolation from the rest of the world, but the thing is that the entire open source community has converged on a de facto standard that Tom Preston-Werner codified in the semantic versioning spec I linked to above. |
No, my scheme is for encoding a version as a single number and does not affect how it is shown as a string or the meanings of the fields. "1.2.3" corresponds to "10203" as a single number and vice-versa. Basically this is a way of representing the VersionNumber type as an integer instead of as a compound type. Except for the string part, it works the same except that you don't need to define comparison since it's embedded in integer comparison. |
Also, strings such as beta can be avoided by following a linux version numbering. But all this feels a bit too kludgy, and something that can potentially seem silly 3 years from now. -viral On 22-Aug-2011, at 10:41 PM, JeffBezanson wrote:
|
Is it even possible to conceive of anything that won't seem silly 3 years later? :-P |
adding -v and --version options adding banner() for issue #185
82bdebe adds support for semantic version numbers. |
Note that there's no reason for |
Should VERSION be called JL_VERSION? Would be a good idea to not pollute the global namespace too much.. -viral On 24-Aug-2011, at 10:40 PM, StefanKarpinski wrote:
|
No, all-caps globals are fine. Eventually, we'll have namespaces and this will become less of an issue. |
Add support for RemoteChannel/RemoteRef
…uliaLang#185) * Change default for histogram bins from closed-right to closed-left * Deprecation warning in histogram funcs if kw arg "closed" unspecified As the default for "closed" has changed from :left to :right, print a deprecation warning for a while if "closed" is not specified explicitly. * Adapt histogram tests to temp. deprecation of default for "closed" arg * Add description of "FIXME: closed" comments to test/hist.jl
We should have a version() that can programmatically query the version of julia, in a way that allows doing arithmetic on version numbers.
We should also have a banner(), which can recreate the banner printed on startup.
The text was updated successfully, but these errors were encountered: