starlark-go VS starlark

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

starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go (by google)
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
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
starlark-go starlark
24 27
2,495 2,682
0.9% 1.3%
6.3 6.3
13 days ago 5 days ago
Go Python
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.

starlark

Posts with mentions or reviews of starlark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-14.
  • In Praise of "Normal" Engineers
    1 project | news.ycombinator.com | 19 Jun 2025
  • Should Programming Languages Be Safe or Powerful?
    2 projects | news.ycombinator.com | 14 Dec 2024
    I actually like Deno's take on things, the ability to "drop privs" (or "allow-list") is super powerful.

    Starlark is supposedly a limited version of python (https://github.com/bazelbuild/starlark), but what if you could say in python itself:

        def foo():
  • Interview Gone Wrong
    6 projects | news.ycombinator.com | 3 Nov 2024
    — a in b not in c

    WalterBright mentioned that D will give you an error. When designing Starlark (a derivative of Python), I also decided to give an error for this, by making the comparison operators non associative.

    https://github.com/bazelbuild/starlark/blob/master/design.md...

    I agree this Python feature can look cute, but I've found it's rarely useful and can easily be avoided.

  • Starlark Language
    4 projects | news.ycombinator.com | 16 Jun 2024
  • An Overview of the Starlark Language
    5 projects | news.ycombinator.com | 5 Jun 2024
    Having done some nontrivial Bazel/Starlark hacking, I completely agree that lightweight static types would be a good usability improvement. But I want to point out that Starlark is actually not Turing complete, which is imo one of the more interesting characteristics it has. Recursion is forbidden (https://github.com/bazelbuild/starlark/blob/master/spec.md#f...) and loops must be structural; there is no while loop or other unbounded iteration construct. Starlark is one of the more capable and mainstream non-Turing-complete languages out there, and doesn't resemble the other common ones which mostly show up in theorem provers. On the one hand I think the logic in a build system that needs to reason about incremental builds absolutely should be guaranteed to terminate, but in some particularly painful situations I've had to resort to iteration over smart-contract-style "gas" parameters.
  • (The) Starlark Language
    1 project | news.ycombinator.com | 21 Feb 2024
  • Apple releases Pkl – onfiguration as code language
    14 projects | news.ycombinator.com | 3 Feb 2024
    The implementations and users page mentioned above:

    https://github.com/bazelbuild/starlark/blob/master/users.md

  • Language design of Starlark (compared to Python)
    1 project | news.ycombinator.com | 3 Jan 2024
  • 10 Ways for Kubernetes Declarative Configuration Management
    23 projects | dev.to | 1 Jan 2024
    Starlark: Starlark is a language for describing build transformations, inspired by Python, but with features that make it suitable for embedding in software like Bazel. It can be used for configuration generation due to its capability for deterministic evaluation and expressing complex build transformations.
  • How Big Should a Programming Language Be?
    2 projects | news.ycombinator.com | 25 Mar 2023
    In the design of Starlark (https://github.com/bazelbuild/starlark), I often had to push back against new feature requests to keep the language simple. I explicitly listed simplicity as a design goal.i

    Of course, the scope of the language is not the same as general purpose languages, but there's always pressure from the users to add more things. I also think many people underestimate the cost of adding new features: it's not just about adding the code in every compiler/interpreter, specifying every edge-case in a spec, updating all the tooling for the language and writing tutorials; it's also a cost on everyone who will have to read any of the code.

What are some alternatives?

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

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

openapi-python-client - Generate modern Python clients from OpenAPI

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

dhall-kubernetes - Typecheck, template and modularize your Kubernetes definitions with Dhall

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

cdk8s - Define Kubernetes native apps and abstractions using object-oriented programming

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
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured