Live data from Hacker News

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

cuelang.org

71–80 of 167 posts

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

#71
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.

New standards: https://xkcd.com/927/

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

#72
post #6

The tl;dr is buried deep in the docs > CUE is an extension of JSON. This improves familiarity and makes it easy to get going quickly. > In its simplest use case, CUE can substitute for a more pleasant way to write JSON.

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.

It's not Google branded and who has blue eyes?

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

#73

This might cause confusion with cuesheets, which already exist and have the same extension: https://en.m.wikipedia.org/wiki/Cue_sheet_(computing)

Or worst, it could be seen as a first attempt of takeover. What will be the next targeted extension?

What a strange comment. Extensions aren't the property of anyone.

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

#75
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?

Eating glass.

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

#76
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.

If it doesn't at least "compile" to JSON, how are we to load it into arbitrary environments?

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

#77

Earlier quoted context omitted.

I didn't even have to scroll down to see an example of code and usage.

Where? I don't see any example on the page linked to. Edit: Ah, the code example only appears for desktop browsers (or at least, browser windows wider than a phone screen).

And only if you have javascript enabled.

And it's one of those trendy shitty live-typing demonstrations instead of just letting you read some text.

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

#78

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

I realize this was meant to be sarcastic. However, I whole-heartedly and unironically agree. For writing small bits of configuration, just about any language will be fine. For large amounts of configuration, as is required for... oh, I dunno, let's say deploying software in the cloud, all the commonly used languages are a disaster.

Data serialization languages (like JSON, INI, XML, etc) lack the power to describe large configurations. There's no way to define an abstraction and then use it in multiple places. There's no way to constrain what is considered correct. You end up with tens of thousands of lines of very, very repetitive structures that are very fragile and hard to change.

General purpose languages are also bad for writing configurations. Yes, they're very powerful. That's not a feature when it comes to configuration. If you have a program that emits a configuration, the only thing you can do with it is run it, then inspect the resulting configuration. You can't inspect or transform the program at the level of the configuration semantics. You can't ensure that the configuration will have specific properties. You can't even ensure that the program will, in fact, emit a configuration.

So yeah, we need new configuration languages that lie in between data serialization languages and general purpose computing languages. We're starting to see them. HCL is awful, but it was an attempt at solving this problem and a move in the right direction. Jsonnet is maybe better better? I dunno, I've never tried it. Dhal is interesting, though difficult for non-Haskellers to approach. CUE is also interesting. Bravo!

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

#80
post #47

Earlier quoted context omitted.

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.

New standards: https://xkcd.com/927/

The problem is not that there are too many configuration languages. The problem is that none of them are any good. The way to solve that is to keep trying new ones until we find one that is good.
Post reply on HN