Live data from Hacker News

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

cuelang.org

41–50 of 167 posts

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

#41

Seems really interesting after a quick read-through. Specs that allow range-based validation look useful, and the structural declarations also feel like they'll help reduce a lot of boilerplate and repetition. I wonder how this compares with Dhall and Jsonnet, both of which I've been looking into as a safer alternative to templated YAML. With Google putting its weight behind this I'm curious if it'll start finding it…

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.

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

#42
post #21
post #13

my time at Google has made me hate GCL so much.

I was going to say, this looks a lot like GCL. Dynamic scope, recursive lookup in parent scopes, templates [1], everything. GCL is neat and all, but I'd almost rather write my job configs by building thin python or lisp scripts to emit json or protos. 1: https://github.com/cuelang/cue/blob/master/doc/tutorial/basi...

Well, why don't you? Job configs in borg are protobufs. GCL can produce the required protocol message but so can any other language or tool. You could use Guile or whatever your heart desires.

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

#43
post #40

They should just foist BCL and Borgmon upon the gullible masses. All cloud development will be set back years while people (try to) figure it all out.

I do not think Google figured anything better than BCL.

Disclaimer: Was owner of borgcfg 2016-2019.

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

#44
post #3

Seems like an interesting language, but I'm very disappointed that my first attempt to view example code took 5 clicks. The most important part of any programming language website is a short example snippet: put it above the fold on the front page!

Can't see any examples in the github readme, or even in the codebase either.

https://github.com/cuelang/cue/blob/master/doc/tutorial/basi...

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

#45
post #3

Seems like an interesting language, but I'm very disappointed that my first attempt to view example code took 5 clicks. The most important part of any programming language website is a short example snippet: put it above the fold on the front page!

I gave up looking after 1min

https://github.com/cuelang/cue/blob/master/doc/tutorial/basi...

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

#46
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 on GitHub, if you fork it, they can't kill it. If you use it, contribute to it.

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

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

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

#50
post #40

They should just foist BCL and Borgmon upon the gullible masses. All cloud development will be set back years while people (try to) figure it all out.

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.

Post reply on HN