From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: interactive spec with reasonable numbers for c-u
Date: Sat, 10 Sep 2022 04:03:44 +0200 [thread overview]
Message-ID: <87fsh06l4v.fsf@dataswamp.org> (raw)
In-Reply-To: <CAJcAo8vg6_Ej-0TtdKQdKDTJ32f=-UJExeyS0Wd-0SCSQyY2jw@mail.gmail.com> (Samuel Wales's message of "Thu, 8 Sep 2022 17:44:17 -0700")
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
next prev parent reply other threads:[~2022-09-10 2:03 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 [this message]
2022-09-17 6:19 ` Samuel Wales
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsh06l4v.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.