From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mChgL0MzNmIePQAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 20:47:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gL4wLEMzNmJFZQEAauVa8A (envelope-from ) for ; Sat, 19 Mar 2022 20:47:15 +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 74877A14B for ; Sat, 19 Mar 2022 20:47:15 +0100 (CET) Received: from localhost ([::1]:39508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVf2g-0007Kc-6Q for larch@yhetil.org; Sat, 19 Mar 2022 15:47:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVf2U-0007KS-BA for guix-patches@gnu.org; Sat, 19 Mar 2022 15:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVf2U-0007h3-1v for guix-patches@gnu.org; Sat, 19 Mar 2022 15:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVf2T-0002Lm-R6 for guix-patches@gnu.org; Sat, 19 Mar 2022 15:47:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#53765] [PATCH v2 05/18] gnu: Add clojure-core-memoize. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Mar 2022 19:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53765 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Reily Siegel , 53765@debbugs.gnu.org Received: via spool by 53765-submit@debbugs.gnu.org id=B53765.16477191908989 (code B ref 53765); Sat, 19 Mar 2022 19:47:01 +0000 Received: (at 53765) by debbugs.gnu.org; 19 Mar 2022 19:46:30 +0000 Received: from localhost ([127.0.0.1]:60619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVf1y-0002Kv-5h for submit@debbugs.gnu.org; Sat, 19 Mar 2022 15:46:30 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:57876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVf1x-0002Ko-0O for 53765@debbugs.gnu.org; Sat, 19 Mar 2022 15:46:29 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id 8KmT2700J4UW6Th06KmT6q; Sat, 19 Mar 2022 20:46:28 +0100 Message-ID: <527643d9fb0884f2f21478f562326fceb0e061c9.camel@telenet.be> From: Maxime Devos Date: Sat, 19 Mar 2022 20:46:23 +0100 In-Reply-To: <87czihdamo.fsf@reilysiegel.com> References: <877d8udq44.fsf@reilysiegel.com> <87ilsbd476.fsf@reilysiegel.com> <87czihdamo.fsf@reilysiegel.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-cNiXRkrv6AaoAusC+kpT" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647719188; bh=MdiENfqdHt3oJVdpGttsCZ5wPAw956exVUhDURXuR0o=; h=Subject:From:To:Date:In-Reply-To:References; b=bv2PHkyFhINqqdlqkXJ4lAJoQM+4gUGGUktUCuQq5mKHFBAztJBUhB2gMIaKvLYJN N4PrFD67XNBxaAjhB5iSl5KVCf/gTKhuaHKggDrZrSBDxy+mpfysUitvy/YJU2oJ0/ E1Nprq02OHxh5BJA72l0O4DokA7UgMehY+hGoYSz0XGxHwkSi7ozPDh0CxHWfMa5Y/ mmEq49s3+JrYWH6agox/E4HCDpx5UZcuYJhCz8yyaIZGiNwVwFfYGcx7+8Mb1daNnm dAg1V1keaDRZJb32d/c8W09v8+Z4BLLDMcvU1s+P1stRqZGyE+sxfV9hw5MtG6Ts50 np+jW/v6d1NNg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647719235; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=MdiENfqdHt3oJVdpGttsCZ5wPAw956exVUhDURXuR0o=; b=D+uMoGiIJSwCVfHYoMXrxunvCVligTfPUu2WxQO2XUZWZYVMizM7JV/Uy1e4Ol1zVUyq4v xb2lj3Jh8vz2dvLVkoqdfrRdqdF3OGhtWWnVnxqPsCgL3tkgZDaO0doOqaSIz2GQO1izy3 1rVCowO4jJfHrVFwvjZRTlCNIBaeQw6Z2mxHESb7LPpcHE4TX2PyPPPrLcGaPv5u6Xzyu4 GhB6pdlE3729oFW0X4yQUiZV6MiO0seZyuHkesSr8MTc44d699mOzCmdNPAVNcaDQbgbK8 7B7P6BOZLN8NKoUIcWn4Og5cn8pk3x4O6+nj11gzmbz3ng1b7tIV1R2P3fiYwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647719235; a=rsa-sha256; cv=none; b=RgaY0AI9qdyCObKfeS71SACn8uA5S3vLxe71MpxKYtjlya3dw8UXQu2qgXiTdp3licsGIR 9bFl5kThkSKHlCTFIOZaLPk55TpAEq2EARZIYn8PuG/dKiBsJspBEMPUykyxjKLrtKhjlC prLeuKSPYocCaD4bMrj95KDB73i8EAJN/N29EdPMPVuEnxj0bh4ONpnymLVuWdqUd3Y6hq NQwcmFnv+5OPbky2yKeNw8uN7NPDXmR7CChxDCo42sTAdt8fpfQAuHS84DcQwLbW3EjwNT +4zbyuqtkU5Ra7VV86MBYpKp8DaeG8wgOwpY8FJQEDHJ9oLOeDM5b2ZiGuwXXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=bv2PHkyF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=bv2PHkyF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 74877A14B X-Spam-Score: 3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: sZD6XRHdYZLP --=-cNiXRkrv6AaoAusC+kpT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Reily Siegel schreef op za 19-03-2022 om 20:07 [+0100]: > When I first started running into these issues, I reached out to Clojure > maintainers on the Clojurians Slack, and the response was that AOT > compilation is only meant for complete applications to reduce startup > latency, not individual libraries. That seems backwards to me. Wouldn't AOTing compiling individual libraries be more efficient than AOTing individual applications? More concretely: Suppose app A=C2=A0and B consists of a single source file A.clj and B.clj respectively, and each have library C (with C.clj) as dependency. Then, what Guix currently does, is AOT'ing C.lj when building C, then AOT'ing A.clj when building A and AOT'ing B when building B. In total, AOT'ing a file happens thrice here. What seems to be implied here, is that the AOT'ing needs to be delayed to A and B. In this case, C.clj would be AOT'd twice: once for A, and once for B. In total, AOT'ing a file happens four times here. As such, wouldn't AOT'ing the applications instead of the libraries be less efficient? An additional problem here is grafting. If the AOT'ing was delayed to the application packages, then the libraries cannot be grafted, for the same reason that (C, C++, Go, ...) static libraries cannot be grafted. Greetings, Maxime. --=-cNiXRkrv6AaoAusC+kpT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjYzDxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kGkAP94H7PlMRzZR0wYfTGotqcYSeu1 prsNfLG9OHrO/yJvygEAxCFb+uMmKB0fn536RYWQXRAcyzrXAoKKr4rbtlq0+wE= =OC0d -----END PGP SIGNATURE----- --=-cNiXRkrv6AaoAusC+kpT--