home.social

#cuelang — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cuelang, aggregated by home.social.

fetched live
  1. I'll be at #FOSDEM next week! Haven't been since 2014, which feels like a lifetime ago. If we have met or collaborated in the past, or you'd like to say hi, my DMs are open :) #golang #cuelang

  2. I am down the rabbit hole of melding #golang and #cuelang with a dash of #peg and a twist of #TextMate tmLanguage.json (but using RE2 not Oniguruma for reasons)

  3. I have a problem. Need to validate config file
    Using #cuelang
    Now I have 2 errors in empty disjunction problems

    #shitpost

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

  5. @jonathanmatthews 100%.

    I been trying to convince people to use 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. 😅

  6. @CleoMenezesJr Most of my app wishlist is either modernization or new features for existing apps...mainly server sync. Would be nice to login to via GOA & have a solid client for each NC app.

    Outside of that:

    - Database viewer / query runner
    - REST API tester
    - tester
    - Clients for various fediverse servers
    - / / contract validator
    - GIF search
    - GitHub / Actions manager & runner
    - unit manager

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

  8. Current status: Learning cue and using it in anger (the good kind). #cuelang

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

  10. Now hearing from Rog Peppe about the Cue language here at @golab #golang #CueLang

  11. I only learned properly a couple of weeks back about how elegant 's multi-for-loop construct is!

    Because in 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 🙂

    is genuinely awesome!

  12. 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
    blog.owulveryck.info/2022/03/1

  13. Does anyone now the status of using #cuelang for @grafana dashboards? There have been various issues, PRs and experiments over the last couple of years, but the current state still seems unclear.

  14. makes it very easy and elegant to add to your system (in this example exposing @Prometheus scrape endpoints) across environments and deployments, with templating, validation, defaults and even enforcement.
    Good talk by creator Marcel van Lohuizen
    @cfgmgmtcamp

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

  16. I'm putting out some short and uncomplicated videos on my favourite thing at the moment: CUE!

    is a smart that /looks/ a bit shaped, but is actually going to save us all from the dreary, -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 and concrete values, separately but hierarchically, organising instances in parallel: youtube.com/watch?v=OaPLbvHpVlc

  17. @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.

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

  19. "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: threadreaderapp.com/thread/160

    #golang #cuelang