19 comments

  • mikemcquaid5 hours ago
    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”.<p>There’s a new vibe coded Homebrew frontend with partial compatibility and improved speed every few weeks.<p>Homebrew is working on an official Rust frontend that will actually have full compatibility. Hopefully this will help share effort across the wider ecosystem.
    • runjake2 hours ago
      Context for those unaware: the commenter, mikemcquaid, is the project lead for Homebrew.
      • Xunjin2 hours ago
        Thank you, his arguments totally makes sense, only the part that makes me icky is:<p>&gt; There’s a new vibe coded Homebrew frontend with partial compatibility and improved speed every few weeks.<p>People are free and probably do this because it is slow. Alternatives often are not a bad thing.
        • jazzpush216 minutes ago
          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&#x27;s faster.
        • alwillis1 hour ago
          Since I enabled HOMEBREW_DOWNLOAD_CONCURRENCY, downloads have improved for me to the point where download speed is no longer an issue.
        • runjake1 hour ago
          Point noted! I took it as a tongue-in-cheek phrasing of &quot;agentically coded&quot;. Hopefully, that&#x27;s right.
        • huflungdung2 hours ago
          [dead]
    • pxc5 hours ago
      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 &quot;best of both worlds&quot; deal, and it&#x27;s cool that alternative clients can take advantage of that.<p>I didn&#x27;t know about the pending, official Rust frontend! That&#x27;s very interesting.
      • SOLAR_FIELDS4 hours ago
        Wow they are finally getting away from Ruby? Awesome. The speed will be a nice boon
        • petcat3 hours ago
          Yeah I don&#x27;t know why people are saying that speed doesn&#x27;t matter. I use Homebrew and it is slow.<p>It&#x27;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.<p>Glad to hear a Rust rewrite is coming to Homebrew soon.
          • kelvie1 hour ago
            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&#x27;t take over half an hour when I have a (multi)gigabit connection and an SSD.<p>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)
            • akdev1l59 minutes ago
              pacman is faster simply because it does less things and it supports less use cases.<p>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.
          • novok1 hour ago
            Ruby doesn&#x27;t have to be the slow part, bazel uses starlark which is mostly python and it&#x27;s very fast.
          • akdev1l1 hour ago
            yum was slow not because of python but because of the algorithm used to solve dependencies<p>Anyway the python program would call into libsolv which is implemented in C.<p>dnf5 is much faster but the authors of the program credit the algorithmic changes and not because it is written in C++<p>dnf &lt; 5 was still performing similarly to yum (and it was also implemented in python)
            • wavemode3 minutes ago
              &gt; dnf &lt; 5 was still performing similarly to yum (and it was also implemented in python)<p>I&#x27;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?
          • mhurron52 minutes ago
            &gt; Yeah I don&#x27;t know why people are saying that speed doesn&#x27;t matter. I use Homebrew and it is slow<p>Because how often are you running it where it&#x27;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.<p>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?<p>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&#x27;t instantaneous?
        • pxc1 hour ago
          I would guess this change builds on the existing json endpoints for package metadata but that the Ruby DSL is remaining intact.<p>I think how to marry the Ruby formulas and a Rust frontend is something the Homebrew devs can figure out and I&#x27;m interested to see where it goes, but I don&#x27;t really care whether Ruby &quot;goes away&quot; from Homebrew in the end or not. It&#x27;s a lovely language, so if they can keep it for their DSL but improve client performance I think that&#x27;s great.
    • atonse4 hours ago
      Heyyyy, who are you to tell us what is and isn&#x27;t compatible with homebrew?<p>(Just kidding, thank you for creating homebrew and your continued work on it!)
      • samgranieri7 minutes ago
        I think Max Howell created Homebrew. I think McQuaid is the current maintainer
    • orf3 hours ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;tree&#x2F;main&#x2F;Library&#x2F;Homebrew&#x2F;rust&#x2F;brew-rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;brew&#x2F;tree&#x2F;main&#x2F;Library&#x2F;Homebrew&#x2F;...</a> for reference
    • tfrancisl3 hours ago
      I appreciate the push for an official rust frontend. I&#x27;ve personally been migrating (slowly) to using nix to manage my Mac&#x27;s software, but there are a ton of limitations which lead me to rely on homebrew anyway. The speed ups will be appreciated.
    • halapro3 hours ago
      Makes no sense, the wording suggests it can use Homebrew&#x27;s backend, not that it&#x27;s a complete alternative to Homebrew. Nobody is confused about that.
      • akdev1l57 minutes ago
        The recipes for building and installing homebrew packages are written in Ruby<p>You cannot really be compatible with this unless you run the Ruby as the install scripts could do whatever arbitrary computations<p>In reality most recipes contain a simple declarative config but nothing stops you from doing Ruby in there.<p>Hence to achieve total compatibility one would need to run Ruby
        • saghm12 minutes ago
          Is this still true since they swapped to distributing binaries rather than building from source on each install? It&#x27;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.<p>That said, it&#x27;s also been a while since I&#x27;ve really had any huge complaints about brew&#x27;s speed. I use Linux on my personal machines, and the difference in experience with my preferred Linux distro&#x27;s package manager and brew used to be laughable. To their credit, nowadays, brew largely feels &quot;good enough&quot;, so I honestly wouldn&#x27;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&#x27;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.
      • nozzlegear3 hours ago
        I mean, I&#x27;m confused about it. The nanobrew homepage says this:<p>&gt; <i>nanobrew</i><p>&gt; <i>The fastest macOS package manager. Written in Zig.</i><p>&gt; <i>3.5ms warm install time</i><p>&gt; <i>7,000x faster than Homebrew · faster than echo</i><p>It presents itself as an alternative to Homebrew.
        • halapro3 hours ago
          There are many such examples for npm as well: many &quot;compatible&quot; managers, one registry.
          • nozzlegear2 hours ago
            Sorry, examples of what? Package managers that present themselves as replacements for other package managers? Or package managers that aren&#x27;t compatible with the registry they&#x27;re supposed to be compatible with? Your use of scare quotes is confusing.
            • 0x4571 hour ago
              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.<p>You won&#x27;t be having situation where one uses yarn and someone uses pnpm on the same project tho.
    • boobsbr3 hours ago
      Please, don&#x27;t remove bottles and casks that are blocked by Gatekeeper. :˜(
  • ryandrake4 hours ago
    What would be great is a Homebrew-compatible system that doesn&#x27;t cut off support for older machines. I have a 3.8 GHz Quad core i5 iMac that still crushes, yet Homebrew has determined that I&#x27;m just too old and icky[1] to work with anymore. I had to move over to MacPorts, which is surprisingly nice, but I still miss brew.<p>Yea, I know. It&#x27;s open source. They can do what they want. Still sucks.<p>1: <a href="https:&#x2F;&#x2F;docs.brew.sh&#x2F;Support-Tiers" rel="nofollow">https:&#x2F;&#x2F;docs.brew.sh&#x2F;Support-Tiers</a>
    • happyopossum2 hours ago
      To be fair, Apple stopped providing security fixes for Mojave ~4+ years ago, and there have been 7 or 8 new os releases since then…<p>I don’t think it’s reasonable to expect an open source project to support <i>everything</i>
      • gabagool2 hours ago
        I agree in principle but Homebrew only supports the latest 3 versions of macOS. Right now Ventura 13 which came out in October 2022 is unsupported.
        • dewey1 hour ago
          I still think that&#x27;s entirely fair for a power user tool like homebrew. With the upgrade rates of macOS that probably means that&#x27;s 98% of the users would be covered. Expecting an open source project to accept bug requests from a bigger variety of versions that then would need test devices on these versions to replicate issues sounds unrealistic. Bigger companies, or Apple itself I would hold to much higher standards when it comes to that.
          • bsagdiyev56 minutes ago
            &gt; power user tool like homebrew.<p>That makes no sense then. A power user may still want to run older OS versions for a reason. Take the training wheels off it and then it&#x27;ll be a power user tool.
            • dewey53 minutes ago
              &gt; A power user may still want to run older OS versions for a reason.<p>No doubt there are edge cases like that, but I don&#x27;t fault a project for not catering to the &lt; 1% of users who would fall into that bucket and would probably be the ones that cause trickier support cases. These would maybe also be the user that could just install it without homebrew then, it&#x27;s not like homebrew is the only way to install software.
          • ksherlock56 minutes ago
            brew used to say, more or less, &quot;This OS is old and unsupported. Don&#x27;t submit bug reports. If you have problems, too bad. If you submit a PR to fix something, we might merge it&quot;. Fair enough, right? Now it just says, &quot;Go fuck yourself, grandpa.&quot;
    • yabutlivnWoods1 hour ago
      Run Linux on it. Apple has cut that OS off anyway. Would be safer security wise to have an OS that&#x27;s updated
    • password43212 hours ago
      Yes MacPorts is the way. I switched after a new MacOS release meant mine was too old - brew update uninstalled a bunch of stuff I had been using then it stopped and let me know.<p>There&#x27;s also <a href="https:&#x2F;&#x2F;github.com&#x2F;dortania&#x2F;OpenCore-Legacy-Patcher" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dortania&#x2F;OpenCore-Legacy-Patcher</a> for the adventurous.
    • maxkfranz2 hours ago
      You could use the OpenCode legacy patcher to upgrade to v15&#x2F;Sequoia: <a href="https:&#x2F;&#x2F;dortania.github.io&#x2F;OpenCore-Legacy-Patcher&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dortania.github.io&#x2F;OpenCore-Legacy-Patcher&#x2F;</a>
      • ryandrake2 hours ago
        Sure, but this might win you a couple of years max. Homebrew&#x27;s &quot;Support Tiers&quot; page, which I linked, also addresses OCLP users, going so far as to specify a minimum Intel architecture. So, even if you use OCLP to allow support for newer OS versions, eventually your CPU architecture will be too old and you&#x27;re back in Tier 3.<p>Also, the writing is on the wall: Ultimately, Homebrew will be ARM-only, once Apple&#x27;s legacy support becomes ARM-only. At which point it&#x27;s game-over for Intel Macs.<p>Homebrew solves the &quot;availability of software&quot; problem in the Mac ecosystem, but it does not solve the &quot;Need to stay on the new hardware treadmill&quot; problem.
  • drob5185 hours ago
    This feels like a solution looking for a problem. I have a couple hundred brew packages on my system and I’ve never sat there thinking “If this was only 2 seconds faster…” while doing an update. I’m sure the Homebrew folks could mine this for a few ideas of how to further optimize brew, but I don’t think I’ll be adopting it anytime soon. Compatibility is more important than speed in this case.
    • saghm8 minutes ago
      Brew definitely used to be a lot slower, and I used to find it very tedious. I feel like they&#x27;ve done a reasonably good job in improving that over the years though (with the switch to distributing binaries by default being a huge win in terms of speed). I have to wonder if stuff like this is more due to lingering feelings from before combined with the easy access to vibe coding tools. If LLM coding came a few years earlier, maybe projects like this one would have made more sense to me.
    • swiftcoder4 hours ago
      &gt; I’ve never sat there thinking “If this was only 2 seconds faster…” while doing an update<p>I definitely have thought something along those lines (mostly when I go to install a small tool, and get hit with 20 minutes of auto-updates first).<p>Pretty sure I also will not be adopting this particular solution, however
      • saghm5 minutes ago
        I&#x27;m not sure if I just have way fewer things installed than most people or I just update more often, but I haven&#x27;t experienced anything like this for years. I run `brew upgrade` probably around once every (work)day, usually right before doing a git pull or something, and then I&#x27;ll quickly look at a couple emails or slack messages, and then it&#x27;s always done by the time I switch back
      • bombcar4 hours ago
        I&#x27;ve never thought &quot;only 2 seconds faster&quot; - I&#x27;ve certainly thought &quot;why is this taking half the time it takes Gentoo to recompile an entire server&quot;.
      • joshstrange4 hours ago
        But you can turn that behavior off, IIRC it tells you the environment variable to set if you don’t want it to do that every time it runs.<p>I agree it’s annoying, but I haven’t turned it off because it’s only annoying because I’m not keeping my computer (brew packages) up-to-date normally (aka, it’s my own fault).
        • swiftcoder3 hours ago
          I&#x27;d be much happier if it were on a background job, than arbitrarily running when I invoke a command
        • slackfan4 hours ago
          Terrible default behavior is a great reason to abandon a software package.
      • SOLAR_FIELDS4 hours ago
        FWIW this seems to have improved in recent years. Back in the dark times of non parallelized downloads I would purposefully wait to end of day and fire the thing off before leaving
    • rconti1 hour ago
      I&#x27;ve been a lightweight homebrew user for many, many, many years now. I just use it to download or update a thing I need, once every 3-6mo.<p>It constantly blows my mind how insanely long it takes just to do a few simple things on the fastest hardware I&#x27;ve ever owned in my life.
    • pxc5 hours ago
      If you use the Homebrew module for Nix-Darwin, running `brew` against the generated brewfile becomes the slowest part of a `darwin-rebuild switch` by far. In the fast cases, it turns something that could take 1 second into something that takes 10, which is definitely annoying when running that command is part of your process for configuration changes even when you don&#x27;t update anything. Homebrew no-ops against an unchanging Brewfile are really slow.
    • ziml773 hours ago
      Agreed here. The speed bottleneck I run into is simply that there&#x27;s often a lot of packages that need updating, so there&#x27;s a lot to download. And if anything needs to be compiled from source then the time that takes will dominate (though I think everything I currently run is thankfully pre-built)
    • noahbp4 hours ago
      The same criticism has been said of Deno and Pnpm and bun, and yet, despite all these years since their respective releases, node and npm remain slower than all three options.
      • fleebee3 hours ago
        Yeah, but do they <i>work</i>? Last time I gave bun a chance their runtime had serious issues with frequent crashes. Faster package installation or spin-up time is meaningless if it comes at the cost of stability and compatibility.
        • alwillis1 hour ago
          bun is my go to for npm packages; it’s so much better and faster than npm, it’s not funny.<p>Never had any issues.
      • never_inline4 hours ago
        Well, pnpm solves the storage issue, which is a more pressing reason to use it. (I don&#x27;t know about deno&#x2F;bun)
    • motorpixel3 hours ago
      If I have to deal with even the mention of another package manager in the cross-platform dev ecosystem I am going to snap
    • dilap5 hours ago
      Horses for courses, but I&#x27;ve stopped using brew &#x27;cuz it&#x27;s too slow, so this might bring me back!<p>Edit: no, it won&#x27;t...
      • drob5184 hours ago
        Agreed on horses for courses. Different people have different tolerances. And yea, all things being equal, faster is better, but they are almost never equal. If you don’t mind me asking, what does “too slow” mean for you in this context? Do you have a particularly complex setup? And what do you use now as an alternative and how has that impacted the update speed?
        • dilap1 hour ago
          I wish I could remember the details -- I know I got annoyed with things being slow and when I got a new computer decided to go the no-homebrew route. I&#x27;m using nix, and it seems fine so far, but I also really don&#x27;t understand it at all, which is a little concerning. :-)
    • mproud4 hours ago
      My brew update&#x2F;upgrade takes forever
    • staticassertion3 hours ago
      I&#x27;ve wanted brew to be faster. It would be a nice QoL for me.
    • password43212 hours ago
      See also: asdf and mise<p><a href="https:&#x2F;&#x2F;github.com&#x2F;asdf-vm&#x2F;asdf&#x2F;issues&#x2F;290#issuecomment-2365369222" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;asdf-vm&#x2F;asdf&#x2F;issues&#x2F;290#issuecomment-2365...</a>
    • devkarev54 minutes ago
      [dead]
  • themadsens1 hour ago
    I naively assumed it would work on the <i>already</i> installed homebrew packages. No such luck.<p>After installing, &#x27;nb list&#x27; and thus eg. &#x27;nb outdated&#x27; will yield the empty list! I have absolutely no use for a competing homebrew installation that is <i>mostly</i> compatible ..
  • chuckadams5 hours ago
    This might be a good thing for homebrew to adopt for the download&#x2F;install process, but if it doesn&#x27;t include a ruby interpreter, I have a hard time seeing how it&#x27;s going to be compatible with anything but searching and installing bottles. I install most of my packages from a Brewfile, which itself is Ruby code.
    • alwillis1 hour ago
      &gt; I install most of my packages from a Brewfile, which itself is Ruby code.<p>Same. Whatever happens, the new version should support Brewfile.
  • hsaliak17 minutes ago
    This is most certainly vibed with a few optimization focused prompts. Yes - performance is a feature, but so is lack of risk.
  • luizfelberti4 hours ago
    It might be good to explain how this differs from zerobrew [0], which is trying to accomplish the same thing<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;lucasgelfond&#x2F;zerobrew" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lucasgelfond&#x2F;zerobrew</a>
    • Alifatisk2 hours ago
      Zerobrew looks mature, I&#x27;ll check it out.<p>Btw, I noted this:<p>&gt; Zerobrew is experimental. We recommend running it alongside Homebrew rather than as a replacement, and do not recommend purging homebrew and replacing it with zerobrew unless you are absolutely sure about the implications of doing so.<p>So I guess its fine to run this alongside Homebrew and they don&#x27;t conflict.
    • tomComb4 hours ago
      And zerobrew, like the original Homebrew, is compatible with Linux.<p>It appears that Nanobrew is not.<p>I care about the light-weight efficiency of these new native code variants much more when I want to use brew on some little Linux container or VM or CI, than I do for my macOS development machine.
  • 12_throw_away2 hours ago
    So, A) to what extent is this vibe coded? And B) what is &quot;trilok.ai&quot; where you download it from?
  • kassadin5 hours ago
    Do you choose compatibility or speed?<p>nb info --cask codex-app<p>nb: formula &#x27;--cask&#x27; not found<p>nb: formula &#x27;codex-app&#x27; not found
  • maxloh3 hours ago
    How does this work? AFAIK Homebrew formulae are written in Ruby [0].<p>Do they use some kind of Ruby parser to parse formulae?<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;homebrew-core&#x2F;blob&#x2F;26-tahoe&#x2F;Formula&#x2F;f&#x2F;ffmpeg.rb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Homebrew&#x2F;homebrew-core&#x2F;blob&#x2F;26-tahoe&#x2F;Form...</a>
    • fny2 hours ago
      It uses the Homebrew API and uses its own dependency resolver and linker to pull Homebrew&#x27;s precompiled packages.
  • manlymuppet3 hours ago
    If we get the Bun-ification of every package manager and language ecosystem that would be an awesome thing. This is a great trend.
  • alsetmusic4 hours ago
    I&#x27;m not a Python dev, but I appreciate the motivation uv has inspired across other package managers. I tried another brew replacement called zerobrew last month. It installed packages to a different directory from homebrew, so I didn&#x27;t actually test drive after seeing that. Regardless, I look forward to the competition pushing mainstream tools to improve their performance.
  • tantalor4 hours ago
    And why does speed matter in this case?
  • an0malous5 hours ago
    Does it reinstall postgres for every package install?
    • ericcholis5 hours ago
      HOMEBREW_NO_AUTO_UPDATE=1 will disable this (annoying) behavior. Set it in your bashrc or zshrc.
    • mitchitized5 hours ago
      (report card for an0malous): &quot;Does not play nice with other students.&quot;
  • pxc5 hours ago
    I&#x27;ve been looking for something like this, especially to use only with casks now that Homebrew has removed support for not adding the quarantine bit. Looking forward to giving it a try!
  • marksully3 hours ago
    what happens if I test this tool by installing some packages and then remove (the tool)? will I still be able to use Homebrew to manage these new packages?
  • Onavo3 hours ago
    The current version of brew has a flaw where the installer can&#x27;t install isolated dependency trees in a sterile manner. If you have packages A, B, C, and D that all have updates, and assuming A,B,C depend on each other and come out to a total of say 1MB, and D is 1000MB, brew works in a MapReduce manner where it will attempt to finish downloading everything in parallel (even though the real bottleneck is D) before doing any installation.<p>Since the first 3 has no dependency on D, a better way would be to install them in parallel while D is still downloading.
  • peytongreen_dev2 hours ago
    [flagged]