GNU bug report logs -
#36162
[PATCH 0/4] Add 'remote-eval'
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Mon, 10 Jun 2019 21:10:01 UTC
Severity: normal
Tags: fixed, patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello Guix!
This patch series add ‘remote-eval’, which takes a gexp, remotely deploys
everything the gexp refers to, and evaluates it (see
<https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00127.html> for
the initial discussion.) So you can have gexps like:
#~(execl #$(file-append ffmpeg "/bin/ffmpeg") …)
When you evaluate it, this specific ‘ffmpeg’ will be deployed over there.
Another example is:
(with-imported-modules (source-module-closure '((gnu services herd)))
#~(begin
(use-modules (gnu services herd))
(map live-service-provision (current-services))))
This gexp, when evaluated remotely, will use your very own (gnu services
herd) module and the corresponding Guile (so if you’re on Guile 3 and the
remote is still on Guile 2, that’s fine: Guile 3 will first be deployed
there.)
‘remote-eval’ allows you to build locally and send the build results,
or to send the derivations and build remotely.
The use case is for code that deals with state or has a side effect.
Otherwise you’d just use a derivation and offload it.
There are no tests for ‘remote-eval’ currently. It would need a VM
with access to the store, as Jakob explained on guix-devel.
Thoughts?
Ludo’.
Ludovic Courtès (4):
gexp: Add 'lower-gexp' and express 'gexp->derivation' in terms of it.
Add (guix repl).
inferior: Add 'read-repl-response'.
Add (guix remote).
Makefile.am | 2 +
guix/gexp.scm | 238 +++++++++++++++++++++++++++++++-----------
guix/inferior.scm | 9 +-
guix/remote.scm | 130 +++++++++++++++++++++++
guix/repl.scm | 86 +++++++++++++++
guix/scripts/repl.scm | 56 +---------
tests/gexp.scm | 37 +++++++
7 files changed, 444 insertions(+), 114 deletions(-)
create mode 100644 guix/remote.scm
create mode 100644 guix/repl.scm
--
2.21.0
This bug report was last modified 6 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.