From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Need help embedding Guile Date: Wed, 22 Dec 2021 08:52:15 -0500 Message-ID: <87v8zg4ui8.fsf@gnuvola.org> References: <2a789e248ef8d1922caec7af553cf26e9b360619.camel@telenet.be> <87ee65shtv.fsf@laura> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: guile-user@gnu.org To: Dimitris Papavasiliou Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 22 14:58:59 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n028u-00045N-Rp for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 14:58:57 +0100 Original-Received: from localhost ([::1]:34018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n028t-0000jH-Sw for guile-user@m.gmane-mx.org; Wed, 22 Dec 2021 08:58:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n022r-0007Vp-96 for guile-user@gnu.org; Wed, 22 Dec 2021 08:52:41 -0500 Original-Received: from delivery.mailspamprotection.com ([185.56.84.13]:55299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n022o-0000Za-2X for guile-user@gnu.org; Wed, 22 Dec 2021 08:52:40 -0500 Original-Received: from 241.110.209.35.bc.googleusercontent.com ([35.209.110.241] helo=giow1035.siteground.us) by se20.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1n022b-0005wv-38; Wed, 22 Dec 2021 07:52:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnuvola.org ; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gXmxERkRWHl2/5VK/5DUToSbKx/FcRbZ4aIobxk+MRc=; b=TVQEQ92UcNSJl5kgOXITBFBx4g voGNGkgfSjuh2U+I3KUltUZKLnhyPplk34ehUu7vtaHEAS+HNWPv9juxO7Eb1jDk2asWHYj/KNMdK 1SH8QN4tmzVqt32gjm2ko10hm3Lx8YDC8k3YqozaKprQItCHa8L8W36Gi+D1tcdvtBU0=; Original-Received: from [50.89.166.226] (port=33770 helo=abolire) by giow1035.siteground.us with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.90-.1) (envelope-from ) id 1n022a-000AwN-Ms; Wed, 22 Dec 2021 13:52:24 +0000 In-Reply-To: (Dimitris Papavasiliou's message of "Wed, 22 Dec 2021 11:41:22 +0000") X-Originating-IP: 35.209.110.241 X-SpamExperts-Domain: giow1035.siteground.us X-SpamExperts-Username: 35.209.110.241 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.209.110.241@giow1035.siteground.us X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.23) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT8nhGFsqLoYqAPSkvFKK3hcPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5zX/gzokhrDyiHKEBiVQ+UUtlEjVty9061u25mkPS3m+XCP d2F3NgT3tUc5pFnOd+3hfd1Aw6Du/kcBKK6vFCBAlxnksqPjaY/Dk4JNIx4kJFGavff7/jlq6fkm O4krnmvBLjX540LEall2D33XsAZHDgDlOb5k419pdVKOYVvNN+pkHHqwJnSMxp0ROaAREx82ITbf E3cVHyK2Nlo20pwWyoZ+8BzjbQYNczrLUr/yZttPnfZ5KfiRynDQT7OFS+xYIRYrgwmNBHQ/PlvD LtE2FjDEbSBEEMZayrIXOMQCuIPlp8Vz8Xj0RT1unQu4Qiu24qw6PzlBZub8+yT8hQA7RAwX31WV Y5lWjWxuGSRuxduGpHB73R3bCJIR+JHRDAqaZy1ykj45iomWRjvq6ASinUghgAcG/Q/GitkIn+br rd9fxN2oReTDHAyOynaY0CkiXx6pFrrvtHXVsv8CdIHkZYtfZltBvdQkqKESagO7CIkKGeIAUDgE 5VbflVRdgTHXzXmHaN80JC+nfH561Te/6BtpbmdpMLvM58ZB4GVvZfvg7iEFLP+SSY+Av5+AiC4u IBFXUcD6vkLu9EcBiX5mN0rROq74N0Lf3ZwBb1icM9UIv00Q2VaSHpzUQaKN4vNIjY1mieLf6XHe hWPnqBJAkfH8gaFXukWVa45fSS8mvH92i8oWbN83qqP6c/pBbDOLBDMrD7q/cJogwbqzsuok0ryE 2r+shm0j26oWU2+KgiZV6Mmzr63y5 X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Received-SPF: pass client-ip=185.56.84.13; envelope-from=ttn@gnuvola.org; helo=delivery.mailspamprotection.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L5=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_DOTEDU=1.999 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17901 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable [cc trimmed] () Dimitris Papavasiliou () Wed, 22 Dec 2021 11:41:22 +0000 One idea would be to simply call `scm_gc()' and `scm_run_finalizers()' until the latter returns 0. As far as I can see, this should ensure all finalizers are called, assumming no references to any foreign objects remain, but I see no way of ensuring the latter short of process termination... Do guardians help for this? I typed "scheme guardians finalization" into duckduckgo and the first hit was: https://www.cs.tufts.edu/~nr/cs257/archive/kent-dybvig/guardians.pdf =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) ; (2021) Software Libero (pcase (context query) ; =3D Dissenso Etico (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA =2D-------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iG4EARECAC4WIQR0jqDoHLinSJv6bORnAyIkTIB1AgUCYcMtkRAcdHRuQGdudXZv bGEub3JnAAoJEGcDIiRMgHUCi1EAoOGIXnywbNiP9dfsQOZeC0CQVGYeAKC4qBaI qr/83sxWuBp3YnF3dVmlyg== =+xc5 -----END PGP SIGNATURE----- --=-=-=--