From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: native compilation units Date: Mon, 6 Jun 2022 22:39:01 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007965a605e0d27e9c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23200"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 07 12:50:49 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nyWnR-0005q9-Bn for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jun 2022 12:50:49 +0200 Original-Received: from localhost ([::1]:59352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyWnP-0005a8-2C for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Jun 2022 06:50:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyP7l-0004xb-3p for emacs-devel@gnu.org; Mon, 06 Jun 2022 22:39:17 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:38429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyP7i-0007Ut-Sq for emacs-devel@gnu.org; Mon, 06 Jun 2022 22:39:16 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id a2so20037716lfg.5 for ; Mon, 06 Jun 2022 19:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FrhU1jwIT+Gi2zPl/HmIvNFOo8WkfrUKOMjezqomS4c=; b=N3G5n2VeHyGOJ5+iUqoK7Qf2TeXKKIRTWUsHUeZun9kWgRpV5mix3L9TRtCtAgvkHt WfAIw0R9U4gG1MCP2AnM+kGwrRi5Ye5iFCSYAyKZ1/XvYXmvZ94p2jjnLyu6q21wjWK3 vaozvtDxuznokpgvvpeSLkzRELQKQeDVx+vACJgZhZ2CC2nykYLo1ztXGlCWnsrTi3I7 d8JNSJQ1+f32cq1QrtjXf4+qwgXlUXc/y3emRUBth/SvV31lnnH1Znle5FgpoZuAsWnB JukHCKmhTMjCTXk1rNSkuVoq/UqxD8cp0TEL/1ksvfCLSHPDnQJwNWbqXneD7hupAcVF Cb4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FrhU1jwIT+Gi2zPl/HmIvNFOo8WkfrUKOMjezqomS4c=; b=KWSmI61MkkT3maqXWTECr1Rq0U4le0IHhUzkouVqFTqiXjN/flyjwTbk4cB1ldmirm qiw31MP1SC2S1Im8xEkD1WI7874817RLnPHNkBX3/LGrQu5mXhwmaBiOudAOcLZpe1g1 uip5OBI3tMab/Iza1EANMuLTOmqUJqjutn4+5NRY3oS6cBTVqE/pEo+39j/4ax1d1C6G BoKZII/r+RbWm2q2oRuLiqUHWHJ/7HENgnFeKOLkU4I+Tp8R+4thHUB8h72Ko2HvSyBy ke191bMx8f8en5IwbH7IwpPTvCQC22szao9kZnAkC48eEUs+PZOQ/ekpHUCvV25eOMD9 6KzA== X-Gm-Message-State: AOAM530JMsBViJWXsgb/indBKd78Phy/sxTXbQaDoLw2agWQe5mOYG2Y 7ffasDWCzbRkfiXbRljd1v/croguglx4PqS+ceE= X-Google-Smtp-Source: ABdhPJwAFAVbLnPdwlyXViCRkkrQ0mrz6fM0kUB4HBNSrK4/fpRZRDf3GmklaSohUs1b2oBx65OiBd+YyX2/iwrwcHs= X-Received: by 2002:a05:6512:3c82:b0:479:4df2:c58 with SMTP id h2-20020a0565123c8200b004794df20c58mr4410655lfv.276.1654569553191; Mon, 06 Jun 2022 19:39:13 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=owinebar@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 Jun 2022 06:42:11 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290841 Archived-At: --0000000000007965a605e0d27e9c Content-Type: text/plain; charset="UTF-8" On Mon, Jun 6, 2022 at 2:12 AM Stefan Monnier wrote: > > I am curious as to why the system doesn't just produce trampolines for > all > > the system calls AOT in a single module. > > Trampolines are needed for any native-compiled function which > gets redefined. We could try to build them eagerly when the > native-compiled function is compiled, and there could be various other > ways to handle this. There's room for improvement here, but the current > system works well enough for a first version. > While I was going over the archives for answers to my questions (following Eli's observation), I found these gems: https://lists.gnu.org/archive/html/emacs-devel/2021-02/msg00599.html https://lists.gnu.org/archive/html/emacs-devel/2021-02/msg00724.html I have the impression these ideas/concerns got lost in all the other work required to get the first release ready, but I could have missed a follow-up definitively knocking them down. Lynn --0000000000007965a605e0d27e9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Jun 6, 2022 at 2:12 AM Stefan Monnier <monnier@iro.umon= treal.ca> wrote:
> I am curious as to why the system doesn't just produce tra= mpolines for all
> the system calls AOT in a single module.

Trampolines ar= e needed for any native-compiled function which
gets redefined.=C2=A0 We= could try to build them eagerly when the
native-compiled function is co= mpiled, and there could be various other
ways to handle this.=C2=A0 Ther= e's room for improvement here, but the current
system works well eno= ugh for a first version.

While I= was going over the archives for answers to my questions (following Eli'= ;s=C2=A0
observation), I found these gems:

= I have the impression these ideas/concerns got lost in all the other work r= equired
to get the first release ready, but I could have missed a= follow-up definitively knocking
them down.

Lynn

--0000000000007965a605e0d27e9c--