From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.help Subject: Re: interactive spec with reasonable numbers for c-u Date: Fri, 16 Sep 2022 23:19:20 -0700 Message-ID: References: <83y1uufmhl.fsf@gnu.org> <875yhydx1u.fsf@dataswamp.org> <87fsh06l4v.fsf@dataswamp.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2227"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 08:20:05 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZRBM-0000MV-HP for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 08:20:04 +0200 Original-Received: from localhost ([::1]:36242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZRBL-0003No-0a for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 02:20:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZRAl-0003NU-QD for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:19:27 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:36624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZRAj-0008JL-Lm for help-gnu-emacs@gnu.org; Sat, 17 Sep 2022 02:19:27 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id f9so38090886lfr.3 for ; Fri, 16 Sep 2022 23:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date; bh=NVfgngv07AVcmoiXlUu3JR07LlxJBkkqXYVFuVFBjdU=; b=S8ERVIeT5psFrje2PqlGOM3W5xviyuqCgwmah1hcHUp+HMahuG7R12nhfkfFrE+g1q q7FGwZZzpkEvLScX3NRo5Is6xBkD36RmZzYH9JHR51X52u3n8N1j3a0HsLDtysvpEfTy hAwbjPGs3X/u3MKJl0LkfzBy+uwbbegq3fvZ6cdKWCinJbNElwmK3lds3D4ZoG4fMj2e uhgX6SCigFtOUVaeARfDu+3Abs098E56w6D3wfjFcmn+sE12TiNXnMieR/KwXAOY3ejU g4zS0ifSKzupI/jPvHB+p7cCL4t8+W2gaNYxTreBbXBSk588FJcEeHvrZdHf4XLrLraa 2J8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=NVfgngv07AVcmoiXlUu3JR07LlxJBkkqXYVFuVFBjdU=; b=A/dU77rnGes+3Egrby7y9LFqgweH+i1+25EM2lNZKO8lNiVi4MHhCyud+XQKBO8ljn TKQJ6+oqDg4IGE+IbxuoRD5SfHqhCK7i6jc/ZhtvWuTso2lIfudJSsiWq7GSXzQpn1kl BT5Zr6EtYiW1mHjwvY4AxsSNBtpw0HYbsPm9Ckf4qWRfDg3yMHwduEcI1gECQGZhq+h0 KMunZ2puOqZwb8OLvdMiNgryQQabiwOaLCR+Kna2RhXvgajhDY3CjRnt+xpgkaLA09+6 4TBTmog0jgMzb+LTCMyT19zQE3SwvYPBkt6rEVBLgOffyCfXlHcHUA05qOWQLtiw34y/ 8vhw== X-Gm-Message-State: ACrzQf2mbNcH1GIGtiq4yv13Jburz2dYofnh/Ghh7iBXT64PztYtxOZq TW+jDUD25yW1cX9ZFrB95qIuOk38sCR3m64D2a7rBniTOcTsIw== X-Google-Smtp-Source: AMsMyM71Out6DYo4k+6YIoqUfcS+wM6jijSGQkV0LbfmVdRHn1x0RPwFa/B5oibL6j02jGaTnMsi6vW5LcHF7aaF5ck= X-Received: by 2002:a05:6512:b87:b0:498:f223:7906 with SMTP id b7-20020a0565120b8700b00498f2237906mr2715922lfv.664.1663395562017; Fri, 16 Sep 2022 23:19:22 -0700 (PDT) Original-Received: by 2002:aa6:c2eb:0:b0:21e:73da:40af with HTTP; Fri, 16 Sep 2022 23:19:20 -0700 (PDT) In-Reply-To: <87fsh06l4v.fsf@dataswamp.org> Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=samologist@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139546 Archived-At: 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 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