From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: More over-engineering Date: Fri, 27 Nov 2015 18:12:30 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1448644387 27213 80.91.229.3 (27 Nov 2015 17:13:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2015 17:13:07 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 27 18:13:04 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a2MZz-0000ml-Nv for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 18:13:03 +0100 Original-Received: from localhost ([::1]:57777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2Ma2-0002Dm-HZ for ged-emacs-devel@m.gmane.org; Fri, 27 Nov 2015 12:13:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2MZU-00027p-Va for emacs-devel@gnu.org; Fri, 27 Nov 2015 12:12:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2MZU-00058Y-9D for emacs-devel@gnu.org; Fri, 27 Nov 2015 12:12:32 -0500 Original-Received: from mail-lf0-x229.google.com ([2a00:1450:4010:c07::229]:35538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2MZU-00058R-2u for emacs-devel@gnu.org; Fri, 27 Nov 2015 12:12:32 -0500 Original-Received: by lfdl133 with SMTP id l133so135192941lfd.2 for ; Fri, 27 Nov 2015 09:12:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=YUCfzuBIP7bvyqOha6CVBN2BDCxCRSwPSaMitl9snNA=; b=HG62SKEH/7rtL6pH+FjqVhdBou3JArtysnt4PKBr4x5BInFEI5Tq3UY2Wp/HhIC2FR xw4lgR6RCokHubll02Ke+cZxc5UN00RfPJyXFTZ6wmYSR9efixE35X2O2T5XFWpdmaSl fVfveCg6svI9StqdpERBJQtRehgQiKSl6jermuv3MLDAb1gR/tL/Tct0RAxPtUJD2dhS 3FBzFUa10z/qCSjQrPkMQBDntoTHq2EugP8f8SxTJclMh1Vn3qNyighJfOHQIpNqaZ0N GVCK4W+q4CicF/8z21vQ/ogdnwiICgDq/8YysgKj1eAr45XNc6zKRPmalId3LgUTlDzK IjsQ== X-Received: by 10.25.18.93 with SMTP id h90mr20385807lfi.7.1448644351052; Fri, 27 Nov 2015 09:12:31 -0800 (PST) Original-Received: by 10.112.202.133 with HTTP; Fri, 27 Nov 2015 09:12:30 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: SoV7dITcRj2uaBM1Xh8LzsMFOFQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195390 Archived-At: On Fri, Nov 27, 2015 at 6:00 PM, Stefan Monnier wrote: > Are we really allocating a structure for every Lisp_Object value we pass > through the modules API? Why do that? Look at the old thread for Philip's arguments. As far as I'm concerned, we need an indirect pointer to support wide-int Lisp_Objects on 32bit platforms. Global reference can still be made with the current code. We have a reference counting hash-table to keep track of them. Non-global refs are marked explicitely in case the GC misses them.