all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Follow-up on julia import script
@ 2023-02-24 16:35 Nicolas Graves via Development of GNU Guix and the GNU System distribution.
  2023-02-24 18:21 ` Simon Tournier
  2023-03-15 12:43 ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
  0 siblings, 2 replies; 14+ messages in thread
From: Nicolas Graves via Development of GNU Guix and the GNU System distribution. @ 2023-02-24 16:35 UTC (permalink / raw)
  To: guix-devel
  Cc: zimoun, Jean-Baptiste Volatier, Nicolò Balzarotti,
	Ludovic Courtès


Hi all,

I asked a few questions today on the IRC channel about a julia import
script.

Just to summarize and be able to follow the subject later:
- I was looking for a way to write a julia import script base on
information in julia general package repository, which can be quite
simple if we have a functional guile toml/ini parser included (I
couldn't get my parser to work properly, but that might be fixable).

- jvb shared his julia importer code here : https://gitlab.com/vjb/guix.jl

- Apparently Nicolo also has a similer code.

- jvb and zimoun defended that the Julia ecosystem evolves so quickly
  that writing a manual functional julia import script might be
  difficult to maintain, in particular because Julia uses an advanced
  resolver for its compatibilities.

- My approach was a bit different but indeed didn't have the ambition to
  resolve compatibilities between packages (I need to check that but the
  check or the build phase should fail it packages are incompatible,
  thus when trying to build the imported package, we should now which
  packages should be updated if necessary). If we only restrain imports
  to the general package repository, then the task becomes much more
  simple :
  - from the package name, you can generate the uri of the following
  files
  - parse Project.toml to get source information
  - parse Versions.toml to get source hash information
  - parse Deps.toml to get information about dependencies
  Well there is no package description or such, but I think it makes a
  decent start for writing package information. These are all unnested
  toml/ini files, so if we manage to parse them with a simple function,
  I guess we could have such a small / limited importer.
  I do have the very beginning of a script here, but couldn't finish the
  parser :
  https://paste.sr.ht/~ngraves/bbeb74a720e717319344ee3c3e6ea477b378068f/manage

- Maybe we could combine both by
  - using this limited importer if julia is not in the PATH
  - using a proper guix.jl importer if julia and the importer are present in the PATH
  or something like that ?

I do not have a strong opinion about which option is more suitable, but
would greatly profit from having a functional and supported julia import
script. Sorry for inaccuracies if there are some, I do this from memory
mostly.

-- 
Best regards,
Nicolas Graves


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-03-18 11:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 16:35 Follow-up on julia import script Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-02-24 18:21 ` Simon Tournier
2023-02-25 10:11   ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-02-25 12:19     ` Simon Tournier
2023-02-25 18:23       ` Ludovic Courtès
2023-02-27 10:14         ` Simon Tournier
2023-02-27 11:37           ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-02-27 13:46             ` Simon Tournier
2023-02-27 18:01               ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-02-28  9:25                 ` Simon Tournier
2023-03-06 11:23             ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-03-07 11:52               ` Simon Tournier
2023-03-15 12:43 ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.
2023-03-18 11:17   ` Nicolas Graves via Development of GNU Guix and the GNU System distribution.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.