poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [COMMITTED] pkl, testsuite, doc: defunit, support for arbitrary name


From: Jose E. Marchesi
Subject: Re: [COMMITTED] pkl, testsuite, doc: defunit, support for arbitrary named units
Date: Sat, 29 Feb 2020 17:11:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

    > I think following the lead of GNU Coreutils would be wise here
    > (https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html):
    
    I agree - any time we have different GNU programs with a different set
    of ideas on what a suffix translates to, it breeds confusion.

Agreed, but as you already mentioned (is 'k' kilobits or kilobytes?)
coreutils' unit names may not be very suitable for poke, which goes all
the way down to the bit.

This is what I propose to do:

a) To not support "ambiguous" unit names like 'k' or 'M' or 'G' in poke.

b) Support the *B units with the same names than coreutils (I am really
   not a big fan of using things like KiB to denote powers of two and KB
   to denote powers of ten, but I reckon it is gonna be an uphill battle
   leading to endless discussions, so I can well give up right now and
   save the effort 8-) ).

c) Add *b units for bits, modeled after the *B units from coreutils.

d) Add the extra units b, B and N.

This way, we will be congruent with coreutils, in the sense we will be
using the same suffixes for the units supported by both programs.

Does this sound good?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]