From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Removing some workarounds for big integers Date: Fri, 21 Sep 2018 21:32:54 +0200 Message-ID: References: <86d0uck5o0.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006e293b057666b5eb" X-Trace: blaine.gmane.org 1537558276 23755 195.159.176.226 (21 Sep 2018 19:31:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2018 19:31:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 21 21:31:12 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 1g3R8y-00066I-HD for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2018 21:31:12 +0200 Original-Received: from localhost ([::1]:57090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3RB4-0001ho-Oj for ged-emacs-devel@m.gmane.org; Fri, 21 Sep 2018 15:33:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3RAq-0001hd-Me for emacs-devel@gnu.org; Fri, 21 Sep 2018 15:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3RAp-0001g5-Az for emacs-devel@gnu.org; Fri, 21 Sep 2018 15:33:08 -0400 Original-Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]:35548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g3RAp-0001fg-5i for emacs-devel@gnu.org; Fri, 21 Sep 2018 15:33:07 -0400 Original-Received: by mail-ot1-x333.google.com with SMTP id j9-v6so14131258otl.2 for ; Fri, 21 Sep 2018 12:33:06 -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=v7O8sqQaBp2qmquNdYQbzQPHgtcQi//yYIwLCyYHK9g=; b=vW5jn6T4gFbX9h34bbWM1oqbOKOoaPM/uODBdighw6gLnxJJlJTZIj7YZb8ClJWIk1 d4pT2BmLBzistB57rrGs33mbzEcYA4//FyKKMqbUPcnVKcVHQBbBMYwL1p1+k4q/aabR ceqyJqSCcz/bCfZ7euRMDf3UfJP3ukxsQw4FLFFwAzvZICtsAfSMFh8m3R6swkJX9tLw PPa+ZcDtcdmV/QVJubJ7mb5wEwrw4/XKTZqdY5GMUFpFQD932db6eTJZLifMyFT5171M xYw1K4O7iKz1M2qfDKKGB/9/KfBR/TwCpx03HT+X0WKGhSkabc9u1i/CS6igtmDHjRWZ 3W7w== 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=v7O8sqQaBp2qmquNdYQbzQPHgtcQi//yYIwLCyYHK9g=; b=QiBOKMxSPoaO+OPOwDaRi54Q9iSgBeOxdwSwWuKZEadqHME/71NQRZVbmTOaNU4DD5 v3OPAkE66ZCh+BtB4dn+V6b9X2adqcn9XsQC0hHXKG5ZrqRG2jXZmsbEwJcQlwYRpJV5 wp459+dlsIaalaepPmnxHUZ9BHAaUXPAVDTgvpmNDQepbi+ag1ZySzSG54h7Qikw7kNM IpmuzQYlnvgUU33aa80FEmj12L4boPpevUa03Gfbi7rzkjUfcW4oRqslLyApau9tvw8N k77Qp8bqmG5czbzXJGqr/LiBsoBBEL7YY1UDoZIIww192LFInahRKVV02OeyErkmxoei eUfA== X-Gm-Message-State: APzg51DPF5sVmwFdLqyaSYZK2La+hceUzF1JSVvuoaDnX1b78n0AKe4b R04Uq2/jTShFKxKwZEpGc8ADEYQ7M6P+MrgrZmw= X-Google-Smtp-Source: ANB0VdZevhnp7kkMQXJLnu9F4CW4GoS1FCIzzGRAGBZYcdmP+EjUNgK1dlUtnCTc9otQ/ELH2Esx9hPt92yhTB4izZQ= X-Received: by 2002:a9d:7041:: with SMTP id x1-v6mr25624277otj.39.1537558386188; Fri, 21 Sep 2018 12:33:06 -0700 (PDT) In-Reply-To: <86d0uck5o0.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::333 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:229989 Archived-At: --0000000000006e293b057666b5eb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Andy Moreton schrieb am Di., 21. Aug. 2018 um 00:59 Uhr: > On Mon 20 Aug 2018, Philipp wrote: > > > Hi, > > > > now that Emacs has big integers, would it make sense to remove some of > > the workarounds for lack of big integer support that are still present? > > Specifically, the =E2=80=98make_fixnum_or_float=E2=80=99 and =E2=80=98I= NTEGER_TO_CONS=E2=80=99 macros. > > A replacement that would generate a fixnum or bignum depending on the > > input value seems strictly superior. (It would require a bit more > > memory, but I don=E2=80=99t think memory pressure is an issue here.) > > Yes, but that requires identifying all of the callers, and converting > them to support bignums. All fixable, but work to be done. > It looks like Paul has already done most of this work in commit d77d01d22902acdc45c2c7059de4f1b158ab5806. --0000000000006e293b057666b5eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Andy M= oreton <andrewjmoreton@gmail= .com> schrieb am Di., 21. Aug. 2018 um 00:59=C2=A0Uhr:
On Mon 20 Aug 2018, Philipp wrote:

> Hi,
>
> now that Emacs has big integers, would it make sense to remove some of=
> the workarounds for lack of big integer support that are still present= ?
> Specifically, the =E2=80=98make_fixnum_or_float=E2=80=99 and =E2=80=98= INTEGER_TO_CONS=E2=80=99 macros.
> A replacement that would generate a fixnum or bignum depending on the<= br> > input value seems strictly superior.=C2=A0 (It would require a bit mor= e
> memory, but I don=E2=80=99t think memory pressure is an issue here.)
Yes, but that requires identifying all of the callers, and converting
them to support bignums. All fixable, but work to be done.

It looks like Paul has already done most o= f this work in commit d77d01d22902acdc45c2c7059de4f1b158ab5806.=C2=A0
--0000000000006e293b057666b5eb--