From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Avoid GOOPS in (system foreign-object)? Date: Fri, 22 May 2015 10:42:22 +0200 Message-ID: <87oaldm2a9.fsf@gnu.org> References: <87wq022bn3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432284168 28129 80.91.229.3 (22 May 2015 08:42:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 08:42:48 +0000 (UTC) Cc: Andy Wingo , guile-devel To: Mikael Djurfeldt Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 22 10:42:45 2015 Return-path: Envelope-to: guile-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 1YviXR-00089e-V0 for guile-devel@m.gmane.org; Fri, 22 May 2015 10:42:42 +0200 Original-Received: from localhost ([::1]:60935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YviXR-00085r-DA for guile-devel@m.gmane.org; Fri, 22 May 2015 04:42:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YviXJ-00085Z-AT for guile-devel@gnu.org; Fri, 22 May 2015 04:42:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YviXC-0005PZ-Us for guile-devel@gnu.org; Fri, 22 May 2015 04:42:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YviXC-0005PU-Q6 for guile-devel@gnu.org; Fri, 22 May 2015 04:42:26 -0400 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]:58642 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1YviXB-0006fJ-Ns; Fri, 22 May 2015 04:42:26 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Prairial an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Mikael Djurfeldt's message of "Fri, 22 May 2015 09:58:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17723 Archived-At: Hi Mikael, Mikael Djurfeldt skribis: > Sadly, I nowadays only have time to look at guile-devel briefly now and > then. I did this now and happened to see this. Good to read you here! :-) > Just wanted to say that I think that we (or at least I) at some point in > time had the goal to replace structs with pure GOOPS data structures. In > the context of FFI, this would allow you to be more flexible than what > structs allow, ultimately being able to access arbitrary C structs and C++ > structs/classes directly from Scheme. I find that a proper MOP (which > maybe still is not fully developed) is a nicer way to handle non-standard > access than the strange character strings in struct vtables... The struct layout strings are a bit clunky, indeed. ;-) I like the flexibility that GOOPS provide, especially when it comes to extending things like =E2=80=98equal?=E2=80=99, =E2=80=98write=E2=80=99, and so on. I think it=E2=80=99s better if GOOPS is not a requirement for basic interfa= ces like this SMOB replacement, though. One of the concerns is performance. For instance, in 2.0, start-up time with GOOPS is on the order of 3 times higher than without it, as measured with: time for i in `seq 1 30` ; do guile -c '(use-modules (oop goops))' ; done Thanks for your feedback! Ludo=E2=80=99.