flamenco
starlark-go
flamenco | starlark-go | |
---|---|---|
3 | 24 | |
- | 2,317 | |
- | 0.8% | |
- | 6.4 | |
- | 19 days ago | |
Go | ||
- | 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.
flamenco
-
Choosing scripting extension - need advice
If you're curious how I set it up, check out blender/flamenco on Gitlab. The Goja/JS stuff is in internal/manager/job_compilers.
-
gRPC gateway vs oapi-codegen etc.
The project is at https://gitlab.com/blender/flamenco in case you're interested.
-
Looking for open source project to learn from
I'm quite proud of Flamenco. Project wise it has two executables (in cmd/{exename}/main.go) and an OpenAPI-generated interface for communication between the main one (flamenco-manager) and the rest (flamenco-worker, Blender add-on, web interface).
starlark-go
-
Tcl 9.0.0 Released
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
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
-
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.
What are some alternatives?
engine - This repository is no longer in use. Starting with Docker Engine 20.10, active development, releases, and release-branches can now be found in the upstream https://github.com/moby/moby repository
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
embedded-scripting-languages - A list of embedded scripting languages
cue - CUE has moved to https://github.com/cue-lang/cue
kutil - Go Utilities
strictyaml - Type-safe YAML parser and validator.
wazero - wazero: the zero dependency WebAssembly runtime for Go developers
gopher-lua - GopherLua: VM and compiler for Lua in Go
grule-rule-engine - Rule engine implementation in Golang
jsonnet-libs - Grafana Labs' Jsonnet libraries
starlark - Starlark Language
go-jsonnet