Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-12-09 Thread Ludovic Courtès
Hello! Edouard Klein skribis: > Thank you Liliana and Attila for the swift and actionable feedback :) > > Below is a revised proposition. > > Here is a minimal working example of an os declaration: > --mwe.scm--- > (use-modules > (beaver system) > (beaver functional

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-12-01 Thread Michal Atlas
Hello, just FTR, i don't think that the guix codebase is too bad in this regard. It's not bad for the slightly initiated, which does still take time, and I think that front would perhaps benefit from some attention. My main take away from this was that what I liked mostly about the BeaverLab

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-30 Thread Attila Lendvai
> > the downside of generating countless macros is that they won't show up > > in backtraces, and they cannot be found when grep'ping the codebase, > > and as such make the codebase much less approachable. > > > Reading your words really helped me feel that I'm not alone. You more or > less summa

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-29 Thread Development of GNU Guix and the GNU System distribution.
Hi Attila, On Wed, Nov 29 2023, Attila Lendvai wrote: > i agree. in my experience, it's good practice in general to try to > make a functional API as convenient as possible, and if that is still > too verbose or cumbersome, only then add a thin layer of syntactic > abstractions that expand to cod

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-29 Thread Attila Lendvai
> lines of code. I think hyper-focusing on syntax to make services > "nicer" might be the wrong approach here: You could greatly reduce the > complexity by making them procedures instead of syntax and still keep > most of the configuration readable to a great extent. i agree. in my experience, it

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-27 Thread Liliana Marie Prikler
Am Sonntag, dem 26.11.2023 um 21:46 +0100 schrieb Edouard Klein: > > Liliana Marie Prikler writes: > > >     (instantiate nginx) > > I do wish you spelled out service.  Also, instantiate takes as much > > characters to type as add-service. > > > > Done, see below. I was worried about the parony

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-26 Thread Edouard Klein
Liliana Marie Prikler writes: >>     (instantiate nginx) > I do wish you spelled out service. Also, instantiate takes as much > characters to type as add-service. > Done, see below. I was worried about the paronymy between add-service and add-services which already exists. I defer to you and y

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-26 Thread Michal Atlas
Hello guix, I'll chime in because I've been playing around with this kind of thing in my channel [1] for a bit now and perhaps some of the ideas will be deemed useful. (service+ OS SERVICE [CONF]) (service- OS SERVICE) (modify-service OS SERVICE UPDATE) I found that defining a functional A

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-26 Thread Liliana Marie Prikler
Am Sonntag, dem 26.11.2023 um 17:49 +0100 schrieb Edouard Klein: > Thank you Liliana and Attila for the swift and actionable feedback :) > > Below is a revised proposition. > > Here is a minimal working example of an os declaration: > --mwe.scm--- > (use-modules >  (be

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-26 Thread Edouard Klein
Thank you Liliana and Attila for the swift and actionable feedback :) Below is a revised proposition. Here is a minimal working example of an os declaration: --mwe.scm--- (use-modules (beaver system) (beaver functional-services) (gnu packages version-control) (gnu

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-25 Thread Attila Lendvai
> (service+ OS SERVICE [CONF]) > (service- OS SERVICE) > (modify-service OS SERVICE UPDATE) what would the benefit of generating multiple macros for each service compared to the above functional API (with 3-4 elements altogether)? i could be missing something here, but it seems to be precious l

Re: Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-24 Thread Liliana Marie Prikler
Am Freitag, dem 24.11.2023 um 22:43 +0100 schrieb Edouard Klein: > Dear Guixers, > > Here is a quick status update on my proposition to expose composable > functions to change operating-system declarations. > > Thank you all for the feedback you gave me :) It's very nice to not > be talking in th

Syntactic Diabetes (was Re: A friendlier API for operating-system declarations)

2023-11-24 Thread Edouard Klein
Dear Guixers, Here is a quick status update on my proposition to expose composable functions to change operating-system declarations. Thank you all for the feedback you gave me :) It's very nice to not be talking in the void. After Liliana opined that these functions should not put too much burd