From: Samuel Wales <samologist@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: interactive spec with reasonable numbers for c-u
Date: Fri, 16 Sep 2022 23:19:20 -0700 [thread overview]
Message-ID: <CAJcAo8uq1PkUpKLrB1YuPxHkswUFnDF-VJHTMzLC455mp7h16A@mail.gmail.com> (raw)
In-Reply-To: <87fsh06l4v.fsf@dataswamp.org>
all i know about the decision to use 4 is the tutoria in 1980s that
asked the user if he or she thought 4 was a good choice.
i belive it was for navigation. i thik some interactive spec that
spits out a symbol like, this syuntax is maybe wrong but the semantics
would be like (interactive "x" apple banana cherry rest) where x is
whatever character is unassigned for this purpose and if c-u, arg gets
apple; c-u c-u arg gets banana. and perhaps rest gets whatever the
arg to c-u is if that is ever used.
which is what elispers would want instead of taking the log of a base
4 number. drawing from my sample of n=1.
On 9/9/22, Emanuel Berg <incal@dataswamp.org> wrote:
> Samuel Wales wrote:
>
>> dna has 4 base pairs that comes in sequences. so loosely
>> speaking it is base 4 arithmetic. of coure it is not that
>> simple and i am not making the claim that arithmetic per se
>> is performed. among the lack of simplicity, there are
>> codons, there is rna which substitutes uracil, and probably
>> various other footnotes. but it's not wrong to say that our
>> dna has 4 nucleotides in sequences.
>
> Ah, of course, DNA!
>
> Cool, but surely that isn't the reason why we have that
> sequence in Emacs? :O
>
> $ for i in {0..4}; do echo $(( (2**2)**i )); done
>
> 1
> 4
> 16
> 64
> 256
>
> Here's an interesting textfile BTW,
> https://dataswamp.org/~incal/data/BINARY-UNITS
>
> -------------------------------------------------------------------------------
> BINARY UNITS
> incal@dataswamp.org
> -------------------------------------------------------------------------------
>
>
> unit bytes bits max value
> (eval)
> -------------------------------------------------------------------------------
> char/byte 1 8 (1- (** 2 8))
> word 2 16 (1- (** 2 (* 8
> 2)))
> doubleword 4 32 (1- (** 2 (* 8
> 4)))
> quadword 8 64 (1- (** 2 (* 8
> 8)))
> paragraph 16 128 (1- (** 2 (* 8
> 16)))
> kilobyte 1 024 8 192 (1- (** 2 (* 8
> 1024)))
> megabyte 1 048 576 8 388 608 (1- (** 2 (* 8 (** 1024
> 2))))
> gigabyte 1 073 741 824 8 589 934 592 (1- (** 2 (* 8 (** 1024
> 3))))
> terabyte 1 099 511 627 776 8 796 093 022 208 (1- (** 2 (* 8 (** 1024
> 4))))
> -------------------------------------------------------------------------------
> (defalias '**
> #'expt)
> 1 kilobyte = 1024^1 bytes
> 1 megabyte = 1024^2 -"-
> 1 gigabyte = 1024^3 -"-
> 1 terabyte = 1024^4 -"-
>
>
> -------------------------------------------------------------------------------
> https://dataswamp.org/~incal/data/BINARY-UNITS
> 2022-09-10
> -------------------------------------------------------------------------------
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
next prev parent reply other threads:[~2022-09-17 6:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 0:47 interactive spec with reasonable numbers for c-u Samuel Wales
2022-09-08 1:03 ` Emanuel Berg
2022-09-08 5:45 ` Eli Zaretskii
2022-09-08 9:39 ` Emanuel Berg
[not found] ` <CAJcAo8vg6_Ej-0TtdKQdKDTJ32f=-UJExeyS0Wd-0SCSQyY2jw@mail.gmail.com>
2022-09-10 2:03 ` Emanuel Berg
2022-09-17 6:19 ` Samuel Wales [this message]
2022-09-09 0:49 ` Samuel Wales
2022-09-09 3:36 ` Emanuel Berg
[not found] ` <CAJcAo8v1ygssXWXHN2yu7OCk9UagSG48-DEPvU7bnZg691JjRg@mail.gmail.com>
[not found] ` <CAJcAo8v9XaoT8c8f=9_a=8LOh3euerW5mnfjfNGjDfGjsvPvSg@mail.gmail.com>
2022-09-19 7:10 ` Emanuel Berg
[not found] ` <CAJcAo8v1zKzp1A8s=16V=k3G94naPMhiSEjDoA8hP+qFq5oXsQ@mail.gmail.com>
2022-09-19 22:43 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJcAo8uq1PkUpKLrB1YuPxHkswUFnDF-VJHTMzLC455mp7h16A@mail.gmail.com \
--to=samologist@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).