From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 2/2] Add module functions to convert from and to big integers. Date: Wed, 24 Apr 2019 23:17:55 +0200 Message-ID: References: <329aec43-8272-f39a-e7ef-e77804103a50@cs.ucla.edu> <20190423213218.35618-1-phst@google.com> <20190423213218.35618-2-phst@google.com> <837ebj2xx0.fsf@gnu.org> <83zhof1g76.fsf@gnu.org> <83y33z1fnh.fsf@gnu.org> <474c5b14-4151-6a5d-a388-7f41351bc83c@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="134821"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Paul Eggert , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 24 23:21:57 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJPL3-000Yvb-6n for ged-emacs-devel@m.gmane.org; Wed, 24 Apr 2019 23:21:57 +0200 Original-Received: from localhost ([127.0.0.1]:47413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJPL2-0008WU-25 for ged-emacs-devel@m.gmane.org; Wed, 24 Apr 2019 17:21:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJPKn-0008PL-Uq for emacs-devel@gnu.org; Wed, 24 Apr 2019 17:21:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJPH9-0003dI-8n for emacs-devel@gnu.org; Wed, 24 Apr 2019 17:17:56 -0400 Original-Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:33883) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJPH7-0003bh-BL for emacs-devel@gnu.org; Wed, 24 Apr 2019 17:17:53 -0400 Original-Received: by mail-oi1-x22a.google.com with SMTP id v10so15531445oib.1 for ; Wed, 24 Apr 2019 14:17:52 -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=N8vcMJP+8pHx86m2NsRcaEnFsUDl1P/mj2zj/eX9NOU=; b=mni+N6v/Clr9rLAwfz4X8VSKDZHqGIf74aUeDV/kNOd2yDwr2T5/6yv0KECbfiwM/0 Ws1JxdxQMOs1C5KNvj5XRWsBj21a7g0+3o1EsbL/KPEq2QLR9EMw6rjFuxBk0Zk3j5bJ 4f8uE32z3+3o/crxb4n2MGeNHZZz0FZfC4KARLEPl8/bmL2u/cawxtYu8yHqsuA08UPQ 9QeQTpGlutavb3KbwWfwygPvgoDkSjMos/c747EUqN3O1MLdasmwCQy/TNPjiXjVMNyG hFQ5Ogxii8daXz5GeX7m+fLfPGgvD/BOLFNi7kcHNN5E1r7FD3a9ejNf1kLNxmNOSznn DmyA== 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=N8vcMJP+8pHx86m2NsRcaEnFsUDl1P/mj2zj/eX9NOU=; b=eH96PsWXF7MJCHqmdU/HChu4B5jedPsCW3F3C5Oa07/p2Fq1uQEpUiS09vUHR3lAC0 eaDIo4QSBnpNKh8ty4wxTv4O0YjVQUuXOeiBH13yZkG7efwrH2vT2cG/HvqOOEeSut+F FShE/nnDmUw6KThwlgNRD72jv6CgHu2iYULMYCUXh2F/QMU1tpRkxhv0fJn4dRunbsq9 Q8HzWMIL0iihKNPJtN8wZruY5sqVOZdkCGawzsjAKdQN+HzUuOeFNcJr1y03JzgpF12h o64UeUfITXrXTwtemUORSz5jIM5htvt58HoP+nbudS90TuxdSIB85QbZlXHBWO90/Q2D Z+6Q== X-Gm-Message-State: APjAAAWtM78LRYT85PfwXeg+Z7AaEDWqafUjhlOJLiwZkgMlbYvlt9xo n7ofQ0UDDaGsICgbrhK8AkKONSCHKHFGL7B99kgD5w== X-Google-Smtp-Source: APXvYqzMdcNUaFRclrH6y8n4I3fOu8oYxRBkdSca6SXdMHaKH2r6xYWqv9a26wEoy15OYbZETu6Vdz3mAaisJ71/Tnk= X-Received: by 2002:aca:b3c2:: with SMTP id c185mr870273oif.98.1556140671438; Wed, 24 Apr 2019 14:17:51 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22a 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:235886 Archived-At: Am Mi., 24. Apr. 2019 um 22:58 Uhr schrieb Stefan Monnier : > > >> I'm not sure I understand the details of the discussion, but if we > >> sometimes include mini-gmp.h (or copies of parts of it) and sometimes > >> gmp.h, isn't there a risk that a module built for "Emacs on > >> amd64" will not work on "all" versions of "Emacs on amd64" (depending > >> on whether it was built with GMP or with mini-gmp)? > > > > Yes, although the module fingerprint is supposed to catch problems > > like that. Such problems can also be caused by compiling with -O2 > > vs -O3, say. > > Really? I thought our module system was designed so modules aren't so > tightly coupled to Emacs's internals [ I remember discussions > around exposing the size of Lisp_Object, for example. ] They are not coupled at all. They only depend on the basic machine ABI (size and representation of arithmetic types and pointers, calling conventions), but should otherwise be maximally compatible: If the module author followed the recommendations from the manual, then any version of Emacs can load any version of the module.