Hacker GitHub

← All repos

lightbend/config

View on GitHub ↗ ★ 6,321 Java

configuration library for JVM languages using HOCON files

62 mentions on Hacker News by 55 people: 6 stories, 56 comments · first 2011-12-09 · latest 2025-10-13

Mentions per year 62 mentions · busiest year 2016 (9)
20082026
  1. This looks like an anemic HOCON[0] clone. 0 - https://github.com/lightbend/config/blob/main/HOCON.md
    comment by AdieuToLogic · 2025-10-13 · in MAML – A new configuration language
  2. I find HOCON[0] to be great for this need in JVM-based languages. 0 - https://github.com/lightbend/config/blob/main/HOCON.md
    comment by AdieuToLogic · 2024-12-08 · in JSON5 – JSON for Humans
  3. ▲ 2
    Hocon (Human-Optimized Config Object Notation)
    story by amai · 2024-11-22 · 0 comments
  4. …I got bit by corner cases maybe three or four times, and they didn't take long to debug. [0] https://github.com/lightbend/config/blob/main/HOCON.md
    comment by rubinelli · 2024-11-13 · in Docker Compose Isn't Enough
  5. ▲ 4
    Hocon (Human-Optimized Config Object Notation)
    story by edward · 2023-09-24 · 0 comments
  6. I don‘t understand why HOCON ( https://github.com/lightbend/config/blob/main/HOCON.md ) isn‘t used more often (at least for configuration use cases). It‘s a superset of JSON, has comments, multiline strings, optional quotes, replacement…
    comment by metanonsense · 2023-09-21 · in XML is better than YAML – Hear me out
  7. …inheritance and text block support which were essential for me are nicely supported in HOCON. [0] https://github.com/lightbend/config/blob/main/HOCON.md
    comment by theanonymousone · 2023-09-21 · in XML is better than YAML – Hear me out
  8. I always liked HOCON for this, but it never really took off outside of some scala ecosystems: https://github.com/lightbend/config/blob/master/HOCON.md
  9. Another alternative is HOCON: https://github.com/lightbend/config/blob/master/HOCON.md I'd describe it as JSON-like with much more flexible syntax and the ability to reference itself.
    comment by overgard · 2023-05-21 · in TOML: Tom's Obvious Minimal Language
  10. …that make it both more readable and easier to use. Here's a rundown of HOCON's main features: https://github.com/lightbend/config#features-of-hocon
    comment by vvillena · 2023-04-23 · in Ron: Rusty Object Notation
  11. …part is really still providing if you don't need the full functionality of Kubernetes. [1] https://github.com/lightbend/config/blob/main/HOCON.md
    comment by mike_hearn · 2023-02-21 · in Make systemd better for Podman with Quadlet
  12. …edge cases, but is still a lot easier to write than JSON. There's also a relatively tight spec. https://github.com/lightbend/config/blob/main/HOCON.md We use an extended version of it for our app and the resulting config is pretty clean.…
    comment by mike_hearn · 2023-01-12 · in The Yaml document from hell
  13. …files that can be imported to others. And substitutions. Basically HOCON known on the JVM as https://github.com/lightbend/config
    comment by 62951413 · 2022-01-22 · in Typed Config Languages
  14. …then I noticed you have mentioned it already :- ) So, the project you linked to is Java / Scala: https://github.com/lightbend/config And there're also (basic? complete?) HOCON parsers in Javascript and Rust — I investigated this a while…
  15. Take a look at HOCON (Human-Optimized Config Object Notation) https://github.com/lightbend/config/blob/main/HOCON.md
  16. What about HOCON? https://github.com/lightbend/config/blob/master/HOCON.md
  17. There is. It's called HOCON and I'm surprised it's not mentioned yet: https://github.com/lightbend/config/blob/master/HOCON.md HOCON is the "human optimised config object notation" and is a superset of JSON. All valid JSON is valid HOCON…
  18. …support of Java properties syntax makes it a little weird to use in a JavaScript centric stack. [1] https://github.com/lightbend/config/blob/master/HOCON.md
  19. If you're in the Java world, HOCON is pretty neat. https://github.com/lightbend/config
    comment by hocuspocus · 2020-04-12 · in YAML: Probably not so great after all (2019)
  20. HOCON is what you want: https://github.com/lightbend/config
  21. https://github.com/lightbend/config/blob/master/HOCON.md#hoc...
  22. …concatenation of unquoted values is where it goes off the rails for me. This is quite the gotcha: https://github.com/lightbend/config/blob/master/HOCON.md#not... My wishlist for a friendlier JSON would be, in priority order: - Allow…
    comment by iainmerrick · 2020-03-11 · in MessagePack: like JSON, but fast and small
  23. …want to change just one value, you can add that to the 'end' of the HOCON file and be GTG. [1] - https://github.com/lightbend/config/blob/master/HOCON.md
  24. …I haven't seen an in depth analysis of it. This is the canonical parser for JVM based languages — https://github.com/lightbend/config , are there many other implementations that are widely used?
    comment by SeanA208 · 2019-08-18 · in YAML: Probably not so great after all
  25. Whole bunch of other ports into different languages too: https://github.com/lightbend/config#other-apis-wrappers-port... Thanks for pointing me to that - I'm working in Scala on server-side and JS on browser-side for a couple of years now,…
  26. …existing config values. Fills 90% of what I see people asking for in terms of programmability. https://github.com/lightbend/config/blob/master/HOCON.md#goa...
  27. It’s a bit lesser known but I’m a fan of HOCON (human optimised config object notation). https://github.com/lightbend/config/blob/master/HOCON.md If that’s not an option I’d prefer xml (with some sadness). JSON is a bad idea for the…
  28. I've had good experiences on the JVM using HOCON [1]. [1]: https://github.com/lightbend/config/blob/b782a2d701fc2b04579...
  29. For those looking for JSON-like alternative, I recommend HOCON: https://github.com/lightbend/config/blob/master/HOCON.md
  30. Another potential option, is Lightbend Config https://github.com/lightbend/config It adds includes/inheritance, substitutions, unit of measure parity , comments , and few other things -- on top of JSON. does not have if-logic, loops, or…
    comment by 75dvtwin · 2019-03-21 · in In Defense of YAML
  31. …approach is great, but only for JS projects. For Scala (or any other JVM environment) I use https://github.com/lightbend/config . It doesn't get better than that.
  32. For more complex config, I highly recommend HOCON ( https://github.com/lightbend/config/blob/master/HOCON.md ), and its parser in Java ( https://github.com/lightbend/config ). It feels like Scala (Lightbend is the company behind Scala) in…
    comment by wiradikusuma · 2018-07-13 · in Toml: Tom's Obvious, Minimal Language
  33. ▲ 1
    HOCON: human-optimized config object notation
    story by fanf2 · 2018-06-22 · 0 comments
  34. You'd really like HOCON[0] then. Just a bit too complicated to see wide adoption I'm afraid. 0 - https://github.com/lightbend/config/blob/master/HOCON.md
  35. …basically a superset of JSON that fixes all he things that make it annoying for config files. [1] https://github.com/lightbend/config
    comment by dtech · 2017-12-15 · in The Last JSON Spec
  36. …is so cool! Just what I (and so many others) are looking for. Can it handle typesafe's config too? https://github.com/typesafehub/config/
    comment by TokenDiversity · 2017-07-15 · in Ask HN: What is your password management solution?
  37. btw. one of my favorite config is HOCON. it allows ini style and json style. https://github.com/typesafehub/config/blob/master/HOCON.md
  38. there's also a little blurb at https://github.com/typesafehub/config#rationale-for-supporte...
  39. …with the use of Scala's triple-quotes - Reference other values with the use of in-line variables - https://github.com/typesafehub/config/blob/master/HOCON.md#s...
  40. Here are some examples https://github.com/typesafehub/config#examples-of-hocon
  41. ▲ 78
    HOCON – Human-Optimized Config Object Notation
    story by EwanToo · 2017-05-11 · 69 comments
  42. We have had good luck with HOCON for config files: https://github.com/typesafehub/config/blob/master/HOCON.md
    comment by steveax · 2016-10-26 · in Parsing JSON is a Minefield
  43. This is what I use, it's very good. https://github.com/typesafehub/config
    comment by ronnier · 2016-10-26 · in Parsing JSON is a Minefield
  44. https://github.com/typesafehub/config/blob/master/HOCON.md
    comment by kozhevnikov · 2016-10-26 · in Parsing JSON is a Minefield
  45. …Out of projects approaching the issue from the opposite angle ("smarter JSON"), I think HOCON ( https://github.com/typesafehub/config/blob/master/HOCON.md ) is the most promising. Compared to Hjson ( http://hjson.org/ ), it is less likely…
    comment by networked · 2016-09-04 · in Bugs in the YAML specification
  46. https://github.com/typesafehub/config/blob/master/HOCON.md makes it specified.
    comment by lmm · 2016-08-26 · in The Fixing-JSON Conversation
  47. …because it's simple. Who really needs something more oriented for humans, take a look at HOCON. https://github.com/typesafehub/config
    comment by meirelles · 2016-08-21 · in Fixing JSON
  48. I feel like HOCON fills the space pretty well, and has implementations in most languages now. https://github.com/typesafehub/config But I'm a scala developer so I might be biased.
    comment by ninjakeyboard · 2016-04-14 · in Hjson, the Human JSON
  49. My personal favorite is HOCON from Typesafe, https://github.com/typesafehub/config#examples-of-hocon
  50. I believe HOCON has these features: https://github.com/typesafehub/config/blob/master/HOCON.md#s...
    comment by redtuesday · 2016-03-05 · in In defense of Unix