←back to thread

OpenGL 3.1 on Asahi Linux

(asahilinux.org)
512 points simjue | 1 comments | | HN request time: 0s | source
Show context
kytazo ◴[] No.36213178[source]
Its been more than a year I'm running asahi on my macbook air and I can't stress how grateful I feel for enjoying such wonderful freedom.

I don't feel like ever going back to x86 to be honest, at this point there is nothing lacking or unable to run and when the neural engine drivers come online now that the GPU is starting to mature people will be able to juice out every last bit of computation this machine is capable of.

For the record, I've switched to the edge branch a couple of months ago and honestly I noticed no actual difference in my day-to-day tasks which is really telling about how powerful even the M1 is when it can handle software rendering in such an effortless manner coupled with anything else running.

Really thank god for asahi being a thing.

replies(8): >>36213250 #>>36213626 #>>36213905 #>>36214314 #>>36214545 #>>36215750 #>>36217933 #>>36218411 #
imiric ◴[] No.36214314[source]
> at this point there is nothing lacking or unable to run

Sure there is. You just haven't run into it yourself.

Faster, cooler and more power efficient hardware is great. I just don't think that it makes up for depending on a small team of volunteers to resolve all hardware issues in an ecosystem hostile to OSS, which might break at any point Apple decides to do so.

And the incompatibilities with ARM are not negligible. If all your software runs on it, great. If not, good luck depending on yet another translation layer.

I'm sticking with my slow, hot and power-hungry x86 machines with worse build quality for the foreseeable future. The new AMD mobile chips are certainly in the ballpark of what Apple silicon can do, so I won't be missing much.

replies(7): >>36214444 #>>36214810 #>>36215384 #>>36215475 #>>36215725 #>>36220131 #>>36220674 #
psanford ◴[] No.36214810[source]
> depending on a small team of volunteers to resolve all hardware issues in an ecosystem hostile to OSS, which might break at any point Apple decides to do so

You are describing how most OSS software has been developed. I don't see how this is any different than early linux when no hardware manufacturers had any interest in supporting it.

A lot of the work that the asahi team is doing is just fixing Arm issues in the linux kernel (and sadly user space). That work will benefit everyone using Arm systems, not just folks running asahi on Apple hardware.

Its good for there to be more hardware architecture competition! I'm glad I can run my server workloads on the Arm servers in AWS that are 20% cheaper than the equivalent x86 machines. I'm glad that I can run the software I like (linux) on legitimately nice hardware (m2 air). You can make different decisions on what architectures are best suited for your needs, but the competition in the market improves the options and prices for everyone.

I've been using Asahi since the fall of 2022. When I first started using it a lot of software was broken because of bugs in that software that had never been exposed before (specifically around page sizes larger than 4k). All of that software has now been fixed. Support for linux/arm will only continue to improve as more people use it.

replies(3): >>36215428 #>>36217181 #>>36218562 #
imiric ◴[] No.36217181[source]
> I don't see how this is any different than early linux when no hardware manufacturers had any interest in supporting it.

It's very different. Hardware manufacturers in the 90s were incentivized to support Linux to expand their customer base. A trillion-dollar corporation has no incentive to sell their hardware to a niche of a niche of technical users who are not part of their software ecosystem.

Another major difference is that Asahi is a small team of dedicated volunteers who want to run Linux on their Macs. They're a niche intersection of Linux hackers and Apple fans. Unsupported hardware in the 90s typically had a much larger customer base and group of hackers willing to spend time adding supporting for it.

Even worse: Apple can decide at any point to make their hardware much more difficult to support. Newer models or firmware updates might break things. Being at the whims of a corporation that is the antithesis of F/LOSS to run Linux on their hardware doesn't inspire confidence.

> Its good for there to be more hardware architecture competition!

> Support for linux/arm will only continue to improve as more people use it.

Agreed. I'm glad that Asahi exists. But we've had ARM Linux distros for decades now. What Asahi is doing is specifically to support Apple hardware. Some improvements will trickle out to improve general ARM support, but this points out the gargantuan task they're actually up against. Not only do they need to reverse engineer the hardware, they have to resolve all software issues with Linux and ARM. My hat's off to them. The willpower, patience and skills required to wade through the absolute mountain of issues must be astronomical. Yet this is also part of my concern; how long can a developer keep the motivation and sanity to swim against the current?

It's great that Asahi works for you and everyone else. I'm just pointing out why it will likely never be my choice for any serious work.

replies(4): >>36217616 #>>36221161 #>>36223356 #>>36224575 #
psanford ◴[] No.36217616[source]
> Hardware manufacturers in the 90s were incentivized to support Linux to expand their customer base.

That is not an accurate description of linux support by hardware manufactures from that time period.

> Unsupported hardware in the 90s typically had a much larger customer base and group of hackers willing to spend time adding supporting for it.

I also don't think this is generally correct. Have you looked at all the random drivers in the linux kernel for niche hardware. A ton of that is from one or two hobbyists taking the time to add support.

> Apple can decide at any point to make their hardware much more difficult to support. Newer models or firmware updates might break things. Being at the whims of a corporation that is the antithesis of F/LOSS to run Linux on their hardware doesn't inspire confidence.

I guess, but so what? Apple can't break the hardware they are already shipping if you are just running linux on it. Its true, I might not buy a theoretical future laptop from Apple if I can't run linux on it, but I don't see how that would affect my purchasing decision for hardware that is currently available.

> The willpower, patience and skills required to wade through the absolute mountain of issues must be astronomical. Yet this is also part of my concern; how long can a developer keep the motivation and sanity to swim against the current?

Hmm, maybe you've not worked on projects like this, or are motivated by different things. To me, reverse engineering a thing to figure out how it works and then writing software to get it to do things the original designers hadn't planned for is one of the more satisfying and fun activities of being a software engineer. I suspect the asahi team is having fun doing a lot of this work. (That's not to say its all fun. It sounds like getting things upstreamed has been trying. I also think having to read giant comment threads where people are needlessly negative about their work might be a bit demoralizing.)

> It's great that Asahi works for you and everyone else. I'm just pointing out why it will likely never be my choice for any serious work.

You should obviously run whatever works for you.

replies(2): >>36217870 #>>36222815 #
imiric ◴[] No.36217870[source]
> Have you looked at all the random drivers in the linux kernel for niche hardware. A ton of that is from one or two hobbyists taking the time to add support.

Sure, for _niche_ hardware. When was the last time a GPU driver was added by reverse engineering it? The single Nouveau maintainer was burnt out, last I heard, and the project was never a serious alternative to NVIDIA's closed driver. Kudos to whoever found the energy to contribute to it, but these projects usually don't have a bright future.

Now expand that to include maintaining all Apple devices, and it's an insane amount of effort realistically unsustainable for any group of volunteers. But good luck to the Asahi team.

replies(4): >>36218036 #>>36218675 #>>36219052 #>>36222834 #
psanford ◴[] No.36218036[source]
Nvidia/Nouveau is a good example. I've had a number of laptops with nvidia graphics. For most of that time Nouveau was _more stable_ than the official nvidia drivers. Linux clearly was a second class citizen for nvidia for most of the last 20 years. Maybe go back and rewatch linus' rant about nvidia if you need a reminder about how terrible they have been historically.

Nvidia now only sort of cares about linux because of gpgpu applications. They still clearly don't care about gaming on linux; or desktop stability.

Yes, I will take Nouveau over the official drivers whenever I can.

replies(2): >>36218228 #>>36223956 #
imiric ◴[] No.36218228{3}[source]
See, now I just think you're gaslighting me.

Nouveau has never been more stable, or nearly as performant as official NVIDIA drivers. I've had the exact opposite experience from you on every laptop I've had since Nouveau was released, so we must live in different universes.

> Linux clearly was a second class citizen for nvidia

And Linux is not even on the radar for Apple. :)

Anyway, I think we've exhausted our arguments here, and are just talking past each other now. Have a good day.

replies(3): >>36218319 #>>36219396 #>>36222511 #
1. psanford ◴[] No.36218319{4}[source]
If you've had good experiences with the nvidia drivers, thats great. My experiences with them have been bad and I will use Nouveau for general desktop environments unless I'm also doing gpgpu.