Mike Dalessio
3 days ago

For any Rubyists are using bazel: I'd love to hear what you're using it for! I want to know more!

Context: official ruby rules were recently published at

#ruby #bazel

Reid D. M.
3 weeks ago
A t-rex wields grabber extension arms with the caption "unstoppable"

One of the things I’ve struggled with when learning #MLIR is how to compose all the different lowerings into a pipeline that ends in the result I want, especially when other people wrote those pipelines. When starting from a high level dialect like #linalg (linear algebra), there can be dozens of lowerings involved, and some of them can reintroduce ops from dialects you thought you completely lowered already, or have complex pre-conditions or relationships to other lowerings. There are also simply too many lowerings to easily scan.

There are two ways to specify a lowering from the MLIR binary. One is completely on the command line. You can use the --pass-pipeline flag with a tiny DSL, like this
How do you find the bug in a lowering? Apparently there are some folks doing this via formal verification, formalizing the dialects and the lowerings in #lean to prove correctness
#bazel #llvm

Brandon Bennett
1 month ago

Who has a good strategy for building and testing with Github Actions in a #monorepo.

Currently using #makefile in each project. Not looking foward to a bunch of GHA workflows for every project and wondering if there is a better way.

Tried #earthly but didn't seem to make things easier.

Sorta also dragging my feet on #Bazel, but still may go that way.

David Ansari
1 month ago

How #RabbitMQ build times decreased from 3 hours to 20 minutes thanks to #Bazel

Ludovic Courtès
1 month ago

Ricardo Wurmus managed to write a #Guix package for #Bazel, although it still uses some of the bundled .jar files (pre-built opaque binaries):

It’s quite an achievement given the breadth and complexity of Bazel.

Even trickier is packaging software such as JAX that uses Bazel as its build system:

RTL Nieuws
2 months ago

𝗔𝗹𝗰𝗮𝗿𝗮𝘇 𝗺𝗲𝗹𝗱𝘁 𝘇𝗶𝗰𝗵 𝗺𝗲𝘁 𝗯𝗹𝗲𝘀𝘀𝘂𝗿𝗲 𝗮𝗳 𝘃𝗼𝗼𝗿 𝘁𝗼𝗲𝗿𝗻𝗼𝗼𝗶 𝗶𝗻 𝗕𝗮𝘇𝗲𝗹

Carlos Alcaraz doet komende week niet mee aan het ATP-toernooi van Bazel. De Spaanse tennisser meldde zich woensdag met een blessure af bij de organisatie.

#Alcaraz #blessure #Bazel

Eugene Yokota
2 months ago

TIL about Subresource Integrity (SRI), a standardized string format on specifying a cryptographic hash, not too dissimilar to what #Bazel already does with ubiquitous sha256, but more generalized.

> An `integrity` value begins with at least one string, with each string including a prefix indicating a particular hash algorithm (currently the allowed prefixes are `sha256`, `sha384`, and `sha512`), followed by a dash, and ending with the actual base64-encoded hash.

Eugene Yokota
2 months ago

SemanticDB support, which was originally implemented by @olafurpg nearly two years ago landed a few days ago on rules_scala (#Scala plugin for #Bazel) thanks to four co-authors Matt Peterson, @aish, Dmitry Komanov, and 'crt-31' pushing this effort through

Doug Parker 🕸️
2 months ago

Great post on #ClosureCompiler, it's history at #Google and how it evolved compared to #TypeScript.

I can help with one of the last points:

> True to form, this tool [tsickle] is open source but pretty inscrutable to an outsider. It may be used by Angular but I couldn't tell.

I can confirm that Angular does *not* run `tsickle` or Closure in user projects with `ng build`. There was an experiment some years ago where we tried this to see if we could improve bundle sizes, but found that asking users to write Closure-optimizable code was too difficult and hard to justify outside Google. As a result, we never ran this in prod.

I believe we do technically run `tsickle` in Angular GitHub repositories, as we have a unique build system setup with #Bazel and #rules_nodejs. If you've ever contributed to Angular, you probably ran `tsickle`. We've been trying to remove this dependency, but I don't think it's happened yet.

Andrew BoostsWithWildAbandon
2 months ago

Does anyone actually use #Bazel 's hermeticity to maintain a parallel version of #clang on MacOSX since the system compiler is so far behind?

Or does everyone just use a linux container with the latest clang already installed?


2 months ago

Is it just me, or does #bazel alone suffice to disprove the #DontDoEvil claim?

Xcode 15 is finally here! It's been a joy to use these last few months.

I should mention that #rules_xcodeproj has worked with it since the first beta (though we made some fixes as more releases came out), so be sure to upgrade to 1.10.1 ( if you haven't already.

#Bazel #Xcode

Doug Parker 🕸️
3 months ago

Are there any good #web conferences / meetups with an #RFP open in the #BayArea or virtual?

There are a few projects I've been working on which I'd love to give talks about and share with the community (not Angular related). Could be talking about any/all of:

1. #HydroActive - A different take on hydration in an HTML-first world.
2. #rules_prerender - A #Bazel ruleset serving as a fast and scalable #StaticSiteGenerator.
3. #HTMLFragments - A no-tooling, web standard-based approach to HTML over the wire.

Greatly appreciate boosts for reach!

3 months ago

More on the configurable outputs. Or, rather, configurable flakes. This solves so many things. I'm so excited about seeing something like this land in nix, because that's very much a #bazel killer for me.


3 months ago

fundamentals of build: You want one of 3 things:

1. artifact (binary) for your target or
2. Perfect runnable instructions for building artifact (bin) for your target or
3. Runnable instructions for building artifact on a variety of targets that you have tested on your target.

This allows for `1 || 2 || 3`. Good #buildtools take this into account. #Nix, #bazel, even good ol' #GNUMake. But, then we don't use that functionality; we forget about it in our scripts & they fail, missing a bin they coulda built or they fail, building a bin they coulda stolen. Note that this post puts off worrying about dependencies, because 1, 2 & 3 can worry about those, too, if you do it right.

David Zaslavsky
4 months ago

@raiderrobert I learned more than I ever wanted to know about how you can build #Python wheels using #Bazel

...the elusive `ENAMETOOLONG` error code made multiple appearances 🤦

Mark T. Tomczak
4 months ago

My work day in a nutshell. #bazel #iykyk

Meme: the Gravemind, from Halo 2, declaring itself "a monument to all your sins." The Gravemind is labeled "Bazel."
4 months ago


I'll transform this into a keychain

#bazel #monsterhunter #monster #hunter #pixelart #keychain #fanart #fullbody

A bazel from monster hunter fullbody
Doug Parker 🕸️
4 months ago

Little #Git / #Bazel trick for you. When you have a branch will multiple commits and want to make sure none of them introduce any test breakages, run:

$ git rebase main --exec "bazel test //..."

This will checkout every commit since `main` and run `bazel test //...`, stopping if any tests fail.

You can do this with any test command, but what's awesome about Bazel is that the build cache is still valid between commits. Anything which didn't change will be cached.

This means you can easily run *all* tests for *every* commit on a branch with dozens of commits in only a few seconds. The cacheability is *amazing* here. It's an excellent way to verify a every step of a large change.

Eugene Yokota
4 months ago

did some #Rust coding today (autogenerating #Bazel build files from Protobuf)

because I am a Rust newbie, copy-pasting is easy, but seemingly-rudimentary refactoring is so challenging (because of the ownership), I kind of have to choose my own battle to not burn hours. I did manage to write an async lambda in one of the battles, which feels like an achievement unlocked

Bart Louwers
5 months ago

@ianthetechie God speed. Not sure if it is an option, but have you given #Bazel a try?

Eugene Yokota
5 months ago

wrote 'automate refactoring with Bazel + Scalafix' #Scala #Bazel

a screenshot of a failing GitHub Actions log displaying a diff of source code adding new import statements.

"--- /home/runner/work/gigahorse/gigahorse/common-test/src/main/scala/gigahorsetest/BaseHttpClientSpec.scala
+++ <expected fix>
@@ -16,18 +16,20 @@
 package gigahorsetest
+import gigahorse.HeaderNames
+import gigahorse.MimeTypes
+import gigahorse.SignatureCalculator
+import gigahorse.WebSocketEvent
 import org.scalatest.Assertion"
Arne Babenhauserheide
5 months ago

I stopped feeling bad about #autotools files ( m4/*) when I realized how much noise a new maven package throws on your disk.
The main difference is: for #maven / #npm / #cargo / #gradle / #bazel / ... these are autogenerated.

That’s why I started #conf: — auto-generation for autotools projects with `conf new --lang <language>`.

It needs more templates … contributions welcome!
(just send me a patch or a link to pull from)
#gnu #make #freesoftware

5 months ago

My #softwareengineering discovery of the year has been without a doubt the #bazel build system.

Once you get used to the extremely fast incremental builds, shared cache, extensibility etc. there is no going back. I really recommend it, at least for #cpp

Benedikt Ritter
6 months ago

@mathias what‘s the alternative? @ASFMavenProject? #Bazel? They all have their individual drawbacks. I mean, yes I‘m totally biased, but I don’t see an alternative to @Gradle for building JVM projects that offers the same flexibility and performance.

Al Sutton
6 months ago

Even after all this time I'm still not a fan of #gradle. I use it because that's where the support is for #android development, but, on a purely build bases, #bazel and #buck are, in my experience, more robust build tools.

Today's "Nope, still don't like it" trigger was having a gradle build fail with "Gradle build daemon disappeared unexpectedly..." when the build has been specified as to not use a daemon. That's either poor parameter naming, or documented parameters being ignored.

Bart Louwers
7 months ago

This is the best introduction to #Bazel that I have found. This ~30 minute talk covers writing your own macros and rules, using LaTeX compilation as an example. Maybe Bazel is deemed difficult enough as it is, but many resources, even books on Bazel, do not cover this.

Daniel Aditya Istyana
7 months ago

I’m currently trying to package several of our static library into dynamic framework using ios_framework rule in #Bazel but there’s an intermittent failure on bundling steps.

It says I copied the same framework twice.

Doug Parker 🕸️
7 months ago

@thePunderWoman That's a #Bazel thing, and not really a common term. I think many Nooglers get just as confused regardless of background.

Even the internal Bazel docs concede that it's a misnomer. It's just called that to algin with `go_binary`, `java_binary`, etc.

Reid D. M.
8 months ago

wish the #bazel rules_python upstream would notice my PR one way or another but hey. corporate OSS project not the community projects I'm used to. either way about to get shmoovin

Francis ☑️
8 months ago

@samir someone left my company after spending 4 months working to integrate #bazel 😬

8 months ago

Really don’t love how common it is for #bazel packaging to pin a version of the thing it’s packaging. New bazel means new packaging means new packaged library version. Too much coupling!

Mx. Savanni D'Gerinel
8 months ago

#Make was the last good build tool.

The jury is still out on #Bazel and #Nix.

Fight me.

Reid D. M.
8 months ago

So here's my #bazel review. Good theoretical model. When it works it may as well be alien technology. But it's horrendously underdocumented and obviously not designed for consumption by people who haven't already learned on Blaze. And the OSS rules are pretty low quality. And half the stuff you need to make it work - cache management, bad action purging, analysis cache persistence, ... happens to not be OSS.

I started writing a toot-storm, but I realized a blog post was a better medium for it. Enjoy:

#rules_xcodeproj #Bazel #Xcode

Daniel Aditya Istyana
9 months ago

Is it currently not possible to implement on-demand resources in #Bazel? Have been searching on internet as well as in rules_apple and swift but found little information about this.

Cc: @SmileyKeith @brentley

Doug Parker 🕸️
9 months ago

Shout out to `bazel query --output graph` and for visualizing it. Debugged some tricky dependency graphs today and I'm not sure I could have done it without those tools.

#Bazel #GraphViz

Eugene Yokota
9 months ago

in the first draft I couldn't figure out how to cross build using MODULE.bazel, but eventually I figured it out, so I updated the post yesterday. also made a PR to show that it actually works on GitHub Actions. #Bazel

Eugene Yokota
9 months ago

wrote a blog post 'cross build anything with Bazel'

this technique is not limited to JVM, I figured #Scala cross building is a representative example, so I used it as an example on how it can be done using the local_repository technique #Bazel

Eugene Yokota
9 months ago

it happens so that in different orgs that I work for, the first things I tackle is the library dependency issue.

this week @ianoc showed me a neat trick of using --override_repository to switch out a local repository in #Bazel. I've heard this technique described in the past but didn't realize how powerful it was atm.

Doug Parker 🕸️
10 months ago

After a lot of work, I've finally landed a release of #Bazel #rules_prerender which is compatible with #aspect_rules_js!

This has been a long time coming, and the issue shows how big a change this was ( It didn't help that I kept getting distracted with other things and forgot everything I was doing. 😅

#aspect_rules_js does seem like a solid improvement and it sets up #rules_prerender for a lot of awesome improvements in the future (#ESM, #bzlmod, better bundling, etc.) Super excited about where we can take this next!

Shout out to @alexeagle and Greg Magolan (who I don't think is on Mastodon?) for their help, couldn't have done it without you!

I’m so excited to announce we’ve released version 1.0 of #rules_xcodeproj!

For a release this important, I’ve written a blog post. Please enjoy 😊.

#Bazel #Xcode

Doug Parker 🕸️
10 months ago

@techytacos Don't get me wrong, #ISR is great. #Bazel is great. ISR + Bazel? More conflicts than sodium and water.

Doug Parker 🕸️
10 months ago

#Terrible #Idea: An incremental static rendering (#ISR) solution which calls #Bazel build in production to generate #HTML, #JS, and #CSS files which get served directly to users.

This is objectively one of the dumbest and worst ideas I've ever come up with, so I made a feature request for it over-analyzing the idea way too much.

I would be very curious to know exactly _which_ aspect of the idea breaks first. Is it memory limitations? Cache invalidation? Database management? Backend usage? #RBE SLOs? So many things things that could ruin it!

Picture of the Simpsons at a moment where a doctor is explaining to Mr. Burns how he has _all_ the diseases but isn't affected by them. The doctor demonstrates this by having a number of small tools attempt to squeeze through a door at the same time, yet none get through because they all block each other. The doctor stresses that even a slight breeze could upset the balance and have significant impact, but Mr. Burns takeaway is: "I'm indestructable..."
10 months ago

Since the hashtag is totally empty for me on here, I'll start it:

Anyone on the #fediverse want to talk to #turborepo, let me know :D.

#vercel #monorepo #nextjs #frontend #programming #nx #moon #bazel #etc #etc

Eugene Yokota
10 months ago

I am joining @aish's Machine Learning System team at Netflix!

excited to work on developer experience for data scientists, esp on #Scala and #Bazel. I also want to thank everyone who reached out to me during the transition to check up on me etc. you kept my spirits high!

16 inch MacBook Pro, a folded letter that says "Welcome to Netflix", and a tangerine
Hazel Weakly
1 year ago
Reid D. M.
1 year ago


Sven Tiffe :bazel:
1 year ago

Google Cloud and Firestore vs Datastore (3/n): the documentation for getting started refers to a Maven dependency that is no longer hosted in the registry (doc refers to firebase-admin 1.32.0, most recent version seems to be 9.1.1). Not a deal for people who know what they are doing, but not an example of a smooth experience.

Wondering what this means for #Bazel though where we experience similar feedback about documentation 🙈

Eugene Yokota
1 year ago

Hi, I am Eugene, a programmer working around #fp, #Scala, and tooling like #sbt and #Bazel, most recently I was at Twitter's Build team

I enjoy exploring complex landscape, and tweaking them to make things better for other programmers #introduction

Sven Tiffe
1 year ago

Exploring Fediverse from a different place, here's my local #introduction

Working as Eng Manager at #Google in #Munich on #Bazel which became my happy place after different projects and roles. I enjoy working as #facilitator, #mentor and #respect advisor in my org.

I've been exploring Mastodon from a private instance so far, and already learned that discovering content and people is a whole different thing on a well established instance. Let's try!

Thank you @nova (or, .io?) for hosting!

Brentley Jones :bazel:
1 year ago

Time for my #introduction!

I’m Brentley (he/she/they) and I’m a Developer Evangelist at @buildbuddy. I focus on #iOS / #Mobile and #Bazel. I’m also the creator of #rules_xcodeproj, a Bazel-integrated #Xcode project generator.

I’m a big user/fan of #SwiftLang, but I would love to someday be able to learn and use #Elixir or #Lisp for something in production 😄.

On the non-tech side, I love #movies, #tv, and #TTRPG. I’ll sometimes dabble in #videogames (mainly #pokemon).

Wassim Chegham :blue:
1 year ago

Imagine if you could:
- open VS Code
- write some #Rust
- install and setup #Bazel
- compile to #WASM
- create a serverless #Nodejs function
- deploy to the Cloud


This is the future of Web development. Start now!