Live data from Hacker News

Cue – A language for defining, generating, and validating data

cuelang.org

91–100 of 167 posts

Re: Cue – A language for defining, generating, and validating data

#91

If configuration starts becoming more complex than looking up key value pairs, why not just write it in the programming language you are using? More languages / serialisation just adds another layer of complexity. Config as code is actually really neat.

- can only be done in script languages(?) - syntax errors

I get what you're saying and it can be neat, but I don't think it's universally applicable

Re: Cue – A language for defining, generating, and validating data

#93

If configuration starts becoming more complex than looking up key value pairs, why not just write it in the programming language you are using? More languages / serialisation just adds another layer of complexity. Config as code is actually really neat.

What if you're using multiple programming languages?

Re: Cue – A language for defining, generating, and validating data

#94
post #62
post #50

Earlier quoted context omitted.

We used to joke that open-sourcing Borgmon would be an industry-disabling move, but Prometheus is very popular which just proves there's a lot of people with poor taste in software. FWIW Piccolo has also leaked into the industry in the form of Pystachio.

Gullible mass member here. What's better than Prometheus?

[deleted]

Re: Cue – A language for defining, generating, and validating data

#96
post #47

A new configuration language. Yes. That's exactly what we need.

We do indeed. XML is awful, YAML is a clusterfuck, JSON is often insufficient, and so is INI. TOML looks promising, but might not make it out of its niche. If Cue is basically a better YAML with built-in schemas, that sounds pretty good.

> XML is awful

I never really understood this. This seems to be an oft repeated truism from mid 2000s with little backing it up.

The only awesome thing that JSON did, was lose type information as well. In fact, the only thing that I can see that JSON brought to the table was easier editing by those who didn't have IDEs, at the expense of losing type information.

Re: Cue – A language for defining, generating, and validating data

#97
post #11

Disclosure: I work on Tree Notation. If the authors would like to discuss how Tree Notation may be a better syntax for this language, please feel free to get in touch: breck7@gmail.com or yunits@hawaii.edu. Here is a demonstration of what a Tree Language for config files could look like: https://treenotation.org/designer/#standard%20config

Stop commenting on every HN post, thanks

Re: Cue – A language for defining, generating, and validating data

#98
post #41

Earlier quoted context omitted.

A safer yaml: https://hitchdev.com/strictyaml/

I am really curious why people are downvoting this. I've always thought that a more restrictive and simpler version of yaml would be a good alternative.

Serious question, not trolling, how is XML not a more restrictive version of YAML and why does XML get bad rep?

Re: Cue – A language for defining, generating, and validating data

#99
post #19
post #6

Earlier quoted context omitted.

So it’s a google branded yaml? Let’s raise a glass to our blue eyed comrades who’ll adopt this fully, only for google to decide in 2-3 years to completely and aggressively kill it again for no apparent reason.

Pardon for slamming my ignorance down on the table here: I know Google has a tendency of killing products but I’m not familiar with many of their engineering tooling being similarly sunset with comparable frequency. Any named examples? I’m sure there are-and likely they just elude me at present, maybe seeing their names will jog the memory probably?

You don't hear as much about developer tools being sunset because they rarely impact as many people and that makes less interesting news.

Examples include: AngularJS (replaced by a rewrite of angular effectively), GWT (donated as 'open source' with minimal continued google involvement), basically 90% of all 20% projects by googlers that weren't official google stuff (too many examples to name, practically all of them), the xmpp api for google talk (and all associated library code, including some open source xmpp extensions, libjingle), tons of chrome and android libraries that were killed/deprecated as part of new versions not using them, ARC (https://en.wikipedia.org/wiki/Google_App_Runtime_for_Chrome), the caldav API for google calendar and any associated libraries...

I could go on, but the majority of the relevant examples are the 20% projects that never made it, and I'd rather not list any of those since they're largely single-person projects and it's kinda personal to comment on any of em.

Re: Cue – A language for defining, generating, and validating data

#100

> A key thing that sets CUE apart from its peer languages is that it merges types and values into a single concept. Whereas in most languages types and values are strictly distinct, CUE orders them in a single hierarchy (a lattice, to be precise). That's cool!

In TypeScript, an upper bound of “foo” and 5 is any. But I wonder what a lower bound of those two is supposed to be in Cue.
Post reply on HN