patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Michael Raskin <7c6f434c@mail.ru>
To: hi@alyssa.is, devel@spectrum-os.org
Cc: jpo@vt.edu
Subject: [spectrum-devel] Re: [PATCH www] design: state subdirectories, not block devices
Date: Thu, 17 Oct 2019 14:09:40 +0200	[thread overview]
Message-ID: <E1iL4U3-0003so-RW.7c6f434c-mail-ru@smtp17.mail.ru> (raw)
In-Reply-To: <87k193bo2u.fsf@alyssa.is>

>> On the other hand, JSON can be parsed and written easily in all
>> languages we might want to use, even in Bash using jq. And we need some
>> code to setup the namespaces, but nsjail/firejail/bubblewrap are C code
>> so in the long term there would be some rewrite, probably in Rust??? And
>> having Nix preprocess arguments for Rust code sounds strange.
>
>Not sure about this -- I think it's something we'll have to experiment
>with.  Maybe structured configuration isn't necessary -- it's a pain to
>do in a CLI...

Sure, this is more of my ??last line of defense?? position. My preference
is definitely ??nice CLI whenever possible, with a fallback to complex
structure stuff when unavoidable, and this fallback can be used together
with the ncie CLI for the rest of the options??

>> And whatever you do, Nix evaluation is always just another layer before
>> running the actual code for setting up the isolated environments that 
>> still needs to interpret its arguments.
>>
>> Also, I might want to use some binary cache, but when I am offline Nix
>> builds wait for a long time for a reply from a binary cache. It's not so
>> bad if I am intentionally building something and can pass an empty value
>> for binary-caches via the command line, but doing it for each new 
>> command I execute sounds excessive.
>
>Yes, this is true, although I consider it a Nix bug.  I shouldn't have
>to remember to say --option substitute false for trivial offline
>rebuilds.

But there are cases where it would be hard for Nix to get right (the
??network won't become reachable?? part ??? the notion of triviality of the
build is obviously hopeless even with manual declaration)




  reply	other threads:[~2019-10-17 12:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16 20:28 [spectrum-devel] [PATCH www] design: state subdirectories, not block devices Alyssa Ross
2019-10-16 21:33 ` Michael Raskin
2019-10-16 23:15   ` [spectrum-devel] " Alyssa Ross
2019-10-17  7:47   ` Michael Raskin
2019-10-17 11:36     ` Alyssa Ross
2019-10-17 12:09     ` Michael Raskin [this message]
2019-10-18 18:51       ` Alyssa Ross
2019-10-18 18:56       ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1iL4U3-0003so-RW.7c6f434c-mail-ru@smtp17.mail.ru \
    --to=7c6f434c@mail.ru \
    --cc=devel@spectrum-os.org \
    --cc=hi@alyssa.is \
    --cc=jpo@vt.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).