From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oGMbDgJ70mOdGwEAbAwnHQ (envelope-from ) for ; Thu, 26 Jan 2023 14:07:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mEAoDgJ70mO8IQEA9RJhRA (envelope-from ) for ; Thu, 26 Jan 2023 14:07:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 16F073D4FA for ; Thu, 26 Jan 2023 14:07:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pL1xc-0007Qe-VN; Thu, 26 Jan 2023 08:06:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pL1xY-0007PK-U6; Thu, 26 Jan 2023 08:06:32 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pL1xX-0006fE-7O; Thu, 26 Jan 2023 08:06:32 -0500 Received: by mail-wm1-x330.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so3211984wmb.2; Thu, 26 Jan 2023 05:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=SHUMgLQOWz1Ry5oTY4ctq/UnFCqSd86RvjbO3JgWND8=; b=kAz1jcMd3+vakDGyPZ2786eKHiiyUDRXICFrMEMZxNoiXMKn4H77LdT9cTLWHu/ini bcYjnB2X3XO7oyvrGRxvJ4yMDXmwGX+PErZfwSbY1L2UPikvLlxm8gDz52bSDYsn4IMw RhglKJxTcDqduq18NoLPMgy4rRB/R2rJ0kCokKvohkiA1BEUpK2hwd9kVFsc0Y6yD8e4 QCcO97WZV4+Uq/rcA2Bxtm59ihsI+Wc+nThiYkbE7AlJ9JokTvUJ/USD8ymkiXL+vpbH j1o5DgUsVLrnNBwec5ncH63S27vlyfgAYD96QLxzlUR+sOcynBKY7u74/g7vq1hgGVrT iIEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SHUMgLQOWz1Ry5oTY4ctq/UnFCqSd86RvjbO3JgWND8=; b=6DGfR3+rlPcgMpe/2jUTHeAKaMpYLDYZDBR6ryM7ybcDaUdTID94LmsbWCcu7b9SRG BSEXZQdpnVZ/IiEHIRsM3nAqCXcgFSkgXycUDtEN50NyjnPrO0+n1W+g4dcthIuxfF8B B9ndzUEdmk6hxORpQ0OZ5510BSxNbRddqPNgFjxMa2SKwlNC5MwDOtfIN6jWWifSw0VJ RAXVb3xxIeGn1RkKCG6haA4MWmDAXOXZVnE/oGCCfnUmsdowV8qucXhhQ8azamfplP4U SFpmI4a6PqP9hrR4leHs9/kaOSs2fljTHmY5a2SOCG2NUAuagLEtlXDjsFvk7SXsQ5lq BigQ== X-Gm-Message-State: AFqh2kqFXiWCCmKdmBoopB7Ua1XZfu2DikJVTyE57Qx6f7SBiAd0C7aV 7bNJcftZBEPn3ho3bHS+tDrjIAbXIAY= X-Google-Smtp-Source: AMrXdXuLGQgmG3ONgqc72k4fowSLfGJNjPZGFCyBcoCwg9vI5WmkWPSz1yEWFv//pH7gOK2CAKaSMw== X-Received: by 2002:a05:600c:1c83:b0:3da:fe74:51ff with SMTP id k3-20020a05600c1c8300b003dafe7451ffmr7825172wms.2.1674738389196; Thu, 26 Jan 2023 05:06:29 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n6-20020a7bcbc6000000b003d237d60318sm1434011wmi.2.2023.01.26.05.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 05:06:28 -0800 (PST) From: Simon Tournier To: Guix Devel , Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-commits@gnu.org Subject: 01/02: packages: Adjust 'generate-package-cache' for Guile 3.0.9. In-Reply-To: <20230125172010.9D0A7C00A7F@vcs2.savannah.gnu.org> Date: Thu, 26 Jan 2023 12:59:51 +0100 Message-ID: <868rhpsdzc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674738434; a=rsa-sha256; cv=none; b=Gth735Swxhba9KfDF0NLk/QvZJBwu/FWd4HZ2aYr5T2u4Yn6qfCz7gIVVj7ZIGCI/flmHI yvqOjsqlUjPWa6fALlFh1ZIthla6HjUYps+xGy2ECf6yMq5Y3F8hDg46PxtUubjOQnhGLg MAiAxTodQHVHZ1CfEs8q3ogxJU29sSkI+CuXvRoFOBPUOXBAxmLS1YBwt2g0lCQ9wwXz+5 SwkPxXu6Bqmytj3xvzcSuLymzg5FoUpC1uy7LpRoCkiIkSyVDGkav1QoRHRQ4ADzNBa6Vy asO++OtPR1SyGiK5b1vRW0pCQoLsG/+yL2T6DSsNOq0fvxDrV5C2HyVLOXENgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674738434; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SHUMgLQOWz1Ry5oTY4ctq/UnFCqSd86RvjbO3JgWND8=; b=L1AtYxjpssvviWk5dx9uXJHOu4IPSsqhm/tjls/9PZanyCIYOj0Yt20aLSIJ+EpOaToWad hiYm8ukOksQRNshe5Dj5LJhKwEj+WMlkJLHGXTwwEWxP+IfL3lVnsZsSIGVOdGfCmzid7Y r3TcAu8yJGD6dkni9UskPeaiHiedZjisW5TwHGeNXtPge+thVg171/yvFCmnuQP6ka573d cgehpIngJWJGDQrhnZ9yMBzngEWbr56DEzGcvffLnRdi+ycPBDtmLfgtXAMg2Ua31GNqvD 28akLXiQ/aL/QtZcdQtGVG6swh7p9KgwymuKBRzx8wifm9AgPEd7tY9UU2B1MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kAz1jcMd; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.25 X-Spam-Score: -8.25 X-Migadu-Queue-Id: 16F073D4FA Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kAz1jcMd; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: YI8L9ZR9Pdnz Hi, Commit ba1b61a72d56600e7c6f9c490129e95ab9ba0c9e reads: --8<---------------cut here---------------start------------->8--- packages: Adjust 'generate-package-cache' for Guile 3.0.9. * gnu/packages.scm (generate-package-cache): Adjust for Guile 3.0.9. [...] @@ -442,10 +443,15 @@ (define exp (lambda (port) ;; Store the cache as a '.go' file. This makes loading fast and reduces ;; heap usage since some of the static data is directly mmapped. - (put-bytevector port - (compile `'(,@exp) - #:to 'bytecode - #:opts '(#:to-file? #t))))) + (match (compile `'(,@exp) + #:to 'bytecode + #:opts '(#:to-file? #t)) + ((? bytevector? bv) + (put-bytevector port bv)) + (proc + ;; In Guile 3.0.9, the linker can return a procedure instead of a + ;; bytevector. Adjust to that. + (proc port))))) cache-file) --8<---------------cut here---------------end--------------->8--- Cool! What are the performances about this change? Does it improve the generation of the cache? Faster or slower? Or the resulting cache, is it larger or smaller? Cheers, simon