starlark
starlark-go
starlark | starlark-go | |
---|---|---|
22 | 21 | |
2,238 | 2,204 | |
1.9% | 0.8% | |
4.1 | 7.1 | |
3 days ago | 11 days ago | |
Starlark | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
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
- (The) Starlark Language
-
Apple releases Pkl – onfiguration as code language
The implementations and users page mentioned above:
https://github.com/bazelbuild/starlark/blob/master/users.md
- Language design of Starlark (compared to Python)
-
10 Ways for Kubernetes Declarative Configuration Management
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?
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.
-
Launch HN: Moonrepo (YC W23) – Open-source build system
one of the benefits of starlark (unlike python): "Starlark is suitable for use in highly parallel applications. An application may invoke the Starlark interpreter concurrently from many threads, without the possibility of a data race, because shared data structures become immutable due to freezing." from https://github.com/bazelbuild/starlark/blob/master/spec.md - it's not python, you can't do recursion (!) and it's more limited (you can't read a file in bazel, and parse it, you have to make this operation into the graph somehow)
-
When to use Bazel?
You can do the same in Bazel which uses Starlark for its BUILD files. Starlark is a dialect of Python so it makes it super easy to work with.
-
[P] Docker alternative for AI/ML
Make sense. We do not use Python actually, the build language is starlark, which is the config lang used by bazel. https://github.com/bazelbuild/starlark
-
The Dhall Configuration Language
Have you seen Starlark? It's not too far from that, but safer in a number of ways: https://github.com/bazelbuild/starlark
- What change should Python 4 bring, in your opinion?
starlark-go
-
Python Is Easy. Go Is Simple. Simple = Easy
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
-
Examples of using task scheduler with Go?
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
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
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
Direct link to the Go implementation of Starlark: https://github.com/google/starlark-go
-
Change go code behaviour at runtime
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.
-
Reserve 4 gigabytes and treat any pointer in that range as an integer value
Context: https://github.com/google/starlark-go/blob/cfacd890221418a2dc2c736f7b5e3476c38709b1/starlark/int_posix64.go
-
A command-line tool to create development environments for AI/ML, based on Docker and buildkit
Thus envd is more like Dockerfile, while it uses a simplified python dialect starlark https://github.com/google/starlark-go as the build language.
-
I'm building an experimental successor to Bazel™
Use Go (mostly for starlark-go)
What are some alternatives?
yaml-reference-parser
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
dhall - Maintainable configuration files
cue - CUE has moved to https://github.com/cue-lang/cue
dhall-kubernetes - Typecheck, template and modularize your Kubernetes definitions with Dhall
strictyaml - Type-safe YAML parser and validator.
openapi-python-client - Generate modern Python clients from OpenAPI
gopher-lua - GopherLua: VM and compiler for Lua in Go
cdk8s - Define Kubernetes native apps and abstractions using object-oriented programming
jsonnet-libs - Grafana Labs' Jsonnet libraries
VecStack - A stack-based language for drawing vector graphics
go-jsonnet