Re:Hacker's Guide to Setting Up Your Mac
by yrmt on Thursday October 02, 2014 @03:54PM
(#8402719)
It's slow and it has to build the packages most of the time. pkgin will install a precompiled packages very quickly. It is also a whole C program and Homebrew is just ruby scripts.
[ Parent
| on HN ]
> It is also a whole C program and Homebrew is just ruby scripts.
And that's a problem?
I would argue that it's a feature. Due to Homebrew being written in Ruby, it has easily allowed over 4,000 contributors [1]. Recipes are easy to read and inspect for verification purposes.
What is the advantage of C over Ruby?
[1](https://github.com/Homebrew/homebrew/graphs/contributors)
Re:Hacker's Guide to Setting Up Your Mac
by neckro23 on Thursday October 02, 2014 @06:37PM
(#8403493)
Homebrew now has prepackaged binaries ("bottles") for most of the packages that take awhile to build, which has really helped the speed thing.
Yeah, but they often rely on the homebrew being installed to /usr/local which is just plain bad advice.
At least, not using /usr/local myself, I see a lot of packages building because they have detected I changed the base directory.
So the opaque pre-compiled blob that installs other pre-compiled blobs is somehow better than a collection of scripts that lets you build from source? I don't think so... As an update is something that is done occasionally and in the background "slow" is not exactly a reason to change.
actually the "src" in pkgsrc means that you have the choice of using binary packages (pkg) or building from source. The best of both worlds!
Give it a try, you might like it (because it rocks!)
Homebrew does both as well for popular packages; 'bottles' are binary packages, with the option (--build-from-source) to build it yourself.
So the opaque pre-compiled blob that installs other pre-compiled blobs...
Why use OSX, then? Shouldn't you be using Gentoo?
Well the largest issue by far is the fact that it overrides system blobs. Homebrew installs into it's own sandbox area and symlinks if requested.