Re: [go-nuts] using Go as a configuration file format

2019-09-24 Thread Tyler Compton
I do think that turing complete configuration have their place in very
limited circumstances. For example, I use a window manager called Awesome
WM that is configured with Lua, and that allows me to implement my own
features into the WM while configuring it. The significant disadvantage
here is that Awesome WM exposes a very large API surface to the
configuration file, making it very likely that your configuration will
break with a new release, and writing an automatic migration would be
significantly more difficult than if it were a configuration file.

It makes it impossible to implement a parser and evaluator for the format
> in a different language. Which should always be possible for a config file
> format.
>

This problem can be partially addressed by using a language like Lua that
has a very small C interpreter library and can be called from a variety of
languages, but I appreciate your point.


>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8Qi8JFA4WSCU7TLuXmgjx-WcAzJcuDdV08XSwz%2Bicziw%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA%3DXfu3%3DQgaWDXCc9MWxOaRkYYwYg7_Ka%2BpoNLYs8CjgK%2B0QMA%40mail.gmail.com.


Re: [go-nuts] using Go as a configuration file format

2019-09-23 Thread Kurtis Rader
On Mon, Sep 23, 2019 at 9:38 PM Dan Kortschak  wrote:

> Have you ever considered using Go as the configuration format for your
> project? Have you wondered whether you need a Turing complete
> configuration language?
>
> Of course not; here it is: https://github.com/kortschak/yaegiconf
>
> Appalled? OK.
>

That's cool from a "here is how this can this be implemented" standpoint.
But, yeah, Turing complete config file formats are a truly, exceedingly,
bad idea. If for no other reason than the obvious one: It makes it
impossible to implement a parser and evaluator for the format in a
different language. Which should always be possible for a config file
format.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8Qi8JFA4WSCU7TLuXmgjx-WcAzJcuDdV08XSwz%2Bicziw%40mail.gmail.com.


[go-nuts] using Go as a configuration file format

2019-09-23 Thread Dan Kortschak
Have you ever considered using Go as the configuration format for your
project? Have you wondered whether you need a Turing complete
configuration language?

Of course not; here it is: https://github.com/kortschak/yaegiconf

Appalled? OK.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/62b6d16137dd38976c7ad3e1133d70f2e592db14.camel%40kortschak.io.