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: Mark procedures and LilyPond Date: Fri, 06 Nov 2015 14:50:00 +0100 Message-ID: <87d1vnkzjr.fsf@gnu.org> References: <87vb9ihy6x.fsf@igalia.com> <87bnb891t8.fsf@gnu.org> <87ziyspp5d.fsf@pobox.com> <87io5ftij0.fsf_-_@netris.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 1446817820 32546 80.91.229.3 (6 Nov 2015 13:50:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 13:50:20 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Nov 06 14:50:15 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 1ZuhPC-0005m8-Kl for guile-devel@m.gmane.org; Fri, 06 Nov 2015 14:50:14 +0100 Original-Received: from localhost ([::1]:38822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuhPC-0002Oe-3T for guile-devel@m.gmane.org; Fri, 06 Nov 2015 08:50:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuhP8-0002IM-0w for guile-devel@gnu.org; Fri, 06 Nov 2015 08:50:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuhP2-0002FR-S0 for guile-devel@gnu.org; Fri, 06 Nov 2015 08:50:08 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuhP2-0002En-PR; Fri, 06 Nov 2015 08:50:04 -0500 Original-Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:45664 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ZuhP2-0002nj-68; Fri, 06 Nov 2015 08:50:04 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Brumaire an 224 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: <87io5ftij0.fsf_-_@netris.org> (Mark H. Weaver's message of "Fri, 06 Nov 2015 07:32:51 -0500") 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:17997 Archived-At: Mark H Weaver skribis: > Unfortunately, I doubt this will be sufficient for LilyPond. The small > example case in , which is apparently > representative of how things are typically done in LilyPond, has > structures like this: > > __________ __________ > Objects in | | | | > GC-managed | SMOB 1 | | SMOB 2 | > heap |__________| |__________| > | ^ | ^ > .....................|...|.........................|...|.......... > __v___|___ _________ __v___|___ > Objects in | | | STL | | | > normal heap |C++ object|--->|container|-->|C++ object| > (not scanned |__________| |_________| |__________| > by GC) Thanks for the picture, that=E2=80=99s very helpful! I still think we should be able to get rid of GC mark procedures in this case, sidestepping the bug you describe. This pattern is very common when writing bindings. I can=E2=80=99t imagine= that there's something insurmountable here. Am I missing something? Ludo=E2=80=99.