2/8/2026 at 6:57:21 PM
Parallel and sequential, especially at the command level, are really the wrong abstractions for running scripts. If you have multiple packages, each with builds, there's a high chance you have dependencies and multiple packages depending on common ones.What you really want is a way for scripts to describe their dependencies, and then the runner figures out what order to run them in, and cache scripts that don't need to be run because their inputs didn't change.
Wireit[1] is an npm script runner that adds that incrementally on top of package.json. I can't manage an npm monorepo without it now.
Deno started integrating the idea directly into their built-in script runner. I think this is an important enough feature that more runtimes should follow Deno's lead.
by spankalee
2/8/2026 at 8:50:06 PM
> What you really want is a way for scripts to describe their dependencies, and then the runner figures out what order to run them in, and cache scripts that don't need to be run because their inputs didn't change.DAG + content-addressing, final binary being the target and everything resolved from there. We could have some beautiful build system that just works and is fast, but seems it never magically appears by itself although it seems so elegant. Guess Nix/NixOS is the closest we've gotten so far, works well enough, missing concurrency and parallelism though.
by embedding-shape
2/8/2026 at 9:40:48 PM
Google's build system Bazel is what you describe.by dpe82
2/8/2026 at 10:45:39 PM
I should really give it another look, I usually ended up not adopting it for projects because of the boilerplate and high setup overheard, but those are both things that ai agents can usually be trusted with. Maybe the calculus has changed.by mattnewton
2/9/2026 at 1:41:56 AM
Yeah Bazel is a PITA to do yourself. I haven't tried but I'm confident Claude et al. would handle it just fine. By similar logic I recently adopted NixOS for a lot of my servers; Claude is perfectly happy to slog through the pain of Nix configs for me.by dpe82
2/9/2026 at 2:47:45 AM
I’m not a fan of generative AI for the use case because it’s rote enough to do deterministically, but deterministic code generation is getting better and better.Gazelle, the BUILD file generator for Go, now supports plugins and several other languages have Gazelle plugins.
I’ve used AI to generate BUILD file generators before, though. I had good luck getting it to write a script that would analyze a Java project with circular dependencies and aggregate the cycle participants into a single target.
by hxtk
2/9/2026 at 2:50:33 AM
It’s gotten easier of late because Bazel modules are nice and Gazelle has started support plugins so it can do build file generation for other languages.I don’t like generative AI for rote tasks like this, but I’ve had good luck using generative AI to write deterministic code generators that I can commit to a project and reuse.
by hxtk
2/8/2026 at 11:00:53 PM
Could you clarify what you mean about Nix missing concurrency and parallelism? I often run builds using nix-output-monitor and it definitely looks like things are running in parallel, although I could be mistaken.by sestep
2/10/2026 at 11:31:03 AM
I meant as part of the language itself, not just the runtime or for specific parts. Say I'm processing 100 JSON files, it'd be great if I could fire that off wrapped in 'parallel' or whatever, similar to Clojure and others I guess.by embedding-shape
2/8/2026 at 10:31:49 PM
Wireit does both DAG and content-addressing. It figerprints the inputs and outputs of dependencies. And you run scripts externally with plain `npm run` commands. It's really beautiful.by spankalee
2/9/2026 at 6:57:52 AM
`make` can do exactly the same.by silverwind
2/8/2026 at 7:48:14 PM
If only we could make something like thatBut now we would need each script to independently do their own caching, which isn’t all bad. At least you have more cross runner compatibility and resilience
by pyrolistical
2/8/2026 at 10:30:41 PM
Wireit really is that. The script declares dependencies and input, Wireit caches based on the direct inputs and dependency outputs.by spankalee
2/8/2026 at 11:49:59 PM
Why didn't I know about this beforeby aziis98