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 Hh6mEH6uF2AUXAAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 07:32:14 +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 q2P5C36uF2B4EgAA1q6Kng (envelope-from ) for ; Mon, 01 Feb 2021 07:32:14 +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 CC5E29403A3 for ; Mon, 1 Feb 2021 07:32:13 +0000 (UTC) Received: from localhost ([::1]:43284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6Tgy-00013O-Oo for larch@yhetil.org; Mon, 01 Feb 2021 02:32:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Tgq-00013F-MU for guix-patches@gnu.org; Mon, 01 Feb 2021 02:32:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Tgo-0002LB-UU for guix-patches@gnu.org; Mon, 01 Feb 2021 02:32:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6Tgo-0006sP-H6 for guix-patches@gnu.org; Mon, 01 Feb 2021 02:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45972] Julia importer? Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Feb 2021 07:32: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: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 45972-submit@debbugs.gnu.org id=B45972.161216467126345 (code B ref 45972); Mon, 01 Feb 2021 07:32:02 +0000 Received: (at 45972) by debbugs.gnu.org; 1 Feb 2021 07:31:11 +0000 Received: from localhost ([127.0.0.1]:58624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Tfz-0006qr-0W for submit@debbugs.gnu.org; Mon, 01 Feb 2021 02:31:11 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:34858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Tfu-0006qG-Ay for 45972@debbugs.gnu.org; Mon, 01 Feb 2021 02:31:09 -0500 Received: by mail-wr1-f54.google.com with SMTP id l12so15417835wry.2 for <45972@debbugs.gnu.org>; Sun, 31 Jan 2021 23:31:06 -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=4QjUm/pyfNMHrwLZzbRUykuOqY/XcY+jT7qhuk7LV2M=; b=CERmkvYKXKOQH+HEw2lhE0j1k5TOWxr57mnNU5YmIZaxjZQ5NP9p9k9r63/vExf7gs yRnwUaNjmj+TccAnak22HoMLC8m3qIa4gN5BKY8VB/IOYiPWH2o14X6+IwvEYLvX/Q1Z aH11tz/dKtvx3yVA70X9WzIFjHuvg84lcJxfciEXvs4TADi/3vJNfL8ib3ty3PpsEzK1 8oN2YnWZec+79z6RfBOqZGZ3RA75a4r1hNBygKqiojsoVTPwi5x3FCS2+yXvl+idwTom MOjrbXqT3IZpwa65k6NS/kJISbWIFwqrRHlJ3b5VoV/jIHQts2aQS5W8kg34IEnwPv40 USwQ== 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=4QjUm/pyfNMHrwLZzbRUykuOqY/XcY+jT7qhuk7LV2M=; b=atPn0Ox4/lyqaQJgC0ygw1wj87p3km6m1W7ekOCBcD0tyfpWEJFAqGjK+TFC/UNCec RUAmrRyR2V5WTTrNJDjMv2I/BC+kAD/4BzSyj7V650zKiSLk1REfLuigjjOATmP6tSO0 aLeeN+wo5oYgIF1Gy6vkG/KswQgZMVbR+MhMtA9CjKFqWLeAKONXLc1kS4qZS9bCC36H FVWXRVXNxL9ny+c6HLcbRWIyFKLd6w8bJt6RwRyN3R4YQbZJ32Maq3/iBMUpT7tYjxbH CXMxi6gb7rrX4c12loi8glD89Ja/lCggrffsmDkFNyodZGlGnT0a7km6BKF/+wREbegh Ywqw== X-Gm-Message-State: AOAM532JIfOdvStu3obB3//9vbllGlhMq/q3HIjMQI1vKmnSeOnWObwV bk+6d80o5N1Sv0ze5dXC1thhc1cgfyY= X-Google-Smtp-Source: ABdhPJxVb4svog+2MGJCzDMPrz2LPisNQn7LMMdcNl6m8M8G5L/McgcqzNpt8j6DwmLWfJof2TWxxA== X-Received: by 2002:a05:6000:1841:: with SMTP id c1mr16286302wri.278.1612164660327; Sun, 31 Jan 2021 23:31:00 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id b7sm25252118wru.33.2021.01.31.23.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 23:30:59 -0800 (PST) From: zimoun In-Reply-To: <87lfc8yizu.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> 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> <87lfc8yizu.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Date: Mon, 01 Feb 2021 08:22:33 +0100 Message-ID: <86sg6gdzgm.fsf@gmail.com> 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=CERmkvYK; 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: CC5E29403A3 X-Spam-Score: -0.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: w6PsrtpCvaXp Hi, On Sun, 31 Jan 2021 at 21:00, Nicol=C3=B2 Balzarotti = wrote: > 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 requir= ed. [...] > I'm just ignoring Manifest.toml, which should be the same as venv in the > python world. Sorry, you have right. I have misremembered an old presentation about Pkg3 by Stefan Karpinski. Well, thanks for the pointers. And I gave a look at the Pkg doc. ;-) Once a PEG parser for TOML files is written, all the information is in the Registry (by default this General repository), recursively. However, the =E2=80=9Cresolve=E2=80=9D part is not straightforward, IMHO. = It is what confused me in my previous email and I thought was =E2=80=9CManifest.toml= =E2=80=9D. Anyway. Instead of reinventing the wheel and reimplement Pkg.jl in Guix, maybe it is worth to have Julia code as you did that extracts the relevant information and then generates the relevant Guix packages. However, it should mean that =E2=80=9Cguix import julia=E2=80=9D requires to have the p= ackage julia implicitly used. Why not. :-) Cheers, simon