starlark-go VS cue

Compare starlark-go vs cue and see what are their differences.

starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go (by google)

cue

CUE has moved to https://github.com/cue-lang/cue (by cuelang)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
starlark-go cue
24 28
2,481 3,181
0.5% -
6.3 9.1
16 days ago almost 4 years ago
Go Go
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

starlark-go

Posts with mentions or reviews of starlark-go. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-26.
  • Tcl 9.0.0 Released
    10 projects | news.ycombinator.com | 26 Sep 2024
    The python-esque sandboxed language is Starlark: https://github.com/google/starlark-go#documentation
  • Show HN: Clace – Application Server with support for scaling down to zero
    7 projects | news.ycombinator.com | 11 Sep 2024
    Clace is built in go as a reverse proxy. Clace uses https://github.com/google/starlark-go as its configuration language. This allows full Hypermedia driven apps to be built in Clace, running within the main Clace process. For example:

      clace app create --approve github.com/claceio/apps/system/disk_usage /disk_usage
  • Go is my hammer, and everything is a nail
    24 projects | news.ycombinator.com | 12 Aug 2024
  • Python Is Easy. Go Is Simple. Simple = Easy
    5 projects | news.ycombinator.com | 27 Nov 2023
    Starlark in go https://github.com/google/starlark-go is a great way to combine the best of both, the ease of use of Python and the simplicity of go.

    I have been building a platform for deploying internal web applications using this approach https://github.com/claceio/clace. Use Starlark to configure the application, the platform itself is built in go.

  • Show HN: Clace – Platform for secure internal web applications
    6 projects | news.ycombinator.com | 18 Oct 2023
  • Examples of using task scheduler with Go?
    8 projects | /r/golang | 3 Jun 2023
    The big unknown is your task definition: what does user-defined logic look like? If you're expecting go code, that's gonna need some cleverness because of the compiled nature of it. There's a node runtime implemented in go if you want to provide sandboxed javascript (check the source of k6.io, it's the main one I know that uses it). If you want to provide building blocks and let them compose them, starlark might be a good choice.
  • Show HN: Gsubpy, an interpreter for subset of Python, written in Go
    3 projects | news.ycombinator.com | 21 Apr 2023
    Another one of those (with broader language support) is the Starlark language, which has a Go implementation: https://github.com/google/starlark-go
  • Looking for library to build composable actions from config file
    3 projects | /r/golang | 5 Mar 2023
    Every config format gets as complex to be touring complete in the end. We had similar problems and eventually got rid of that complexity and switched to starlark (the bazel config language), was a huge benefit for the tools. https://github.com/google/starlark-go "Starlark is a dialect of Python intended for use as a configuration language. Like Python, it is an untyped dynamic language with high-level data types, first-class functions with lexical scope, and garbage collection."
  • Looking for programming languages created with Go
    23 projects | /r/golang | 6 Nov 2022
    Direct link to the Go implementation of Starlark: https://github.com/google/starlark-go
  • Change go code behaviour at runtime
    10 projects | /r/golang | 10 Oct 2022
    For a Python-like syntax, https://github.com/google/starlark-go is the language used in Babel. It's very mature, but since it is used in a massive mature project with a specific purpose, it doesn't move fast or drift from the spec of its Java-based sibling. It doesn't have exception try except blocks or some other features you might expect, but for short extension logic, it might be exactly what you want with the stability you can depend upon.

cue

Posts with mentions or reviews of cue. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-17.
  • The Perfect Configuration Format? Try TypeScript
    17 projects | news.ycombinator.com | 17 Nov 2021
  • YAML: It's Time to Move On
    29 projects | news.ycombinator.com | 14 Nov 2021
  • Ask HN: What you up to? (Who doesn't want to be hired?)
    25 projects | news.ycombinator.com | 1 Nov 2021
    I'm continuing to work on https://concise-encoding.org which is a new security-conscious ad-hoc encoding format to replace JSON/XML and friends. I've been at it for 3 years so far and am close to a release.

    In a nutshell:

    - Edit in text, transmit in binary. One can be seamlessly converted to the other, but binary is far more efficient for processing, storage and transmission, while text is better for humans to read and edit (which happens far less often than the other things).

    - Secure by design: Everything is tightly specced and accounted for so that there aren't differences between implementations that can be exploited to compromise your system. https://github.com/kstenerud/concise-encoding/blob/master/ce...

    - Real type support because coercing everything into strings sucks (and is another security risk and source of incompatibilities).

    XML had a good run but was replaced by JSON which was a big improvement. JSON also had a good run but it's time for it to retire now that the landscape has changed even further: Security and efficiency are the desires of today, and JSON provides neither.

    I've got the spec nailed down and can finally see the light at the end of the tunnel for the reference implementation in golang. I still need to come up with a system for schemas, but I'm hoping that https://cuelang.org will fit the bill.

  • No YAML
    6 projects | news.ycombinator.com | 27 Oct 2021
    Has anyone taken a look at Cue who can share any experiences?

    https://cuelang.org/

    It's mentioned on the site as an alternative to Yaml. Recently watched (~half of) this intro to it: https://youtu.be/fR_yApIf6jU

  • Ask HN: Is there a good way to run integration tests on Kubernetes?
    1 project | news.ycombinator.com | 25 Oct 2021
  • Cue: A new language for data validation
    1 project | /r/patient_hackernews | 19 Oct 2021
    1 project | /r/hackernews | 19 Oct 2021
    17 projects | news.ycombinator.com | 19 Oct 2021
    the most interesting summary explanation of cue lang and its differences is from a bug filing - https://github.com/cuelang/cue/issues/33

    >CUE is a bit different from the languages used in linguistics and more tailored to the general configuration issue as we've seen it at Google. But under the hood it adheres strictly to the concepts and principles of these approaches and we have been careful not to make the same mistakes made in BCL (which then were copied in all its offshoots). It also means that CUE can benefit from 30 years of research on this topic. For instance, under the hood, CUE uses a first-order unification algorithm, allowing us to build template extractors based on anti-unification (see issue #7 and #15), something that is not very meaningful or even possible with languages like BCL and Jsonnet.

  • CMake proposal: Unified way of describing dependencies of a project
    2 projects | /r/cpp | 5 Oct 2021
    I agree with you. Personally, I think Cue is much better than either YAML, TOML or JSON because it adds the concept of types to the idea of describing configuration.
  • Cloud Infrastructure as SQL
    9 projects | news.ycombinator.com | 16 Sep 2021
    true, but the tooling and workflow remains the same.

    Not sure of any tool that could abstract the details sufficiently to be widely adopted. There is just too much nuance in cloud config.

    I'm exploring using CUE (https://cuelang.org) to define TF resources, exporting as JSON for TF. So far it's much nicer

What are some alternatives?

When comparing starlark-go and cue you can also consider the following projects:

gopher-lua - GopherLua: VM and compiler for Lua in Go

dhall-lang - Maintainable configuration files

cue - The home of the CUE language! Validate and define text-based and dynamic configuration

jsonnet - Jsonnet - The data templating language

go-php - PHP bindings for the Go programming language (Golang)

ytt - YAML templating tool that works on YAML structure instead of text

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Go is
the 4th most popular programming language
based on number of references?