From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yvRjMeYGF2B1OwAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 19:37:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mDkBLeYGF2AfXwAAbx9fmQ (envelope-from ) for ; Sun, 31 Jan 2021 19:37:10 +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 52416940355 for ; Sun, 31 Jan 2021 19:37:10 +0000 (UTC) Received: from localhost ([::1]:51674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6IWz-0004OP-64 for larch@yhetil.org; Sun, 31 Jan 2021 14:37:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6IWs-0004OG-I2 for guix-patches@gnu.org; Sun, 31 Jan 2021 14:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46519) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6IWs-0002rV-Ao for guix-patches@gnu.org; Sun, 31 Jan 2021 14:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6IWs-00046j-71 for guix-patches@gnu.org; Sun, 31 Jan 2021 14:37: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: Sun, 31 Jan 2021 19:37: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.161212177015726 (code B ref 45972); Sun, 31 Jan 2021 19:37:02 +0000 Received: (at 45972) by debbugs.gnu.org; 31 Jan 2021 19:36:10 +0000 Received: from localhost ([127.0.0.1]:58064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6IW0-00045Y-H6 for submit@debbugs.gnu.org; Sun, 31 Jan 2021 14:36:10 -0500 Received: from mail-wm1-f53.google.com ([209.85.128.53]:51106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6IVy-000453-8b for 45972@debbugs.gnu.org; Sun, 31 Jan 2021 14:36:07 -0500 Received: by mail-wm1-f53.google.com with SMTP id 190so10860752wmz.0 for <45972@debbugs.gnu.org>; Sun, 31 Jan 2021 11:36: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=FH7MqABuc3g2BCfjzLecOWACnjZRbK5kQu0EcSiXznI=; b=pfa0Mr1+hz8Exp5j2CW2vjq/s7Owq9lSWCTaqyLQvRL0lAX6qkYX7KmoARb0B7Elc1 2boi3NnNKFUiRcgMcdrEfAPIILQOsHck0pvPCT9VLx89MjiIa8SHmOYhBVeZehq8oUY4 BiEpABT+mTlKQs6IWHZTbl29BbYJiXkqzHNzV5b3VTl51+VJjWV3d5WcbX6zXNwS4A27 qA8+1/GY+R1OVrIOf0g/TVdYjU1fBOS9+aXj0FeAuchIpMslDhzY17OKwJVgMv+F4i9c B/j/tZD6b4CwMtHTScf+aa0M2/NdSuzu4acbTiW9FczyBCh7XedPkPHlqt+bKYKUJNVX bFLg== 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=FH7MqABuc3g2BCfjzLecOWACnjZRbK5kQu0EcSiXznI=; b=MnIB2p/WHyWeTRw89WDWz906R1+FJKMl12OGX5KOCuPFef6SbUF2052AkEw7Rln7TP r99w+VUGlpbrTLa3+spbRWYqVoSA3QfD3QsWqCzYPYlM9zj2wz+TCSOUkq+MANjXnncq PuLgrKrvPyXEE+lbCTn84dgPDkuXOWeKVuJX5kibLB9uB+FkalrroAyx1YNHFBuUmDeq SVetusPNYxo7haC8MNz8g7aks9I8oJNHkI+1zksVarni5vHeWFb2rWy6KTvEbihderQr D0rbjQc+Empn7cG1zfdDOKAzFerOFEVBJLTCbLYSduXHZyHYMx+49JR+LekNcw/x7gAS 69ow== X-Gm-Message-State: AOAM533pHjqMROsuqoEB9vmocJcwxVow8/ENeKPiSVxxRm0G08ZsYoVU kH47O3vFXnGI4vLWtEF+GjI7FVEUseE= X-Google-Smtp-Source: ABdhPJzewu0W3AhQy404UF5sabLCOb285MqJ+ucQRMEVGvr+eCYMqneoGiLUd/5rbU6hxk34h4JnCw== X-Received: by 2002:a1c:b643:: with SMTP id g64mr11535084wmf.89.1612121760337; Sun, 31 Jan 2021 11:36:00 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id w4sm18377637wmc.13.2021.01.31.11.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 11:35:59 -0800 (PST) From: zimoun In-Reply-To: <8735yi9o9x.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> Date: Sun, 31 Jan 2021 20:35:07 +0100 Message-ID: <86y2g8ew7o.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=pfa0Mr1+; 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: 52416940355 X-Spam-Score: -0.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: umCSdFnGRZRs Hi, On Sat, 30 Jan 2021 at 21:13, Nicol=C3=B2 Balzarotti = wrote: > zimoun writes: >>> (invoke-julia "using Pkg; Pkg.TOML.parsefile("Project.toml")["name"] |>= println") >> >> With a bit more glue, could this be transformed into something like >> =E2=80=9Cjulia->guix-package=E2=80=9D? And so have a Julia package impo= rter, even if it >> fails for some cases. > > Well, if you mean "Can we use Pkg.jl to generate package definitions for > us?" the answer is "probably yes, but I never investigated this". That > line uses just Julia Base TOML.jl, which for some reason is defined > inside module Pkg.jl (and it's not top-level). 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. 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. :-) > If you instead meant "Can we have a Julia importer?" some time ago I > wrote one in Julia, I've not used it in the last year, but it did work > quite well back then. I attach it here for reference. Fun! One thing is how to deal with =E2=80=99Manifest.toml=E2=80=99. And pre-com= piled 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. Cheers, simon