Bazel Rules
summary
Project converts 250,000 lines of native Java (380k with tests) into Starlark where current rule code is ~10,000 lines of Starlark, moving outer rule defs first, middle shared logic next, actions later. Proto rewrite is complete, Python nearly complete, Java reaches middle layer, C++ is hardest. New APIs include subrule and extensible rules that can add actions, modify providers and outputs; rollout is experimental flag aiming for separate baseline rule repos.
AI-written summary · about
chapters (23)
- 0:00Bazel rules intro
- 1:06Past rule starification
- 3:17Rule rewrites progress
- 5:48Rule maintenance plans
- 9:03Rules to separate repos
- 11:35Extend rules without forking
- 13:46Demo rule extension
- 15:35Sub rules for structure
- 18:45Bazel APIs roadmap
- 20:10Experimental features
- 20:30Bazel standard library
- 21:55Include scanning plans
- 22:38Macros and memory
- 23:03Starlark type annotations
- 24:29Q&A rule extensions
- 25:12Q&A rule ownership
- 26:16Q&A macros and query
- 26:38Q&A dynamic dependencies
- 27:20Q&A Starlark types
- 28:51Q&A private APIs
- 29:37Q&A C++20 modules
- 30:39Q&A macro visibility
- 31:22Closing remarks
related talks
01h 14mSecure your data computations efficiently
51mThe great SAST dissonance: how to please every... (Claudio Merloni, Romain Gaucher)
33madventures in reviewing mountains of code
26mAI-powered Code Review
45mNetflix’s Secret to Safe Automation at Scale
23mThanks for all the bugs!
38mNext-Gen Detection: Harnessing LLMs for Sigma Rule Automation
51mReal World Static Analysis For Real Humans
