From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 16 06:38:12 2023 Received: (at 62153) by debbugs.gnu.org; 16 Mar 2023 10:38:12 +0000 Received: from localhost ([127.0.0.1]:41272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pckzr-0006zS-Ub for submit@debbugs.gnu.org; Thu, 16 Mar 2023 06:38:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pckzp-0006zF-IF for 62153@debbugs.gnu.org; Thu, 16 Mar 2023 06:38:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pckzj-0003y1-64; Thu, 16 Mar 2023 06:38:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=lDWz9QBW4/evXQhdWCCt4LEX9vNYZy4rDnUceWThBqs=; b=TSIjYALGSkI+Yy2ZsTgf JFhnV9CJSGgEBKlAi9G9D/7vX8JHfKq8uN4c85mRqbCdOch4JSm8SiUtYmuZdGPm7GWzysb3EYwX2 Kv3rbLpIWJfhLF3IyNMOC40igIcDI1f9RJcIsprGhAwwaVgq9OdljjJ9ja2R3S4ZGF6c8HBqHHObA 2veDaaZwtFm2D1wDqMVDtePq74GZwf2yw7G2F+aYhsOukfgh1Fdwt+oeEM/LCjqZfKSh5MPSbJfyF hwYwxP7fX2pLsNKXXyb2agGi0d4tA/yrNK7fmNRm42q5hS79x0EynDLCrfQVSGwFXCzLdNpAtnQgB Kf9n0nguJGXctA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pckzh-0007SY-EL; Thu, 16 Mar 2023 06:38:02 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: [bug#62153] [PATCH 1/2] guix: docker: Build layered image. References: <20230313003012.14325-1-go.wigust@gmail.com> <20230313003310.17129-1-go.wigust@gmail.com> <87r0tsk85r.fsf@gmail.com> <87bkkw2w7z.fsf@gmail.com> <86cz5b923c.fsf@gmail.com> <874jqnzo8a.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Pissenlit 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 Date: Thu, 16 Mar 2023 11:37:58 +0100 In-Reply-To: <874jqnzo8a.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 14 Mar 2023 10:15:49 +0100") Message-ID: <877cvhhth5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62153 Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Oleg Pykhalov , Christopher Baines , Mathieu Othacehe , 62153@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ricardo Wurmus skribis: > Simon Tournier writes: > >>>> Instead of Python, would it possible to implement in Guile? I mean, >>>> does Python have something that is missing in Guile? >>>> >>>> The facility for manipulating Tar? Something else? >>> >>> I think nothing else. As I understand Python implemented Tar inside the >>> language itself in 2500 lines of code by manipulating binary data. >>> >>> /gnu/store/...-python-3.9.9/lib/python3.9/tarfile.py >>> >>> Technically it's probably possible to use tar utility with --append flag >>> instead of opening a new file and streaming to it as the Python script >>> does. To be honest I would like not to write it in this way if the >>> Python script does not block current patch for merge. >> >> Ok, thanks for explaining. >> >>> Also I don't see myself writing Tar implementation in Guile, yet. ;-) >> >> Maybe not reimplementing Tar in Guile, maybe just enough for working. >> Or maybe some Guile bindings. Or maybe something is already around for >> the bootstrap story. > > gash-utils has (gash ustar); it=E2=80=99s about 620 lines of code. Disarchive also has a tar implementation. No excuse! :-) Oleg, could you check which of these would satisfy your needs? I had a plan to improve the tar implementation in Gash-Utils, perhaps it=E2=80=99s a good time to get my act together. Thanks, Ludo=E2=80=99.