From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gK0mAZIMF2CkaQAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 20:01:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UCmUOJEMF2CWOgAA1q6Kng (envelope-from ) for ; Sun, 31 Jan 2021 20:01:21 +0000 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 A99139404C7 for ; Sun, 31 Jan 2021 20:01:21 +0000 (UTC) Received: from localhost ([::1]:39004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6IuO-0004Tr-E0 for larch@yhetil.org; Sun, 31 Jan 2021 15:01:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Iu6-0004T5-Ku for guix-patches@gnu.org; Sun, 31 Jan 2021 15:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Iu6-0004Zk-AQ for guix-patches@gnu.org; Sun, 31 Jan 2021 15:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6Iu6-0004hL-3G for guix-patches@gnu.org; Sun, 31 Jan 2021 15:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45972] Julia importer? Resent-From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 31 Jan 2021 20:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45972 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 45972-submit@debbugs.gnu.org id=B45972.161212323518020 (code B ref 45972); Sun, 31 Jan 2021 20:01:02 +0000 Received: (at 45972) by debbugs.gnu.org; 31 Jan 2021 20:00:35 +0000 Received: from localhost ([127.0.0.1]:58096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Itd-0004gY-EK for submit@debbugs.gnu.org; Sun, 31 Jan 2021 15:00:35 -0500 Received: from mail-wm1-f54.google.com ([209.85.128.54]:52518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6ItZ-0004gJ-Gu for 45972@debbugs.gnu.org; Sun, 31 Jan 2021 15:00:32 -0500 Received: by mail-wm1-f54.google.com with SMTP id o5so1229135wmq.2 for <45972@debbugs.gnu.org>; Sun, 31 Jan 2021 12:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Bkfhb2NcRLc+LqpEJuczXeWWEzRooLIF2zrJnw2ETkI=; b=uNbgsqXsG9+ZnK/kSuovccJtZvxav++C1MzYTbealPhdpCyJ1i8JrU0drGWc9A5+EH XXP9FR+98Eb4YyG47VnyqEUVxBjHE70Lco4MKbixfj9VcHaBnWOEdkZoYyL0DrvZyR3K SjnsLeeZkkrAmi/uKewfwIyzij07bucCW6OkkmqHH66jcxKXkrLU9a4RS0sOqVMIenLS pbrKPvBf+8HTEhNPOevyapkcMWE6bJ2LOONoTfUlHAiKLxBkUjk5JOrRxPy1aekcl5jc uiOtk+CFbjo2Yg2Q9CkXgZFG+9EDkkp0a0LjAQRUFGT5Zn3WwtM3jZFHbfsyoHC3FPKJ L+RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Bkfhb2NcRLc+LqpEJuczXeWWEzRooLIF2zrJnw2ETkI=; b=Th86VG24/JnFeKs5YE/+pA3uAoIY2jM7Mq1CdkFa1HKGnQ+I+YlpDkT0nbotuCpgHF N4XqB/yblgwNjc8ZWuazlPVBhglziXTeBEhZlz2rf5YftoQkKCsntDWtUXFsSg+j5EGU 4MgoYzWoHv6dw2oeEKEQs/+lUVPYjxPscPV7QRzNOj9URIeL+6s2m7RITnenqHKUmBZT TcYU5/s+9zdrSV880nAs5Pm56BKdiu/+W0kc+hk2Rmh6XXA8pb1BEvo+yfQfjHMM+bu7 Fm307b4ufHfSZngFQhAq+yAk72pZOLqtW9gj00o/OIdo2M53+Nnbw4FqXJvIoD7ZN3Pz KJWw== X-Gm-Message-State: AOAM533Av4KlpdDZ6J68VmfduMjPJIi5qYe01uQAgLq+/LDgXc4wzBq/ JU1hEBDNH+pxoPhHD489TF6J1W/TNlQ= X-Google-Smtp-Source: ABdhPJwMw69g4hl+dmgwn7intkqm5XgvbHLikSk+4XdbHerE+RTNGouRQ9ZSN55VqwZ20+tTUg5x3A== X-Received: by 2002:a05:600c:358e:: with SMTP id p14mr11928510wmq.73.1612123223380; Sun, 31 Jan 2021 12:00:23 -0800 (PST) Received: from guixSD (host-87-4-165-57.retail.telecomitalia.it. [87.4.165.57]) by smtp.gmail.com with ESMTPSA id o12sm24309343wrx.82.2021.01.31.12.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 12:00:22 -0800 (PST) From: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti In-Reply-To: <86y2g8ew7o.fsf@gmail.com> References: <87ft2xzu1g.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <87wnvzwfgu.fsf@gnu.org> <87lfcfcmf3.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <87mtwut34z.fsf@gnu.org> <87czxpdhsv.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <86pn1mfpp1.fsf@gmail.com> <8735yi9o9x.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> <86y2g8ew7o.fsf@gmail.com> Date: Sun, 31 Jan 2021 21:00:21 +0100 Message-ID: <87lfc8yizu.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: 45972@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=uNbgsqXs; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A99139404C7 X-Spam-Score: -0.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: nBx6jYLYcV3y > I mean the correct way is to write a TOML parser, probably using PEG. > As it is done with the other importers. > It is a piece of work. Not especially hard but it could take some time. That wouldn't be too hard, but also it would not be enough. As you can see in [fn:1], there's just the list of dependencies, but no info on how to get them, so parsing the Julia General Registry [fn:2] is still required. > So instead, the question is, using a bit of Julia glue and Guile glue, > is it possible to extract the necessary information to have a Guix > package? > > Well, maybe these glue code is the same as writing a TOML parser. :-) This might be feasible, but as I said above, unfortunately I don't think that a TOML parser would be enough. But asking "Pkg3" to resolve dependencies for us, yes, this makes sense. > One thing is how to deal with =E2=80=99Manifest.toml=E2=80=99. And pre-c= ompiled > substitutes do not make too much sense in the Julia world. Well, I do > not know how these Manifest.toml overlap with how Guix works. WDYM? Julia uses .ji files (which are the analogoues of .go for guile and .pyc for python), if this is what you are referring to. I'm just ignoring Manifest.toml, which should be the same as venv in the python world. [fn:1] https://github.com/JuliaLang/TOML.jl/blob/master/Project.toml [fn:2] https://github.com/JuliaRegistries/General