From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: Re: SHA256 performance with Guile 2.2 vs. Guile 3.0 Date: Tue, 07 Jan 2020 23:59:49 +0100 Message-ID: <878smihnyy.fsf@gnu.org> References: <874kxcnlh8.fsf@inria.fr> <87sgkwm4uv.fsf@gnu.org> <871rse1bes.fsf@pobox.com> <875zhoex2c.fsf@gnu.org> <87mub0s6pw.fsf@pobox.com> <87pnfvjzhb.fsf@gnu.org> <87woa33ppp.fsf@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="225491"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Guile Devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jan 08 00:00:03 2020 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioxpR-000sxw-GT for guile-devel@m.gmane.org; Wed, 08 Jan 2020 00:00:01 +0100 Original-Received: from localhost ([::1]:56820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioxpQ-0003z2-CZ for guile-devel@m.gmane.org; Tue, 07 Jan 2020 18:00:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44710) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioxpK-0003yf-8d for guile-devel@gnu.org; Tue, 07 Jan 2020 17:59:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ioxpI-0007NH-M6; Tue, 07 Jan 2020 17:59:52 -0500 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48626 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioxpH-0004Yh-Gh; Tue, 07 Jan 2020 17:59:52 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 =?utf-8?Q?Niv=C3=B4se?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 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-pc-linux-gnu In-Reply-To: <87woa33ppp.fsf@pobox.com> (Andy Wingo's message of "Tue, 07 Jan 2020 22:45:54 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.lisp.guile.devel:20243 Archived-At: Andy Wingo skribis: > On Tue 07 Jan 2020 12:08, Ludovic Court=C3=A8s writes: > >> Andy Wingo skribis: >> >>> Concretely I would add a little part of the compiler to the Tree-IL >>> phase to serialize a bytecode for the "small" definitions in the module, >>> for declarative modules, both public and private (because public >>> definitions may alias private definitions). This would be stored as a >>> bytevector in an additional field of the module, and the program being >>> compiled would be transformed to initialize the "lto" field (placeholder >>> name) of the module, so that once the compiled module is loaded, we have >>> the inlinable bindings. I think this can be done compatibly. >> >> OK, sounds great. What are your thoughts about versioning that wire >> Tree-IL representation? > > It would be a little bytecode language, with its own versioning > considerations. It would need to have a translation to and from > Tree-IL, though not necessarily lossless. It would change only in > ABI-compatible ways, using the bytecode version of the Guile doing the > compilation as a proxy for what is OK to support. I see, that makes a lot of sense to me. Thanks for explaining! Ludo=E2=80=99.