Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> seems really short-sighted that it is implemented in Go

CUE was a fork of the Go compiler (Marcel was on the Go team at the time and wanted to reuse much of the infra within the codebase)

Also, so much of the k8s ecosystem is in Go that it was a natural choice.





> CUE was a fork of the Go compiler (Marcel was on the Go team at the time and wanted to reuse much of the infra within the codebase)

Ah, that makes sense, I guess. I also get the feeling that the language itself is still under very active development, so until 1.0 is released I don't think it matters too much what it's implemented in.

> Also, so much of the k8s ecosystem is in Go that it was a natural choice.

That might turn out to be a costly decision, imho. I wanted to use CUE to manage a repository of schema definitions, and from these I wanted to generate other formats, such as JSON schemas, with constraints hopefully taken from the high-level CUE.

I figured I'd try and hack something together, but it was a complete non-starter since I don't work within the Go ecosystem.

Projects like the cue language live and breathe from an active community with related tooling, so the decision still really boggles my mind.

I'll stay optimistic and hope that once it reaches 1.0, someone will write an implementation that is easily embedded for my use-cases. I won't hold my breath though, since the scope is getting quite big.


Why don't you work with the Go ecosystem? You don't use K8s, terraform, etc? What ecosystem do you prefer?

what language would you have chosen?

> I wanted to use CUE to manage a repository of schema definitions, and from these I wanted to generate other formats, such as JSON schemas, with constraints hopefully taken from the high-level CUE.

Have you tried a Makefile to run cue? There should be no need to write code to do this




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: