From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Using the GNU GMP Library for Bignums in Emacs Date: Tue, 10 Jul 2018 19:52:30 -0600 Message-ID: <87lgaio7xd.fsf@tromey.com> References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <83bmecy6fx.fsf@gnu.org> <0d3175d8-d996-651e-b221-71978bde3a65@cs.ucla.edu> <87tvpdnzgy.fsf@tromey.com> <4c2a814f-c254-29e5-39cf-11b5f2e5c9c8@cs.ucla.edu> <49d8ba62-c9a5-9203-d882-8e900b441ff3@cs.ucla.edu> <8e0320d9-e0d0-2b57-57cc-2df4399f133c@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531273848 24826 195.159.176.226 (11 Jul 2018 01:50:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2018 01:50:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: Paul Eggert , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 11 03:50:44 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd4HD-0006LQ-Kp for ged-emacs-devel@m.gmane.org; Wed, 11 Jul 2018 03:50:43 +0200 Original-Received: from localhost ([::1]:51267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd4JJ-00064Q-8A for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2018 21:52:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd4JD-00064K-3E for emacs-devel@gnu.org; Tue, 10 Jul 2018 21:52:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fd4JA-0003Da-0X for emacs-devel@gnu.org; Tue, 10 Jul 2018 21:52:47 -0400 Original-Received: from gateway30.websitewelcome.com ([192.185.180.41]:46932) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fd4J9-0003DP-O8 for emacs-devel@gnu.org; Tue, 10 Jul 2018 21:52:43 -0400 Original-Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 620EE8D4A for ; Tue, 10 Jul 2018 20:52:42 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id d4Ixf28PGaSeyd4J3ffMSg; Tue, 10 Jul 2018 20:52:42 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LGGW7CF4AYHVJaHy+Lj49+5jlQmCaJ0L4gme/k+pm2Q=; b=mLVkU3AlLQPxKeDjCYC5gahG5r ANWLAp+KXuAc0ZO04bpLkE+ZB9FA5tfmQdcGPXMb0CkhZK6jSgnRJJvZ+yJYQGjJmvCOMGn+Qjlks rB+e7wdcNu3pvTg/X9lWV+kS+; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:47986 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fd4Ix-002p7z-4P; Tue, 10 Jul 2018 20:52:31 -0500 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Tue, 10 Jul 2018 16:33:35 -0400") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1fd4Ix-002p7z-4P X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:47986 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.180.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227232 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: Stefan> but (type-of ) doesn't suffer from such a backward Stefan> compatibility requirement, so it would be preferable for it to return Stefan> `bignum`. I read this thread and I still don't know what a use case for this would be. Do you have something in mind? Stefan> I wonder on the other hand, why you think it'd be bad for (type-of ) Stefan> to return `bignum` instead of `integer`. Well, for one thing, it's simpler to explain that there are just integers. In fact after working on the docs for this I think it would be better if bignums were interned so that eq would work. Tom