From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Making 'eq' == 'eql' in bignum branch Date: Mon, 20 Aug 2018 07:19:39 +0000 Message-ID: References: <29f933ac-a6bf-8742-66a7-0a9d6d3e5a88@disroot.org> <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> <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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1534749502 13286 195.159.176.226 (20 Aug 2018 07:18:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Aug 2018 07:18:22 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: eggert@cs.ucla.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 20 09:18:18 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 1freS9-0003Jr-2j for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 09:18:17 +0200 Original-Received: from localhost ([::1]:45341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1freUF-0005Py-K8 for ged-emacs-devel@m.gmane.org; Mon, 20 Aug 2018 03:20:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1freU9-0005Pr-Ol for emacs-devel@gnu.org; Mon, 20 Aug 2018 03:20:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1freU8-00055s-VH for emacs-devel@gnu.org; Mon, 20 Aug 2018 03:20:21 -0400 Original-Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:36249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1freU7-00054x-Vb for emacs-devel@gnu.org; Mon, 20 Aug 2018 03:20:20 -0400 Original-Received: by mail-lj1-x22e.google.com with SMTP id u7-v6so10782032lji.3 for ; Mon, 20 Aug 2018 00:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/+w08bTBCkLfqWHXLkkHku+ajJpd3xIKlXVB7YkmQ7M=; b=Uot5aeiQFMsbPRz/5udlcHDo/Iuwq/7Up+MMIp6qdEfKfqO7z8ERqTzwdRSPzynqlx RAkmbZIW8lgRB4ER+FORROKI2sQZC+9b6D/4OZ/cqGNrgKIcw/6Wum/WXF+HUikfQhML qBv5vaD+6fJExTU9W53t5c1YIPF4BN1CBB+g10cyVJuA4kJpoRAdbCCqfOOjJKtCUr+d tsIsdn3uXcbJw7s1NzEvIaL27hY0XPBvFpKN9mmlUD0uPAlCmunRUSQRrBTgxVMAIEvV KJVgGiSNRGkhgochDLAd4l9N1PgwI9Jqk8U4qoYVHPZO/6/pWuivNyCwdncJ4a60cB01 dE0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/+w08bTBCkLfqWHXLkkHku+ajJpd3xIKlXVB7YkmQ7M=; b=FvMuHaFPb+HDmbMnLs61o8TfLIj+hC7rqpQtUowZBO8JLP95uUYV/lEhYCWKgxLNWB bpC0Mc2I6rJvNZDch5LJdmkhoo0UGvKFzvs9RbgZKx6PotmKAkROk+ku3cky6qfGRFml idye2cFISsGvy9/C5Cu6SXXnhl+T/pNzKVa4zPag+AO3BiAeCSFMEVoDeOji9W+ZMr+k Bc/LIu4R3DhKgEoaVDT+ku8HXd/4vL/0gYHYkd56A9kGY+3gwvJ1xXgvKDXOAgmrwdWw plhLz4fxL1ck4NPwTNioLfkDWkX4dbyWbMjAdVp+3PWx0tm5GwKwVmKSb4My1VblPa1W U4LQ== X-Gm-Message-State: AOUpUlHTx/wjSZmCpWMG4Ij1jawCsRORzzKGBaFZ+98WKj7PBl3RNwiY uVH6pDJwlPuYtD8v7T0jZiXf4T74Yab9ynWDVMs= X-Google-Smtp-Source: AA+uWPyie+gLoygA7ggSSntCIm3gihQ+8Eq/RMblPrHl3a7t+CnJg6g/Hy1sjx+WKhqol2H5FACd+3NBWnGKOGibteI= X-Received: by 2002:a2e:2114:: with SMTP id h20-v6mr32663673ljh.135.1534749617829; Mon, 20 Aug 2018 00:20:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22e 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:228711 Archived-At: On Mon, Aug 20, 2018 at 7:06 AM Paul Eggert wrote: > Hold on, let's not spend that valuable tag so casually! Perhaps bignums or > floats are a better use for a tag than 64-bit ints. Considering it's only those 64-bit ints that don't fit into 61 (or 62, or 30, or 29) bits already, I'm no longer convinced this is a good idea at all. At the very least, it would make our interpreter code harder to read. > One other thing: we can pry another tag free. Now that we have bignums we no > longer need to give fixnums two tags. I think too many places might still assume that most-positive-fixnum is precisely either one of its current values (OTOH, I'm running with most-positive-fixnum = 0x7fffffff and things appear to work). I think references to most-positive-fixnum (and implicit ones, like using Frandom without an argument) should be eliminated. Fixnum range is now an implementation detail.