3/24/2026 at 2:09:12 PM
If it doesn’t ever execute Ruby: it cannot be compatible with Homebrew. “Compatible” is doing a bit of work here when it also means “implicitly relies on Homebrew’s CDN, CI, packaging infrastructure and maintainers who keep all this running”.There’s a new vibe coded Homebrew frontend with partial compatibility and improved speed every few weeks.
Homebrew is working on an official Rust frontend that will actually have full compatibility. Hopefully this will help share effort across the wider ecosystem.
by mikemcquaid
3/24/2026 at 5:05:57 PM
Context for those unaware: the commenter, mikemcquaid, is the project lead for Homebrew.by runjake
3/24/2026 at 5:21:26 PM
Thank you, his arguments totally makes sense, only the part that makes me icky is:> There’s a new vibe coded Homebrew frontend with partial compatibility and improved speed every few weeks.
People are free and probably do this because it is slow. Alternatives often are not a bad thing.
by Xunjin
3/25/2026 at 1:16:56 AM
> People are free and probably do this because it is slow. Alternatives often are not a bad thing.Alternatives are always good but IMO brew is just not something I interact with all that much and to me it's "good enough". It works and does what I expect, although to be fair maybe I'm on the happy path <shrug>.
by bentcorner
3/24/2026 at 5:54:32 PM
Since I enabled HOMEBREW_DOWNLOAD_CONCURRENCY, downloads have improved for me to the point where download speed is no longer an issue.by alwillis
3/24/2026 at 11:38:14 PM
If your version is 5.0.0 or newer, concurrency is already active by default.by firecall
3/25/2026 at 12:57:08 AM
Thanks for that. And here I was somehow hanging around on 4.5.3.by pugio
3/24/2026 at 7:33:40 PM
Good to know! I was doing this with a hacky one-liner but wasn't aware of this flag. I think the sequential build/install process is the agonizing bit though.by brailsafe
3/24/2026 at 11:51:30 PM
Yeah I don’t know how people are saying it’s slow. If you have 5000 packages installed maybe?by naikrovek
3/24/2026 at 8:32:23 PM
> Alternatives often are not a bad thing.Exactly. I’ve been using MacPorts for ages and I love it.
/me ducks.
by rbanffy
3/24/2026 at 5:43:11 PM
Point noted! I took it as a tongue-in-cheek phrasing of "agentically coded". Hopefully, that's right.by runjake
3/24/2026 at 8:12:31 PM
I don't see where he said it's a bad thing, or even implied it. As I see it, he did imply that superlatives like THE FASTEST PACKAGE MANAGER aren't worth much in this environment.by mpalmer
3/24/2026 at 5:34:14 PM
[dead]by huflungdung
3/24/2026 at 7:22:12 PM
Yeah, tbh homebrew is slow as fuck. It literally took 30 minutes to install aws cli on my 2020 mbp. I will happily flock to every new version that's faster.by jazzpush2
3/24/2026 at 2:36:05 PM
It is really coll that Homebrew provides a comprehensive enough JSON API to let people build on Homebrew in useful ways without directly running Ruby, despite everything being built in a Ruby DSL. That really does seem like a "best of both worlds" deal, and it's cool that alternative clients can take advantage of that.I didn't know about the pending, official Rust frontend! That's very interesting.
by pxc
3/24/2026 at 3:05:10 PM
Wow they are finally getting away from Ruby? Awesome. The speed will be a nice boonby SOLAR_FIELDS
3/24/2026 at 4:13:00 PM
Yeah I don't know why people are saying that speed doesn't matter. I use Homebrew and it is slow.It's like yum vs apt in the Linux world. APT (C++) is fast and yum (Python) was slow. Both work fine, but yum would just add a few seconds, or a minute, of little frustrations multiple times a day. It adds up. They finally fixed it with dnf (C++) and now yum is deprecated.
Glad to hear a Rust rewrite is coming to Homebrew soon.
by petcat
3/24/2026 at 6:05:15 PM
One of the reasons I switched to arch from debian based distros was precisely how much faster pacman was compared to APT -- system updates shouldn't take over half an hour when I have a (multi)gigabit connection and an SSD.It was mostly precipitated by when containers came in and I was honestly shocked at how fast apk installs packages on alpine compared to my Ubuntu boxes (using apt)
by kelvie
3/24/2026 at 6:38:40 PM
pacman is faster simply because it does less things and it supports less use cases.For example pacman does not need to validate the system for partial upgrades because those are unsupported on Arch and if the system is borked then it’s yours to fix.
by akdev1l
3/25/2026 at 12:15:09 AM
Less charitably, pacman is fast because it's wrong. The dependency resolver is wrong; it fails to find correct answers to dependency resolution problems even when correct answers are available.by pxc
3/24/2026 at 5:44:27 PM
Ruby doesn't have to be the slow part, bazel uses starlark which is mostly python and it's very fast.by novok
3/25/2026 at 3:05:46 AM
Bazel has other problemsby SlightlyLeftPad
3/25/2026 at 3:17:52 AM
Could you elaborate?by ukuina
3/25/2026 at 3:46:01 AM
Sure,* it’s purpose built for mega-sized monorepo models like Google (the same company that created it)
* it’s not at all beginner friendly, it’s complex mishmash of three separate constructs in their own right (build files, workspace setup, starlark), which makes it slow to ramp new engineers on.
* even simple projects require a ton of setup
* requires dedicated remote cache to be performant, which is also not trivial to configure
* requires deep bazel knowledge to troubleshoot through its verbose unclear error logs.
Because of all that, it’s extremely painful to use for anything small/medium in scale.
by SlightlyLeftPad
3/24/2026 at 6:34:45 PM
yum was slow not because of python but because of the algorithm used to solve dependenciesAnyway the python program would call into libsolv which is implemented in C.
dnf5 is much faster but the authors of the program credit the algorithmic changes and not because it is written in C++
dnf < 5 was still performing similarly to yum (and it was also implemented in python)
by akdev1l
3/24/2026 at 7:34:31 PM
> dnf < 5 was still performing similarly to yum (and it was also implemented in python)I'm perhaps not properly understanding your comment. If the algorithmic changes were responsible for the improved speed, why did the Python version of dnf perform similarly to yum?
by wavemode
3/24/2026 at 8:06:28 PM
Because dnf4 used the same dependency resolution as yum but they revamped it in dnf5 (it was initially supposed to be a whole new package manager with a different name)by akdev1l
3/24/2026 at 6:46:15 PM
> Yeah I don't know why people are saying that speed doesn't matter. I use Homebrew and it is slowBecause how often are you running it where it's not anything but a opportunity to take a little breather in a day? And I do mean little, the speedups being touted here are seconds.
I have the same response to the obsession with boot times, how often are you booting your machine where it is actually impacting anything? How often are you installing packages?
Do you have the same time revulsion for going to the bathroom? Or getting a glass of water? or basically everything in life that isn't instantaneous?
by mhurron
3/25/2026 at 2:58:37 AM
This. There are much better reasons to abandon brew than “it’s slow”.by what
3/25/2026 at 1:32:43 AM
Is Ruby really the speed bottleneck in Homebrew? I would assume it would be due to file operations (and download operations), not choice of programming language.by joemi
3/25/2026 at 3:15:55 AM
Largely agree, though some things are notably difficult in some languages. Things like true concurrency for example didn’t come as naturally in Ruby because of the global interpreter lock. Of course there are third party libs, and workarounds though. Newer versions of Ruby bring it more natively, and as we’ve seen, Homebrew has adopted and makes use of that experimentally for a while, and the default relatively recently.I can’t say that’s the only reason it’s slow of course. I’m on the “I don’t use it often enough for it to be a problem at all” side of the fence.
by SlightlyLeftPad
3/24/2026 at 6:23:31 PM
I would guess this change builds on the existing json endpoints for package metadata but that the Ruby DSL is remaining intact.I think how to marry the Ruby formulas and a Rust frontend is something the Homebrew devs can figure out and I'm interested to see where it goes, but I don't really care whether Ruby "goes away" from Homebrew in the end or not. It's a lovely language, so if they can keep it for their DSL but improve client performance I think that's great.
by pxc
3/24/2026 at 8:25:32 PM
> Homebrew is working on an official Rust frontend that will actually have full compatibility.When you say "Rust frontend", is the vision that Homebrew's frontend would eventually transition to being a pure Rust project — no end-user install of portable-ruby and so forth?
If so (ignore everything below if not):
I can see how that would work for most "boring" formulae: formula JSON gets pre-baked at formula publish time; Rust frontend pulls it; discovers formula is installable via bottle; pulls bottle; never needs to execute any Ruby.
But what happens in the edge-cases there — formulae with no bottles, Ruby `post_install` blocks, and so forth? (And also, how is local formula development done?)
Is the ultimate aim of this effort, to build and embed a tiny little "Formula Ruby DSL" interpreter into the Rust frontend, that supports just enough of Ruby's syntax + semantics to execute the code that appears in practice in the bodies of real formulae methods/blocks? (I personally think that would be pretty tractable, but I imagine you might disagree.)
by derefr
3/25/2026 at 7:07:04 AM
We will never be 100% Rust an 0% Ruby. It’s possible that 99% of users end up never running any Ruby, though. It’ll still be needed for local development and our CI. We’re optimising for speeding up the 99% case as much as possible.by mikemcquaid
3/25/2026 at 9:30:43 AM
I think you are doing great work with brew and I hope the Rust version is released soonHowever, how is this effort different than uv vs pypi? why is this a bad thing?
by breppp
3/25/2026 at 10:01:53 AM
That is great news! Would be even more awesome if it was being ported to a more approachable language like Go or Zig, or somehow rearchitected in Ruby, but I take it that ship has sailed long ago. Ruby -> Rust is a brutal move.by ricardobeat
3/24/2026 at 4:05:38 PM
https://github.com/Homebrew/brew/tree/main/Library/Homebrew/... for referenceby orf
3/24/2026 at 3:30:38 PM
Heyyyy, who are you to tell us what is and isn't compatible with homebrew?(Just kidding, thank you for creating homebrew and your continued work on it!)
by atonse
3/24/2026 at 7:30:27 PM
I think Max Howell created Homebrew. I think McQuaid is the current maintainerby samgranieri
3/25/2026 at 8:51:20 AM
> Compatible” is doing a bit of work here when it also means “implicitly relies on Homebrew’s CDN, CI, packaging infrastructure and maintainers who keep all this running”.This is literally what "compatible" means, how else did you expect then to frame it?
by cromka
3/25/2026 at 9:58:35 AM
It’s more of an alternative CLI for Homebrew itself, not an alternative that happens to be compatible.by ricardobeat
3/24/2026 at 3:50:58 PM
I appreciate the push for an official rust frontend. I've personally been migrating (slowly) to using nix to manage my Mac's software, but there are a ton of limitations which lead me to rely on homebrew anyway. The speed ups will be appreciated.by tfrancisl
3/24/2026 at 11:23:05 PM
> I appreciate the push for an official rust frontendWhy? I think I am seriously starting to contract as case of FOMO. I feel like Rust is rapidly gaining territory everyday. I mean, that's fine and all, I suppose. I have never used it, so I have no real opinions on the language.
by hirvi74
3/24/2026 at 3:56:08 PM
Please, don't remove bottles and casks that are blocked by Gatekeeper. :˜(by boobsbr
3/25/2026 at 9:46:50 AM
I also think it's a bit unfortunate, but I can also see the side of not wanting to support things that technically make macos less secureby forsakenharmony
3/25/2026 at 1:47:03 AM
McQuaid is correct in the strict sense, but the interesting question is what percentage of actually installed formulae use Ruby DSL features beyond archive extraction and path manipulation. My guess is it's a small minority of what most developers have on their machines.The real compatibility test isn't "runs all Homebrew formulae" — it's "runs the 15-20 formulae each developer actually uses." A tool that handles those correctly and fails clearly on edge cases is more useful in practice than a technically complete implementation that's slower.
What's missing from this thread is any data on that surface area, not more benchmark numbers.
by AbanoubRodolf
3/24/2026 at 4:02:56 PM
Makes no sense, the wording suggests it can use Homebrew's backend, not that it's a complete alternative to Homebrew. Nobody is confused about that.by halapro
3/24/2026 at 6:40:25 PM
The recipes for building and installing homebrew packages are written in RubyYou cannot really be compatible with this unless you run the Ruby as the install scripts could do whatever arbitrary computations
In reality most recipes contain a simple declarative config but nothing stops you from doing Ruby in there.
Hence to achieve total compatibility one would need to run Ruby
by akdev1l
3/24/2026 at 7:25:20 PM
Is this still true since they swapped to distributing binaries rather than building from source on each install? It's been years since I last installed something from homebrew that built from source, so something that could install the same binaries would be compatible from my standpoint.That said, it's also been a while since I've really had any huge complaints about brew's speed. I use Linux on my personal machines, and the difference in experience with my preferred Linux distro's package manager and brew used to be laughable. To their credit, nowadays, brew largely feels "good enough", so I honestly wouldn't even argue for porting from Ruby based on performance needs at this point. I suspect part of the motivation might be around concerns about relying on the runtime to be available. Brew's use of Ruby comes from a time when it was more typical for people to rely on the versions of Python and Ruby that were shipped with MacOS, but nowadays a lot of people are probably more likely to use tooling from brew itself to manage those, and making everything native avoids the need to bootstrap from an existing runtime.
by saghm
3/24/2026 at 8:04:07 PM
It can revert back to building from source under some cases and I still think even when doing binary downloads it will execute install hooks which are ruby inside the recipeI would agree with you that probably Ruby itself is probably not the bottleneck (except maybe for depsolving cuz that’s cpu bound)
by akdev1l
3/24/2026 at 4:11:45 PM
I mean, I'm confused about it. The nanobrew homepage says this:> nanobrew
> The fastest macOS package manager. Written in Zig.
> 3.5ms warm install time
> 7,000x faster than Homebrew · faster than echo
It presents itself as an alternative to Homebrew.
by nozzlegear
3/24/2026 at 4:23:54 PM
There are many such examples for npm as well: many "compatible" managers, one registry.by halapro
3/24/2026 at 4:54:55 PM
Sorry, examples of what? Package managers that present themselves as replacements for other package managers? Or package managers that aren't compatible with the registry they're supposed to be compatible with? Your use of scare quotes is confusing.by nozzlegear
3/24/2026 at 5:41:15 PM
pnmp, npm, yard all have different lockfiles, all use the same registry format (and the same registry itself), all try to stay compatible in other ways.You won't be having situation where one uses yarn and someone uses pnpm on the same project tho.
by 0x457
3/24/2026 at 11:03:36 PM
thank you for all you (and your co-maintainers) do for the community!by yokoprime
3/25/2026 at 4:04:01 AM
> Homebrew is working on an official Rust frontend that will actually have full compatibility. Hopefully this will help share effort across the wider ecosystem.Where can I read more on this effort?
by waterTanuki
3/24/2026 at 11:09:21 PM
What drove the choice to use Rust for an official frontend?by hirvi74