Live data from Hacker News

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

cuelang.org

31–40 of 167 posts

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

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

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

#32

How does this compare to jsonnet or hocon? Why would someone choose this over generating configuration files with a “scripting” language like python?

CUE improves in Jsonnet in primarily two areas, I think: Making composition better (it's order-independent and therefore consistent), and adding schemas.

Both Jsonnet and CUE have their origin in GCL internally at Google. Jsonnet is basically GCL, as I understand it. But CUE is a whole new thing.

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

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

AFAIK, cue is written by the author (or one of them?) of GCL, and purports to fix a lot of what is wrong with it.

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

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

jsonnet? :)

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

#36

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?

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

#37
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!

Well at least you could find an example.

I couldn't find anything after like a minute of searching. Unless we're counting the gif that slowly shows you an example project letter by letter.

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

#38

The post title is misleading. This is a more of 20% project, not an officially Google supported one.

There's no difference.

For 20% projects, Google typically doesn't make any commitments on the project's development. If you're just being sarcastic on Google's infamous product longevity, you should've used more than 3 words.

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

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

> I'd almost rather write my job configs by building thin python or lisp scripts to emit json or protos

This is what Facebook does: Python emitting JSON.

Post reply on HN