3 ms·
Starlark, a variant of Python, can be thought of as semi dynamic: all mutation in each file happens once, single threaded, and then that file and all its data s
by lihaoyi 2y ago
Starlark, a variant of Python, can be thought of as semi dynamic: all mutation in each file happens once, single threaded, and then that file and all its data structures are frozen so downstream files can use it in parallel
A lot of "staged" programs can be thought of as semi dynamic as well, even things like C++ template expansion or Zig comptime: run some logic up front, freeze it, then run the rest of the application later
- kridsdale1 2y agoGoogle’s build system uses Starlark definition files for this reason. Very easy to write flexible configurations for each project and module but building is of course very parallel.