#cuelang — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cuelang, aggregated by home.social.
-
I'm at #FOSDEM all weekend! Ping me to talk #cuelang or #golang :)
RE: https://bsky.app/profile/did:plc:gcwkuuf3dygnewyce2onfvb5/post/3mdl5b3a7fc2f -
I have a problem. Need to validate config file
Using #cuelang
Now I have 2 errors in empty disjunction problems -
I'll be speaking at GopherCon UK in London this August! Comment below or drop me a message if you'd like to chat about #cuelang or #golang :) Odd that they're not posting on Bluesky though - such a missed opportunity.
gophercon.co.uk -
@jonathanmatthews 100%.
I been trying to convince people to use #cuelang anytime they are yaml programming. But practice has been people still "like" yaml cause that's what they know. 🫠 Fully misunderstanding what a data value validity brings instead to your sanity. 😅
-
@CleoMenezesJr Most of my #GTK app wishlist is either #GTK4 modernization or new features for existing apps...mainly #SelfHosted server sync. Would be nice to login to #Nextcloud via GOA & have a solid client for each NC app.
Outside of that:
- Database viewer / query runner
- REST API tester
- #ActivityPub tester
- Clients for various fediverse servers
- #JSONSchema / #Cuelang / #Nickel contract validator
- GIF search
- GitHub / #Forgejo Actions manager & runner
- #systemd unit manager -
New #cuelang goodies dropped: https://github.com/cue-lang/cue/releases/tag/v0.9.0
-
@lawouach I see, recently I also took a look at #cuelang #dhalllang and #jsonnet but for a team that is not coming from a functional programming background with not a lot seniority, #helm still seems more appealing, even without considering the ubiquity of it. Or that was the impression that I got.
-
-
Current status: Learning cue and using it in anger (the good kind). #cuelang
-
Thinking about #kustomize that would excel in #declarative programming and overlays vs Helm...
What about using general purpose functional programming? Using a YAML type provider in #fsharp can provide strong typing for YAML configuration files, making it easier to work with YAML data in a more type-safe manner. It would be more familiar to me than #cuelang.
Well, the combination of #golang and #cuelang appears to be the most common choice.
-
Finally some content for Cuelang #cuelang https://alpha.cuelang.org/docs/
-
-
I only learned properly a couple of weeks back about how elegant #CUE's multi-for-loop construct is!
Because in #ConfigMgmt land we're /so/ often dealing with spiky, nested objects, the nested "for" loop has a lovely indent-saving form: here, the loop starting on L37 incorporates 3 for elements, 1 "if" guard, & 1 additional temporary allocation ("let"), whilst letting me iterate over the /innermost/ elements of a (resource|data).<level1>.<level2> shaped struct 🙂
#cuelang is genuinely awesome!
-
As much as I love "diagrams as code", what I actually want is"diagrams as data" so I can both generate visual output and do calculations.
This is a fascinating example:
CCCCUE: Generating C4 diagrams with CUE
#cuelang
https://blog.owulveryck.info/2022/03/10/ccccue-generating-c4-diagrams-with-cue.html -
-
#CueLang makes it very easy and elegant to add #monitoring to your system (in this example exposing @Prometheus scrape endpoints) across environments and deployments, with templating, validation, defaults and even enforcement.
Good talk by #CueLang creator Marcel van Lohuizen
@cfgmgmtcamp
#cfgmgmtcamp #prometheus -
It’s worth spending the time to make your code as easy to maintain and update. You might not be the one troubleshooting in an emergency. #cuelang #CfgMgmtCamp
-
I'm putting out some short and uncomplicated videos on my favourite thing at the moment: CUE!
#Cuelang is a smart #data #constraint #language that /looks/ a bit #JSON shaped, but is actually going to save us all from the dreary, #YaML-esque future that /feels/ so inevitable!
Here's a really short video I've just published about a fantastic CUE feature that lets us combine #schemas and concrete values, separately but hierarchically, organising instances in parallel: https://www.youtube.com/watch?v=OaPLbvHpVlc
-
@dirsigler Nothing against it exactly, but this is for a toy project and I've been looking for an opportunity to play with #cuelang for a while, and this has been the first thing that I've needed a structured config file for in a while, so it seemed like a good fit.
-
So, I need a config file for my toy project in #golang. Nothing terribly fancy, but there's some structure to it that makes TOML, etc unnatural. So I figured I'd play with #cuelang, and then have my code read either a YAML or JSON file, process it against my Cue definition, and use the result.
I have it working fine with 'cue eval'. Feels pretty reasonable, actually. So I tried to add it to my code and... I can't even figure out where to start.
-
"Cuelang.org, while taking a moment to fully appreciate, is a fantastic tool to unify all those with automation build in and effortless value type based schema. Highly recommended."
For the curious: CUE is a language for defining, generating, and validating data. Written in Go but useful for everyone. (That is, it's not specific to Go.)
Citation source: https://threadreaderapp.com/thread/1604846804574560256.html?s=12&t=f64-1mN5CDqp2Q9YHrHCmg