frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: What is our history on trying to standardize configuration languages?

3•jerrac•1d ago
I just found myself trying to define configuration language for a tool that would then write the given configuration into a configuration file of whatever format I set. So I was configuring configuration to configure configuration... When that thought occurred to me, it made me stop, and think "this is ridiculous".

I mean, the problem I want to solve is real. Configuring containerized applications is always annoying. Currently I either end up baking the configuration into the image, or using a pre-script to convert environment variables into the configuration I actually need before the app starts. Usually via bash scripts... (Or I have to decipher which method the official image uses. If they have one.)

My idea was to just have a little rust tool in my containers that would take the contents of environment variables and turn them into whatever format (toml, yaml, ini, etc.) the app needs. The problem was how do I represent all the different kinds of values you can have in a language? Lists, key/value lists, associative arrays, maps, etc...

Figuring out how to do that, well, isn't that just yet another configuration language?

And that is why I'm posting this question. Has any real effort ever been put into standardizing configuration languages/syntaxes?

If so, why'd they fail? If not, why not?

Comments

bigyabai•1d ago
NixOS "solves" this, albeit with a pretty archaic configuration language and deep buy-in. The end result is that I now keep a Git repo with 95% of my Linux config represented as modules. Then I install each module as-needed (eg. terminal.nix for terminal config, desktop.nix for desktop config) for the devices I use and rebuild it with that set of modules.

Works great, even with my laptop, desktop and server sharing the same config. Versioned rollback + nixpkgs has kept me happy for about 4 years with this setup.

jerrac•1d ago
Wouldn't that only work on NixOS systems? I'm not sure that counts as standardization.

That said, someday I need to give NixOS a try.

synack•1d ago
There are 15 competing standards: https://xkcd.com/927

Augeas [1] does a decent job of translating various formats into a common AST which you can edit and write back out, but setting this up is often more trouble than just editing/templating whatever config and moving on with your life.

Many new projects go straight for YAML/TOML/JSON/INI as they're widely understood and relatively easy to parse. I think this is as close to standardization as you'll get.

OpenBSD's developers have gone in the other direction, defining domain specific configuration languages for each of their daemons. They're all different, but they look similar enough that it feels like a cohesive system. You can look at the yacc grammar and see how httpd's config [2] got started as a fork of relayd [3].

[1] http://augeas.net/

[2] https://github.com/openbsd/src/blob/master/usr.sbin/httpd/pa...

[3] https://github.com/openbsd/src/blob/master/usr.sbin/relayd/p...

jerrac•1d ago
> There are 15 competing standards: https://xkcd.com/927 Heh, that is pretty much the answer I was expecting. :)

Augeas seems interesting. I'll have to look into it a bit more than my cursory glance at the github issue queue. :)

Thanks!

thesuperbigfrog•1d ago
I would suggest a mostly declarative format like Rust Object Notation (RON):

https://github.com/ron-rs/ron

Show HN: Product Launcher for the Hispanic Market

https://www.lanzaproductos.com/
1•amcunicorns•1m ago•0 comments

Fraternal Birth Order and Male Sexual Orientation

https://en.wikipedia.org/wiki/Fraternal_birth_order_and_male_sexual_orientation
1•Boogie_Man•1m ago•0 comments

Companies Are Outsourcing Job Interviews to AI. What Could Go Wrong?

https://thewalrus.ca/human-resources-ai/
1•pseudolus•1m ago•0 comments

Charles de Gaulle was the target of about thirty assassination attempts

https://en.wikipedia.org/wiki/Charles_de_Gaulle
1•speckx•1m ago•0 comments

Sustainable Funding in Open Source

https://www.brainfart.dev/blog/sustainable-foss-funding
1•vonneborowitz•1m ago•0 comments

Show HN: Verysmall.site – vibecode single page websites

https://verysmall.site
1•sixhobbits•2m ago•1 comments

Accelerometer-Measured Physical Activity and Neuroimaging-Driven Brain Age

https://spj.science.org/doi/10.34133/hds.0257
1•geox•3m ago•0 comments

A taxonomy for next-generation reasoning models

https://www.interconnects.ai/p/next-gen-reasoners
1•beklein•3m ago•0 comments

Software Error Forces MIAX Sapphire Exchange to Bust Trades

https://www.bloomberg.com/news/articles/2025-06-03/software-error-forces-miax-sapphire-exchange-to-bust-trades
1•ksec•6m ago•0 comments

LLMs are mirrors of operator skill

https://ghuntley.com/mirrors/
2•ghuntley•7m ago•0 comments

"AI Will Replace All the Jobs " Is Just Tech Execs Doing Marketing

https://sparktoro.com/blog/ai-will-replace-all-the-jobs-is-just-tech-execs-doing-marketing/
2•botanicals6•9m ago•0 comments

Is AI consciousness possible? Podcast

https://prism.buzzsprout.com/2503948/episodes/17231657-anticipating-an-einstein-moment-in-the-understanding-of-consciousness-with-henry-shevlin
1•prism_info•10m ago•0 comments

Crims stole 40k people's data from our network, admits publisher Lee Enterprises

https://www.theregister.com/2025/06/04/cyberattack_lee_enterprises/
1•rntn•11m ago•0 comments

Denmark gets more serious about digital sovereignty

https://world.hey.com/dhh/denmark-gets-more-serious-about-digital-sovereignty-7736f756
2•jamesblonde•15m ago•1 comments

Unreal Engine 5.6 is now available

https://www.unrealengine.com/en-US/news/unreal-engine-5-6-is-now-available
3•ksec•15m ago•1 comments

Ask HN: Unexplainable Copilot Premium Requests

3•drrotmos•16m ago•0 comments

SSU drops full 4-min video of 'Operation Spiderweb' drone strikes inside Russia

https://www.youtube.com/watch?v=y-ksNjIAkJo
3•defly•19m ago•2 comments

Ditching Sonos for Music Assistant

https://www.jonashietala.se/blog/2025/06/04/ditching_sonos_for_music_assistant/
2•lawn•20m ago•0 comments

AI Merch by Amazon Listing Generator – Amazon Listing Writer

https://einkommensquellen.gumroad.com/l/amazon_listing_generator_sub
2•hawky89•20m ago•1 comments

You can now hide your Reddit posts and comments from your profile

https://www.neowin.net/news/you-can-now-hide-your-reddit-posts-and-comments-from-your-profile/
1•bundie•20m ago•1 comments

One small step for man, but a huge leap for developers

https://signoz.io/blog/monitoring-backstage-with-opentelemetry/
1•elza_1111•23m ago•0 comments

AI Answer Engines Are Worth Trying

https://tidbits.com/2025/04/17/ai-answer-engines-are-worth-trying/
1•speckx•23m ago•0 comments

Jujutsu v0.30.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.30.0
2•todsacerdoti•24m ago•0 comments

Just dropped ragbits v1.0 and create-ragbits-app – spin up a RAG app in minutes

https://github.com/deepsense-ai/ragbits
1•mhordynski•26m ago•1 comments

Tsukuyomi: Intelligent Modular Framework for Structured Analysis and Processing

https://github.com/ShimazuSystems/TSUKUYOMI
1•handfuloflight•26m ago•0 comments

IBM Cloud login breaks for second time in a fortnight

https://www.theregister.com/2025/06/03/ibm_cloud_outage/
3•eniac111•30m ago•0 comments

Ask HN: Why doesn't HN have dark mode yet?

2•schappim•32m ago•2 comments

Show HN: A wah effect plugin for regular DAWs, web browsers and C64

https://clack.digital/asid
2•stefanorastron•32m ago•0 comments

Doubling Down on Open Source

https://langfuse.com/blog/2025-06-04-open-sourcing-langfuse-product
7•clemo_ra•32m ago•0 comments

Types ⊂ Tests ⊂ Evals?

https://nilesh.trivedi.link/thoughts/we-need-a-formal-theory-of-agent-evals
1•nileshtrivedi•33m ago•0 comments