Hacker GitHub

← All repos

bazelbuild/starlark

View on GitHub ↗ ★ 3,120 Python

Starlark Language

38 mentions on Hacker News by 31 people: 6 stories, 32 comments · first 2018-08-17 · latest 2026-05-05

Mentions per year 38 mentions · busiest year 2024 (14)
20082026
  1. …bounded execution time. I really wish more projects would reach for it as a configuration language. https://github.com/bazelbuild/starlark
    comment by HALtheWise · 2026-05-05 · in PyInfra 3.8.0
  2. …methods of composition. 1. https://cuelang.org/docs/introduction/#philosophy-and-princi... 2. https://github.com/bazelbuild/starlark?tab=readme-ov-file#de...
    comment by d4mi3n · 2025-06-19 · in What would a Kubernetes 2.0 look like
  3. …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(): """use strict; use no_func_calls; use…
  4. …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…
    comment by laurentlb · 2024-11-04 · in Interview gone wrong
  5. Starlark is a nice embeddable scripting language, though. Java, Go, and Rust implementations: https://github.com/bazelbuild/starlark/blob/master/users.md#...
    comment by jrockway · 2024-10-18 · in JSON Patch
  6. …However, an implementation may allow clients to disable this check, allowing unbounded recursion. https://github.com/bazelbuild/starlark/blob/master/spec.md I do kind of agree with you about this, though: > At that point, just give your…
  7. …build configuration with Blaze, Bazel, Buck2, Caddy, "Starlark implementations, tools, and users" https://github.com/bazelbuild/starlark/blob/master/users.md
    comment by westurner · 2024-07-30 · in RestrictedPython
  8. …and you have to be very careful to have that evaluation step return meaningful errors. Starlark ( https://github.com/bazelbuild/starlark ) is an example of using Python-ish as a "configuration" language. That took an absolutely massive…
    comment by GeneralMayhem · 2024-06-18 · in Every Way to Get Structured Output from LLMs
  9. ▲ 78
    Starlark Language
    story by zerojames · 2024-06-16 · 49 comments
  10. …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…
    comment by gue5t · 2024-06-06 · in An Overview of the Starlark Language
  11. …if you worked with any teams that deal with hardware or third-party/acquisition stuff). 0. https://github.com/bazelbuild/starlark
    comment by filoleg · 2024-04-26 · in Google lays off its Python team
  12. ▲ 1
    (The) Starlark Language
    story by peter_d_sherman · 2024-02-21 · 1 comment
  13. The implementations and users page mentioned above: https://github.com/bazelbuild/starlark/blob/master/users.md
  14. …readme example shows a rare correct implementation of FizzBuzz, with no unique case for "FizzBuzz". https://github.com/bazelbuild/starlark
  15. ▲ 3
    Language design of Starlark (compared to Python)
    story by PaulHoule · 2024-01-09 · 0 comments
  16. ▲ 2
    Language design of Starlark (compared to Python)
    story by todsacerdoti · 2024-01-03 · 0 comments
  17. …languages: https://blog.matt-rickard.com/p/the-python-family-of-languag... Starlark lang spec: https://github.com/bazelbuild/starlark/blob/master/spec.md Google implementations: https://github.com/google/starlark-go/…
  18. …standalone interpreter to play with and couldn't. There is a list of projects that use Starlark at https://github.com/bazelbuild/starlark#users . It lists https://github.com/carvel-dev/ytt for YAML templating and…
    comment by networked · 2023-09-28 · in That's a Lot of YAML
  19. …Bazel, is in that vein, though goes a bit further by supporting functions (with many restrictions): https://github.com/bazelbuild/starlark/tree/master
  20. …embedded, it's a very simple language, and has 3 implementations (in Java, in Go and in Rust). [1] https://github.com/bazelbuild/starlark
    comment by laurentlb · 2023-05-29 · in Lua: The Little Language That Could
  21. 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…
    comment by laurentlb · 2023-03-25 · in How big should a programming language be?
  22. …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…
  23. Have you seen Starlark? It's not too far from that, but safer in a number of ways: https://github.com/bazelbuild/starlark
    comment by Groxx · 2022-07-15 · in The Dhall Configuration Language
  24. And if you need python-like configurability/reprogrammability, with go, you can use Starlark. https://github.com/bazelbuild/starlark
  25. A radically different alternative with a lot going for it is Starlark: https://github.com/bazelbuild/starlark It’s a deterministic subset of Python. This means that if you have complex or repetitive configurations, you can use loops and…
    comment by georgewfraser · 2021-11-14 · in YAML: It's Time to Move On
  26. …I can take a Starlark expression at the command line and use it to filter elements of a collection. https://github.com/bazelbuild/starlark
    comment by closeparen · 2021-05-27 · in JsonLogic
  27. …in your config file. See Starlark, which is a subset of Python used by the Bazel build system - https://github.com/bazelbuild/starlark
  28. fyi, Starlark dropped compatibility with Python 2 two years ago ( https://github.com/bazelbuild/starlark/issues/27 ) People interested in type annotations can check this discussion: https://github.com/bazelbuild/starlark/issues/106 For…
    comment by laurentlb · 2020-11-29 · in Please – A cross-language build system
  29. Regarding Starlark, there's a discussion on this topic: https://github.com/bazelbuild/starlark/issues/97 (note that Neil, the author of the blog post, commented there too) My experience working on build systems and Bazel is that recursion…
    comment by laurentlb · 2020-11-10 · in Turing Incomplete Languages
  30. It's slightly more constrained for performance but maybe Starlark is what you're looking for? https://github.com/bazelbuild/starlark
    comment by vsgzusnex · 2020-08-16 · in MicroPython
  31. …the other hand, almost no Python library will run. This feels paradoxical, but that's what it is. https://github.com/bazelbuild/starlark
  32. …by the Delve debugger for example: https://github.com/go-delve/delve/blob/master/Documentation/... https://github.com/bazelbuild/starlark/blob/master/users.md
  33. …are guaranteed to not mess with sensible stuff edit : some starlark design choices explained : https://github.com/bazelbuild/starlark/blob/master/design.md
  34. …doesn't change, you are 100% sure your refactor is safe. Bazel's StarLark dialect of Python ( https://github.com/bazelbuild/starlark ) has similar benefits. The language is simple and remarkably well specified, enough that we implemented…
  35. …to Jenkins scripting and may improve scaling Drone for larger projects (time will tell). [1] https://github.com/bazelbuild/starlark
    comment by bradrydzewski · 2019-04-29 · in Jenkins Is Getting Old
  36. ▲ 2
    The Starlark Configuration Language
    story by jingwen · 2019-02-25 · 0 comments
  37. Bazel's language ( https://github.com/bazelbuild/starlark ), also used in Buck and other tools, is technically not Turing-complete. In Bazel's BUILD files, there are additional restrictions (e.g. no function definition), making them…
  38. ▲ 2
    Starlark configuration language
    story by laurentlb · 2018-08-17 · 0 comments