GNU bug report logs -
#36668
[PATCH 0/1] Add 'eval/container'
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Mon, 15 Jul 2019 14:22:03 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Ludo,
On Mon, Jul 15, 2019 at 10:22 AM Ludovic Courtès <ludo <at> gnu.org> wrote:
>
> Hello Guix!
>
> This adds ‘eval/container’, which can be used to implement things that
> are almost derivation (pure computational processes), but not quite:
> processes that produce side effects, that need to access the daemon,
> or that need to talk over the network.
>
> It doesn’t have any users currently. Guix-Jupyter-Kernel will probably
> use it (to spawn proxied kernels in isolated environments), and I think
> Ricardo had a use case for it in GWL too.
>
> What do people think?
This is great. Love to see 'call-with-container' used for new things.
> I wonder if we should target ‘run-in-container’ instead of
> ‘call-with-container’, or maybe both.
I am behind the times. What is special about 'run-in-container'?
> It’s also a bit troubling
> that ‘eval/container’ returns an exit status instead of the evaluation
> result, but I think it has to be this way, more or less.
I haven't looked at your code, but have you considered supporting
return values that can be serialized via 'write' and then using 'read'
on the host side? (Hmm, I wonder how exceptions could be passed from
container to host.)
Anyway, nice work!
- Dave
This bug report was last modified 5 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.