unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: guix-devel@gnu.org
Subject: Re: Composing service definitions (and maybe fmt)
Date: Wed, 20 Jan 2016 23:13:11 +0100	[thread overview]
Message-ID: <87si1rx5l4.fsf@gnu.org> (raw)
In-Reply-To: <87vb6ogmqw.fsf@dustycloud.org> (Christopher Allan Webber's message of "Wed, 20 Jan 2016 09:49:57 -0800")

Christopher Allan Webber <cwebber@dustycloud.org> skribis:

> Ludo, you've actually done quite a bit of skribe-style-stuff work! :)
> Do you think this is a good idea?  And what would be the right approach?
> Depending on guile-reader may be a bit heavy for Guix (?), though maybe
> writing a reader macro to do string quasiquoting will not be hard anyway.

I think we don’t want to depend on guile-reader, and I’m rather against
reader macros, except on rare occasions like #' and #~, because they
could interfere with other extensions that people use.

The Skribe syntax is just literal-text-by-default, where

  [foo bar ,baz]

is equivalent to:

  (list "foo bar " baz)

It’s convenient when writing document, but I’m not sure it is so helpful
for config files.  For instance, ‘text-file*’ and ‘mixed-text-file’ get
close to that, but without the reader macro.  See xorg.scm for example.

To me, the question is more about choosing between writing configuration
file bindings and exposing upstream’s configuration file syntax, as was
discussed when Andy posted the Dovecot service.  (To which I don’t have
a better answer than: let’s see on a case-by-case basis.)

WDYT?

But yeah, maybe we need a concrete example to illustrate the various
options.  :-)

Thanks,
Ludo’.

  reply	other threads:[~2016-01-20 22:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-16 23:03 Composing service definitions (and maybe fmt) Christopher Allan Webber
2016-01-19 13:14 ` Ricardo Wurmus
2016-01-19 15:58   ` Christopher Allan Webber
2016-01-20  9:37     ` Ricardo Wurmus
2016-01-20 17:49       ` Christopher Allan Webber
2016-01-20 22:13         ` Ludovic Courtès [this message]
2016-01-21 14:12           ` Thompson, David
2016-01-21 21:27             ` Ludovic Courtès
2016-01-21 21:57               ` Christopher Allan Webber
2016-01-24 20:35                 ` Ludovic Courtès
2016-01-24 22:18                   ` Christopher Allan Webber

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87si1rx5l4.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=cwebber@dustycloud.org \
    --cc=guix-devel@gnu.org \
    /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://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).