Live data from Hacker News

Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

notion.so

81–90 of 148 posts

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#81
pkgsrc, 'the portable package manager', support Apple Silicon:

http://pkgsrc.org/

No binary packages yet, but using it from source is pretty much a matter of downloading and extracting the 'current bz2', then:

    cd pkgrsc/bootstrap
    ./bootstrap --prefix=/opt/pkg
The default prefix is /usr/pkg, but that's protected by macOS' SPI. You might want to add /opt/pkg/bin and sbin to your $PATH. Then to install a package:

    cd pkgsrc/sysutils/nnn
    bmake install clean
Full documentation, including on how to create your own packages:

http://www.netbsd.org/docs/pkgsrc/

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#82

I wonder if Nix on macOS could become a better homebrew-killer by supporting Apple Silicon first. We already do aarch64-linux natively and some iOS cross compilation, so that should give us a head start.

I was using gentoo-prefix for the longest time on MacOS.

I never got why homebrew got so popular given how terrible it is. But it was more accessible to people unfortunately. I spent some time trying to become a Gentoo developer for a while and then just gave up because there was no response.

I used to updated the clang patches to make newer clang versions compile things on osx before most of those things made it upstream.

I think it's vastly superior to macports and while I find nix interesting I don't really find it that practical. I think what makes homebrew more popular than the rest is how many precompiled packages exist. If gentoo-prefix had the same amount of precompiled packages, then I'd think it would definitely be much better for most users.

[1] https://wiki.gentoo.org/wiki/Project:Prefix

[2] https://github.com/fishman/timebomb-gentoo-osx-overlay

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#84
post #55

Earlier quoted context omitted.

Apple deprecated direct access to system-provided interpreter installations, which is a good thing. Interpreter support was not and will not be a problem, the implication of the deprecation is you should install your own copy of those interpreters instead.

Yes, I understand that we can and should always install our own, and I have for years either with Homebrew or Conda. (Actually most of my development is python on Linux via Vagrant). But on the M1 Mini, out of the box, you can open Terminal, and python3 launches the Python 3.8 REPL. Python 2.7 also launches out of the box. So, can you explain what you mean by "direct access" not being allowed? I'm not following your…

I can imagine many existing tools still rely on the commands being directly accessible on PATH, and Apple may be reluctant to break them outright even that’s the goal. They are declared deprecated so people would refrain from using them for new things, and move old things away from them. That’s basically what deprecation means in software, as I understand it. Those commands wouldn’t be called deprecated if Apple breaks them outright.

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#85

That won't help running Docker and VirtualBox. There's also a big chance VirtualBox will never make it to M1 ;(

AS has support for virtualisation so VirtualBox will probably make it, but most likely only for running operating systems that run on ARM. There's very little preventing VB for being used as a tool to run the ARM versions of Linux or your favourite flavour of BSD, but Windows probably won't work (not until MS releases a download for Windows on ARM, at least). So, VirtualBox itself will work, but using it to run Windows applications won't.

The same is true for Docker, when someone gets a Linux VM to boot, Docker becomes a possibility just like on a normal version of macOS.

In the end I think it's only a matter of time before someone manages to combine Rosetta and virtualisation instructions (even though Apple says they don't support it) and fast-ish x64 emulation becomes a possibility. It will likely require some huge hacks that won't be allowed into the app store, but if Apple doesn't lock down the platform more with upcoming OS releases, developers and other technical-minded people will run that stuff just fine.

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#86
post #64

Earlier quoted context omitted.

Homebrew maintainer here. We don’t officially support Big Sur yet, but installing it via Rosetta will cause it to fetch x86 bottles instead of ARM ones. At least, that’s the plan.

Please make Homebrew’s telemetry opt-in instead of opt-out. I encourage you to follow the good example of how Debian runs popcon (popularity contest). By having your default be assuming user consent to surveillance, you have produced spyware that reports a user’s track log history to Google via IP geolocation and a persistent unique machine identifier included with the request to Google Analytics every time the user…

Is this actually GDPR compliant as it is?

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#87

I wonder if Nix on macOS could become a better homebrew-killer by supporting Apple Silicon first. We already do aarch64-linux natively and some iOS cross compilation, so that should give us a head start.

I was using gentoo-prefix for the longest time on MacOS. I never got why homebrew got so popular given how terrible it is. But it was more accessible to people unfortunately. I spent some time trying to become a Gentoo developer for a while and then just gave up because there was no response. I used to updated the clang patches to make newer clang versions compile things on osx before most of those things made it ups…

Which aspects of Nix would you say are "not practical"?

Re: Run x86 Apps (including homebrew) in the Terminal on Apple Silicon

#89

Earlier quoted context omitted.

No worries. I use Notion for a lot of stuff and I just wanted to quickly throw something up on the web just in case it could help someone. Sorry it is not as accessible but I don't have a blog I own that I can make that kind of design decision on.

Interesting. What made you pick Notion instead of a free WP site with default everything?

Notion is a notes app first and foremost but it’s possible to post a link to your notes publicly. It’s a neat feature but I didn’t realize they did that to the arrow keys
Post reply on HN