1 |
On 03/30/2014 11:47, Micha³ Górny wrote: |
2 |
> Dnia 2014-03-30, o godz. 09:56:45 |
3 |
> Joshua Kinard <kumba@g.o> napisa³(a): |
4 |
> |
5 |
>> On 03/30/2014 05:23, Rich Freeman wrote: |
6 |
>>> On Sun, Mar 30, 2014 at 4:33 AM, Micha³ Górny <mgorny@g.o> wrote: |
7 |
>>>> |
8 |
>>>> ISO/IEC prefixes [1,2]: KiB (kibibyte), MiB (mebi-), GiB (gibi-) |
9 |
>>>> -- unambiguously 2^10, 2^20, 2^30 |
10 |
>>>> |
11 |
>>>> 'old' prefixes: kB (kilobyte), MB (mega-), GB (giga-) |
12 |
>>>> -- can mean 10^3 or 2^10 etc. depending on author's intention |
13 |
>>>> -- SI people tend to use 10^N for consistency with other units |
14 |
>>> |
15 |
>>> To think that counting is the one situation where it is actually |
16 |
>>> possible to have perfect precision, and we still manage to mess up the |
17 |
>>> units... |
18 |
>>> |
19 |
>>> I'm a bit torn on this. I'm an American, so I am supposed to do |
20 |
>>> something ambiguous and arbitrary (can we count bytes in baker's |
21 |
>>> dozens?). I'm also a Chemist, and never met an SI unit I didn't like. |
22 |
>>> |
23 |
>>> We do need to keep in mind that the laws of physics dictate that |
24 |
>>> boolean states can only be combined in groups of 8. That's a shame, |
25 |
>>> because kibibits just rolls off the tongue and helps promote healthy |
26 |
>>> fur. |
27 |
>>> |
28 |
>>> Now I need to get back to sleep because I have a 97.7 kibimeter drive |
29 |
>>> tomorrow... |
30 |
>> |
31 |
>> I'm on the side of using the old prefixes. I just never groked the base-10 |
32 |
>> forms. Since Gentoo is all about choice, why not make it configurable? |
33 |
>> Maybe a USE flag or some other switch in make.conf that can be read by |
34 |
>> Portage to let you choose if you want natural computer size presentations |
35 |
>> (old prefix) or the human-friendly ones (new prefixes). We've obviously got |
36 |
>> the code for both forms in the referenced eclass, so just wrap it in a |
37 |
>> conditional based on the chosen switch. That laves the debate up to which |
38 |
>> value is the default. |
39 |
> |
40 |
> Don't you think this would be a serious overkill? |
41 |
> |
42 |
> If choice for this were to be provided, it should probably land |
43 |
> in glibc's LC_MEASUREMENT. Though I'm not sure if that would help |
44 |
> something since most of the countries seem to support the binary |
45 |
> prefixes. At least the countries using the metric system. |
46 |
|
47 |
I'll take overkill versus endless bickering over what is really an extremely |
48 |
minor issue. If there's already some kind of variable provided by the |
49 |
system libc (be it glibc, eglibc, uclibc, or freebsd-libc) that can decide |
50 |
on the preferred measurement system to use, then yeah, we should use that |
51 |
instead of building our own version. |
52 |
|
53 |
The "how" we do it is more of a technical thing, and not really what is |
54 |
being discussed in this thread. If I knew more about LC_MEASUREMENT and the |
55 |
code in the affected eclass, I'd probably try to hack up something myself |
56 |
and propose a patch to -dev, but I think others here, who have more |
57 |
knowledge on the topic, could work up something much better. |
58 |
|
59 |
The "what" we do is the point of contention in this thread, and I think |
60 |
rather than starting a holy war over measurement systems (as sometimes |
61 |
happens between the majority of the world that uses metric, and the three |
62 |
countries that use imperial, including the US), just allow for the choice of |
63 |
both forms, and decide on a sane default. |
64 |
|
65 |
Personally, I say make the metric version the default (new prefixes), and |
66 |
leave the choice available to switch to the SI (old prefix) form with a |
67 |
simple variable switch in a config file some where. |
68 |
|
69 |
Now, I'm off to prove that black is white, then investigate this whole |
70 |
"zebra crossing" thing... |
71 |
|
72 |
-- |
73 |
Joshua Kinard |
74 |
Gentoo/MIPS |
75 |
kumba@g.o |
76 |
4096R/D25D95E3 2011-03-28 |
77 |
|
78 |
"The past tempts us, the present confuses us, the future frightens us. And |
79 |
our lives slip away, moment by moment, lost in that vast, terrible in-between." |
80 |
|
81 |
--Emperor Turhan, Centauri Republic |