News for hackers. Stuff that matters.
Re:Envoy: 7 months later by bastawhiz on Tuesday April 25, 2017 @01:40PM (#14196086)
The example you linked isn't so bad. Perhaps a bit verbose for a simple example. The formatting of the json is ugly though, and I think they would do better to not collapse the whitespace inside arrays.
Re:Envoy: 7 months later by stock_toaster on Tuesday April 25, 2017 @03:44PM (#14197284)
Seems like they could have used something a bit nicer to work with too (yaml, libucl, hocon, etc). I am honestly getting tired of editing fiddly json (no comments, last element in list can't have a comma, etc) all over the place.
Re:Envoy: 7 months later by user5994461 on Tuesday April 25, 2017 @05:15PM (#14198096)
You can use hjson for human editable json.

http://hjson.org/try.html

Human editable json, with comments, and doesn't kill you for a lack of trailing comma.

Available libraries in tons of languages.

Re:Envoy: 7 months later by stock_toaster on Thursday April 27, 2017 @10:15PM (#14216437)
That actually looks pretty nice. Thanks for the link!
Re:Envoy: 7 months later by wstrange on Tuesday April 25, 2017 @05:33PM (#14198270)
Given Google's involvement, I am wondering why they did not choose jsonnet?
Re:Envoy: 7 months later by user5994461 on Tuesday April 25, 2017 @07:06PM (#14199034)
Hopefully, it was avoided on purpose because it's a complete nightmare to use.
Re:Envoy: 7 months later by wstrange on Tuesday April 25, 2017 @07:49PM (#14199319)
Honest question: How so?

I have not used it in anger - just played around with it.

Re:Envoy: 7 months later by user5994461 on Wednesday April 26, 2017 @04:16AM (#14201335)
Too much indirection.

You get big files filled with variables, loaded from other big files also full of variables. It's hard to know what you are setting after a while or where it comes from.

After a while playing with configuration systems, I'm starting to think that configuration should just be hardcoded once and for all.

Re:Envoy: 7 months later by Edmond on Wednesday April 26, 2017 @01:37PM (#14205162)
I would rather contact you directly but your profile is empty.

I would like to introduce you to HiveMind described here: http://blog.crudzilla.com/2016/10/managing-configurations-wi...

It addresses the issues that JSSONET does without inventing a new templating language.

I am happy to give a skype demo, email me if interested.