From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cEHxKp4vlmAJEgAAgWs5BA (envelope-from ) for ; Sat, 08 May 2021 08:28:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yMh6Jp4vlmDccwAAB5/wlQ (envelope-from ) for ; Sat, 08 May 2021 06:28:46 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 94D6323C2C for ; Sat, 8 May 2021 08:28:45 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 70EFF2717A; Sat, 8 May 2021 02:28:40 -0400 (EDT) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by mail.notmuchmail.org (Postfix) with ESMTPS id ABE612716D for ; Sat, 8 May 2021 02:28:37 -0400 (EDT) Received: by mail-ed1-x52c.google.com with SMTP id l7so12737135edb.1 for ; Fri, 07 May 2021 23:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0YRyyJpnJsHDE7M2t0DNbjjx0bn/NtYcQTX8gVwsvJw=; b=Zub8eIBlxVp+ToWiNhh+UA8Bu3IW2GCqkCPPR/+2YME93Xld931MTMCa/lx1Id0VG5 fE7IWDzAHfKqHxbCl55ngODgHwIp2oQfkxzIpwJSPonXZ47J/YV1dvWpiPQDw4LqpVFi GbkePHvqMgJIetvmbo0ctQhJQgxHT6sCqLxgkcb/paGa9Je0Ix+m0b0rdWysB1guJHYB xf4CC1xy8QN4iibRX0OHpWs7Grydp1azFgE8gACLR7Qf45045OtWLSC5LwNPpxYRTDld hsIZwvhsmgNdcKjSH2ch5RpabHaz9gPLqlkt4ToHY3xib7AFVQAkhxTksDt5GTx/vrzr X6Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0YRyyJpnJsHDE7M2t0DNbjjx0bn/NtYcQTX8gVwsvJw=; b=lFYEKfZcT1U9OgEgbC+dA/XFI5nSuaJh3CabG+z0by6j00FAwinkdMB7rS7CeJg2cS NIjSr1s/iTK+hcSakGlSRE5YIHL2+taV2oHObej+F/PzFE4mAITig7/ZFxLI12wsLOEr plpWDUQIImAchP66ZkNKwqPjR/l3u+eLH0i2HFHfe97wdOhwQrf3ayR257d3bXpMPhVI +r/lJLOM5JPSrA0CO/RovqdRhmcFchb4ZLFqDVDg9RS6meJ9/xKdX+Fx2fodUVnQl4gb nhZiQBMknVSvyoYhHSfP19cF96PNjuiJGBt5iNep8JKcOmeZgsx6Q7Qk/Z54nEX9zj/J EF9g== X-Gm-Message-State: AOAM533NPPtIcBLoYWodVPoo5VmrKv4sD+RANBg1PRlA1OMXDC+B2/Cq 2PDb8OsVYM3vdmJgvi9KdZ1FDubLvneh7e1M3yg7CLt1B5AutQ== X-Google-Smtp-Source: ABdhPJxsOC10bO17faNny2I2s+0DTs7ktf/uz7jvPyEEdLA5/Xk413OtHm5zKO6hAb6m8ZnRhKWhT9xDGSdy4xzVXis= X-Received: by 2002:aa7:cdd8:: with SMTP id h24mr16261256edw.276.1620455310955; Fri, 07 May 2021 23:28:30 -0700 (PDT) MIME-Version: 1.0 References: <608c81378d0d0_fea2086d@natae.notmuch> In-Reply-To: <608c81378d0d0_fea2086d@natae.notmuch> From: Felipe Contreras Date: Sat, 8 May 2021 01:28:20 -0500 Message-ID: Subject: Re: The future of Ruby bindings To: "notmuch@notmuchmail.org" Message-ID-Hash: 2MONMPIWONAQFYRO3VUMMCABU6ZVFIHV X-Message-ID-Hash: 2MONMPIWONAQFYRO3VUMMCABU6ZVFIHV X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Ali Polatel X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620455326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=RQUkDkgRA9HP3ifHMmlYNJIPnATrMw/e5uzXKA2B/34=; b=TJFfoxSJtIkPnbFGpp/T0EqKXUlesYKia3FczZw1rpk55/Js6fThn2ppAXrOZS8DlqKnRZ 948YHABAqcPGqo9FP/xmVFMsXxdaB4waR5p80yHxUUa2rlDrShvFturWRNtyF7UsvneWp8 8DsYuOZ9nTcbVYwIiJO3ZLe8TzZClYNu1cKflSfcqAj0AifnTuNjYaG2vg8b5tvRVekP/T NGOJfemycLAz6rWnlxYqBugNR/d9opTc6fvfN+1smJdKXSGuSUW1a4buuO7mDfaMXYU8bn 2RvhIHuiInOh0X1+cAKQZXVCXchbNT7n3xysV4Xxee1fBrxdBVw3CsKXJ9Jc3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620455326; a=rsa-sha256; cv=none; b=j5mJ6CdV7vTpfcyWhbeQocyPTqLW81ncU9MAqYx4m+jlyPRkObqsl25V0GxGcU/HZqGwtU vqgE7RbXp/eWnPy2wbpF7qFhLZZhYCLH+h/vdx8Bkb1NLNSmoKd3yuCOcXcfgKoMPFbsaE 7vi7gc0S4UmPo7tMW8GrXJHxFPakVAtTpyND0s/t0zWDLQGv2ipq1e/lRJWmwXETxxWAHC W1jWJ35Q1mt+eEB3OvQadsfHT1YV7zTi8UgNsMcjUUpxsPcj5ZKa3WbDwXm3EV/2htx9t7 rqjAm5vRgF9EL+CkVU9s5AJtcJbdeOCdHZqXsjGF7rrK/ZcsImoMko09JsV8zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=Zub8eIBl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=Zub8eIBl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 94D6323C2C X-Spam-Score: 0.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: VNmcXiHVXUx4 On Fri, Apr 30, 2021 at 5:14 PM Felipe Contreras wrote: > I understand why Ali Polatel did commit c7893408 (ruby: Kill garbage > collection related cruft., 2010-05-26); because the order of the object > destruction cannot be ensured in Ruby, however, there's ways to > workaround that. > > 1. We can steal the object > 2. We can increase the reference count > 3. We can add a second parent I attempted all options, and none of these worked in practice, except #1. I have the patches ready, but first they need the cleanups in [1]. Any feedback would be appreciated. Cheers. [1] id:20210504081749.715768-1-felipe.contreras@gmail.com -- Felipe Contreras