From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Modules: definition of emacs_value Date: Wed, 02 Mar 2016 09:37:17 -0500 Message-ID: References: <56D4D127.5020505@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456929480 15767 80.91.229.3 (2 Mar 2016 14:38:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2016 14:38:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 02 15:37:47 2016 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 1ab7uL-000363-5L for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2016 15:37:45 +0100 Original-Received: from localhost ([::1]:56898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab7uK-0003xp-Gz for ged-emacs-devel@m.gmane.org; Wed, 02 Mar 2016 09:37:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab7uC-0003xK-3R for emacs-devel@gnu.org; Wed, 02 Mar 2016 09:37:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab7u8-0006zM-3K for emacs-devel@gnu.org; Wed, 02 Mar 2016 09:37:36 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab7u7-0006zA-T6 for emacs-devel@gnu.org; Wed, 02 Mar 2016 09:37:32 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ab7u3-0002wX-43 for emacs-devel@gnu.org; Wed, 02 Mar 2016 15:37:27 +0100 Original-Received: from 76-10-161-222.dsl.teksavvy.com ([76.10.161.222]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Mar 2016 15:37:27 +0100 Original-Received: from monnier by 76-10-161-222.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Mar 2016 15:37:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 12 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 76-10-161-222.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:Ia1Vl2BmmLCH+yJmINhyzE3Xyao= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:200863 Archived-At: > I don't like giving users raw Lisp_Objects. I really don't like making > 32-bit callers cope with 64-bit values. If emacs_value is a pointer, we > have complete freedom with respect to runtime behavior. Putting a > Lisp_Object directly in an emacs_value is a false economy. This assumes that the performance cost of the API is negligible. Currently, the performance already sucks rocks because of all the extra condition-case going on (thanks to your lobbying), but I don't think we should add insult to injury. Stefan