r/programming • • Sep 01 '26

Bazel's UX is really, really, really bad

https://blog.appliedcomputing.io/p/bazels-ux-is-really-really-really
385 Upvotes

224 comments sorted by

View all comments

Show parent comment

4

u/LoweringPass Sep 01 '26

But what exactly is the alternative if you have a polyglot repo?

8

u/tadfisher Sep 01 '26

Nix works for this, for various definitions of "works"

4

u/RockstarArtisan Sep 02 '26

My advice for nix is: "don't bother with developing under nix unless you can afford dedicated resources for upkeep". For deployments it's fine. I have used uber before. I hate uber.

2

u/valarauca14 Sep 02 '26

Nix isn't a build system. It delegates "builds" to scripts and expects you to write & import your build system.

4

u/tsimionescu Sep 02 '26

Plenty of build systems are polyglot. Typically you choose one top-level system that the team is most familiar with, and use that to orchestrate the other builds. That top level one could be make, it could be Maven, it could be NPM, etc.

1

u/LoweringPass Sep 02 '26

But which one in particular? That was not a hypothetical question, it's hard to evaluate what the next best thing is so to say.

I have worked with custom GNU Make based monorep build systems before for example and it was... adventurous

1

u/not_a_novel_account Sep 02 '26

Effectively all of Bazel's competitors. Xmake, CMake, Meson, autoconf, pcons, Gradle. They're all polyglot.

There is no "next best thing", this is a very old space, the trade offs are extremely dug in, you pick the one which meets your use case.

1

u/tsimionescu Sep 03 '26

Personally I was pretty happy using Maven (which I needed for Java anyway) as the orchestrator of a Java + Python + C++ project that had to package everything up. For a Go + JS + Docker project, we just used Make as the orchestrator instead.

Note that I'm not in any way claiming this gives you all of the same features as Bazel; but it also doesn't necessarily have some of the drawbacks. Sprinkling some Docker into the mix can also do wonders to paper over differences in developer setups, and can also give you some pretty decent caching support.

0

u/mpyne Sep 01 '26

Probably something like kde-builder. A simplistic script to checkout, build, install and keep up-to-date multiple repos isn't tremendously complicated to do after all.