From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Mon, 20 Aug 2018 17:26:18 +0200 Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <49d8ba62-c9a5-9203-d882-8e900b441ff3@cs.ucla.edu> <8e0320d9-e0d0-2b57-57cc-2df4399f133c@cs.ucla.edu> <87lgaio7xd.fsf@tromey.com> <877em1cb0i.fsf@tromey.com> <765767b2-d2e5-a9a6-f724-d58ecf4847bb@cs.ucla.edu> <76081b5d-8c10-0a37-2c97-d4864c0faa80@cs.ucla.edu> <09153aed-361d-4f82-d9ac-b502314769ae@cs.ucla.edu> <83lg91dqd4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534778741 9607 195.159.176.226 (20 Aug 2018 15:25:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 15:25:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: eggert@cs.ucla.edu, monnier@iro.umontreal.ca, Pip Cet , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 17:25:37 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 1frm3k-0002KW-F7 for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 17:25:36 +0200 Original-Received: from localhost ([::1]:47717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frm5p-0001tu-5R for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 11:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frm4n-0001pH-JQ for emacs-devel@gnu.org; Mon, 20 Aug 2018 11:26:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frm4k-0000Fp-Tg for emacs-devel@gnu.org; Mon, 20 Aug 2018 11:26:41 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frm4k-00006J-M9; Mon, 20 Aug 2018 11:26:38 -0400 Original-Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1frm4R-0003ou-2x; Mon, 20 Aug 2018 17:26:21 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUzKSrw6dj9++upnZT+ /vQTCg3+/fBmW1dn7GPWAAACX0lEQVQ4jW2TQWvjMBCFJyuErnZE8LVRqXu1K4L/QMhZixC+B6Oz WiP09/eNHCc97BASx5/fm5GeRWarPqKWW7xFfK4ouhtz701c6t3bdbu7AUYAMfb8tewgRhixT7zH eI1VwJB6BibWHtzguivYqVaEIVst12pH+1R4YFMt11sFcVf0fY82PFW1o948iwfj7o91vHpEngEz baC/m9/FN2//Af0LmHNrSymrtrXG5zrOrU4hhPkUaolfoJMMGnKUiNblBSZ+UunkApETL1CdwtoV J4MjX8GtgrwBSWzpX4rawq1dUsFVsOxWuQKdVYDGP5LldQwbSLOrABlzF4BJbkAFSBjEB7AYS42a yGMhoufYbxXoQk6NHZEqNolHinckqG1RK4ACyGJLPzJoQWzbwaeM2deskBgAttcCyJzW9uI5xwV5 s6KFBopBfZ8BDL9p8QFQjUyzeL+IPTJ63D+e+Rt/nuCTaC6JVINpUV/a6gm/3/SxkpOKgwq88j8Y JDmiA3WILcwSQAa56r8ryAaywvZmBnN3NIcEkLEiahJ7KLb67ow5ZEgmZUd6y4hUzqqRs9bGiGGG ZILiLYUsswQ42PF49slZWyZM9TYpRQRAox3Ep0+hrCrxuAAFjRs1jhfXeIhLBaeCIFzwjbL2Eiaf gxgUlR8GWLj0jbd2CKvPpBL24IfHLUXmeRBWlyB8dq5UcCJXSOX5IootchZPxSk4XMj5sk5rGRwA 8an4oobfTwsr3ltbQcIcGxAaVoGBPGBP+QB90Xs9SBPe9lJP1GTHsR31kXR7rIkhQVycj3uC/wCN GAxaUr8KnQAAAABJRU5ErkJggg== In-Reply-To: <83lg91dqd4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Aug 2018 18:12:07 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.224.195 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:228733 Archived-At: Eli Zaretskii writes: > So I don't think we want to argue for a total elimination of > most-positive-fixnum from our code. I agree, but its usage in Emacsen with larger numbers present can be problematic. I'm pretty sure that I've written code that's essentially along the lines of (when list-of-numbers (let ((i most-positive-fixnum)) (dolist (a list-of-numbers) (setq i (min i a))) i)) to get the smallest number in a set. (Not exactly like that, of course, but using `most-positive-fixnum' as a guard value, knowing that none of numbers in list-of-numbers can be larger than that guard value.) So perhaps a warning might be warranted? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no