From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: Bignum performance Date: Wed, 16 Aug 2023 10:05:36 +0200 Message-ID: <3a295b45-ba78-6bfa-afb6-15328fabf876@gmail.com> References: <874jkzllqq.fsf@yahoo.com> <2dec78a7-76e0-8789-4d20-7f0f6effe28a@gmail.com> <87zg2rjxnq.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12184"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 16 10:06:41 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qWBY8-0002wx-UF for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Aug 2023 10:06:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWBXQ-0000a2-6p; Wed, 16 Aug 2023 04:05:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWBXB-0000AB-Ki for emacs-devel@gnu.org; Wed, 16 Aug 2023 04:05:44 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWBX9-0000GI-Bz for emacs-devel@gnu.org; Wed, 16 Aug 2023 04:05:41 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5236a9788a7so8492380a12.0 for ; Wed, 16 Aug 2023 01:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692173138; x=1692777938; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8k9SDeHI7pT77EAiRbGT0l+LgTOxZGJXBDfzgsBCvsQ=; b=hdiJ8g7KYxctPxKMIew55LThv9f5EKfk0iEdJpJ1Wq+v/y6mld5MPc/6Mnj0AN1UuK likkjoovujTAitoXbeC8fZjnGefHY8rU5XehQv/3Vqs7NzOsrn0ZF/RjZXeyihQIbX7+ oZC6XE11J0tsrtMA/U+6oYDTV8Naysb75RyD+OLSWfSvG0xVYjfdmCvJDPZzoXm2ps5Z nS3AeucI2RSMGrEOr7p2u+2kxhgaQNg2g5k8xZoU4M1lMmf0+k7cyNz7+hBgfHe985FE cjzy9sgOjpTZmmAz1M4Ecopf+OISNr96n8mxd5h+x0g7n3xlKkSxqwlSKsZKQdHgB97w DCGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692173138; x=1692777938; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8k9SDeHI7pT77EAiRbGT0l+LgTOxZGJXBDfzgsBCvsQ=; b=Wjo4Fd7IuVybWoHzJpus2irCrqOEvI4/L9XH9eJThKpneOrImbmvIaFfUr2jHSACmg V7g5+2e2ajFtAgDw6nqn3AMhTmwP2/qEHGYSJgY9R0TF+SK/AidpgTSYpQ3GYzl5Hza7 rcgtEU0vni3EqP6N/uErqAP1Jm6N85HkBHezqdRkGpVKSk8GpLb7XG3Fd1xdjJ/vwO4L i8Q+yRhbHfhOfoz914NY5sux7a0XJhq7zhl4xejEb9M+U5bkK+IN0IPO39ruWFSdcRBA k7lgtR9dc0DLDiHSw0LVLXf6f/AScbfnt3NP9z2rRhxjjhRyxCj5paxUDAjmeYgwe9iG 1DsA== X-Gm-Message-State: AOJu0YwTXd48s9Ro45G5axTKz31pj23KyJ93v63s87x2NNtfH0zdg+Kd +kC4VNCGUptNp0AaIJsfOd4= X-Google-Smtp-Source: AGHT+IEJ5DXrTNJSpxQVcv1AVMivRkxZZ0diVYJHhhpCW9i+hTbvpaNSlhoRknJXBlCmlXzmVDf0dQ== X-Received: by 2002:aa7:d755:0:b0:523:372c:24f2 with SMTP id a21-20020aa7d755000000b00523372c24f2mr1015640eds.26.1692173137693; Wed, 16 Aug 2023 01:05:37 -0700 (PDT) Original-Received: from [192.168.178.21] (pd9e36e45.dip0.t-ipconnect.de. [217.227.110.69]) by smtp.gmail.com with ESMTPSA id bo6-20020a0564020b2600b0052574ef0da1sm2015877edb.28.2023.08.16.01.05.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Aug 2023 01:05:37 -0700 (PDT) Content-Language: en-US In-Reply-To: <87zg2rjxnq.fsf@yahoo.com> Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, NICE_REPLY_A=-1.045, 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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308800 Archived-At: On 16.08.23 08:42, Po Lu wrote: > Gerd Möllmann writes: > >>> I don't know about SBCL, but as for Emacs, refer to the definition of >>> VALBITS in lisp.h (maybe also the right files among m/*.h and s/*.h, but >>> I have no idea where they've disappeared to.) >> >> The SBCL I have here, a Homebrew installation, uses the scheme where >> >> ....0 -> fixnum >> ....1 -> other objects (discriminated by additional tag bits) >> >> I had the same for Emacs in the branch gerd_int in the 2000s, if >> memory serves me. > > In today's Emacs, 0 is Lisp_Symbol; this facilitates representing Qnil > as C NULL. Yes, and I don't see a need to change anything in this regard in Emacs. IMHO, the fixnum range is more than sufficient nowadays, in general.