Live data from Hacker News

Tales of the M1 GPU

asahilinux.org

321–330 of 390 posts

Re: Tales of the M1 GPU

#322
post #267

Loved reading this. About the triangle/cube screenshot, they were taken on Linux on a physical Mac OS computer? How were you able to deploy your driver, does the M1 GPU have a basic text/console mode allowing you to start and work with Linux? Awesome job.

Displaying to the screen and stuff was already working, you can already use Asahi Linux and have a GUI and everything, it’s just that it’s all rendered by the CPU right now

Re: Tales of the M1 GPU

#323
post #152

Earlier quoted context omitted.

The quantity of exclamation points lol. I assume I'm just too old to get it...I'm okay with that, and I'm damn impressed with the results, so more power to Lina, whatever works for her.

Yeah, it's just... sorry, but there is nothing in the world so exciting that 149 exclamation points (thanks to another poster for counting) is warranted. When every statement is exciting and special, then none of them are.

I'm pretty sure that M1 Linux GPU drivers are indeed that exciting. Being able to ditch the ever-increasing burden of keeping macOS from telling the Cupertino mothership every single little thing I do on my Mac for a proper Linux desktop on the best laptop ever made (I have a maxed out 64gb/8tb M1 max rMBP) is... exciting, to put it mildly.

Re: Tales of the M1 GPU

#324

Earlier quoted context omitted.

They are written in a strange subset of C++ with its own inheritance system and currency classes. In NeXTStep they were written in ObjC, and probably should've stayed that way.

> They are written in a strange subset of C++ with its own inheritance system and currency classes. Can someone explain? Is there something other than DriverKit, which seems to be C++? https://developer.apple.com/documentation/driverkit

You have to go back to IO Kit, Driver Kit is the new one in userspace.

https://developer.apple.com/documentation/iokit

Which is how the Objective-C framework for NeXTSTEP drivers used to be called,

http://www.nextcomputers.org/NeXTfiles/Docs/NeXTStep/3.3/nd/...

Re: Tales of the M1 GPU

#325

Keep it up! I'm sticking with Thinkpads until Linux support

Also they have matte screens and real keyboards. The 2015MBP one was the last one that was passable for me, what came after is horrible. Even the new MBP that has real ports again is still not as good as the 2015 in terms of keyboard.

All currently shipping Macbook Airs and Pros have a keyboard that is, as far as I can tell, identical to the great one from 2015 that we love. They switched them all back after the butterfly keyboard fiasco, but hardware pipelines are 2-4 years deep and it took a while.

Re: Tales of the M1 GPU

#326
post #262

Half the comments here are talking about the vtuber herself. Who cares. It's been talked before. Just imagine if half the thread is discussing what gender she is. What I am interested in is the claims here https://asahilinux.org/2022/11/tales-of-the-m1-gpu/#rust-is-... . (what is it called if it comes with a proof?). The resident C/C++ experts here would have you believe that the same is possible in C/C++. Is that tr…

In C? No, not unless you write your own scaffolding to do it. In C++? Maybe, but you’d need to make sure you stay on top of using thread safe structures and smart pointers. What Rust does is flip this. The default is the safe path. So instead of risking forgetting smart pointers and thread safe containers, the compiler keeps you honest. So you’re not spending time chasing oddities because you missed a variable initia…

It would also have been possible in Ada, but of course it isn't cool.

Re: Tales of the M1 GPU

#327

Earlier quoted context omitted.

Of course it's possible in either. By the way, Mac drivers are in fact written in a subset of C++. At least they used to be, maybe that has changed.

They are written in a strange subset of C++ with its own inheritance system and currency classes. In NeXTStep they were written in ObjC, and probably should've stayed that way.

Just like UNIX kernel code is a strange subset of C.

I always find strange how "kernel C" is C, even though ISO C would bork in kernel space, but doing a similar C++ subset is pointed out as not being C++.

Re: Tales of the M1 GPU

#328

Earlier quoted context omitted.

I'm not sure Apple would want users to run anything but Apple operating systems on their hardware, and the other way around (fighting against hackintoshes back in the day). I hope to be proven wrong though, as their hardware is really interesting.

They've never taken issue with other OSes running on their hardware. They made Boot Camp for Intel Mac users to run Windows and wrote Windows drivers to use Apple-specific hardware like the iSight cameras. They even showcased this feature in the TV ads. Linux also worked but wasn't explicitly supported. The rule is only, no macOS on non-Apple hardware.

> They've never taken issue with other OSes running on their hardware.

What on earth are you talking about, iPads, iPhones and all other new devices from Apple outright lockout any kind of 3rd party OS from booting on them.

MacBooks are the only ones grandfathered into old behaviour of actually allowing 3rd party OSes (although they've also lost the ability to boot Windows in latest generation as well).

Re: Tales of the M1 GPU

#329

Great work! Seems like Apple could make this a whole lot easier by giving even the slightest support...

It is irksome to me given how much Linux is used inside Apple (board bringup, debugging, etc). You benefit from these gifts, Apple, give back a teensy bit in return. Everybody wins.

Re: Tales of the M1 GPU

#330

Half the comments here are talking about the vtuber herself. Who cares. It's been talked before. Just imagine if half the thread is discussing what gender she is. What I am interested in is the claims here https://asahilinux.org/2022/11/tales-of-the-m1-gpu/#rust-is-... . (what is it called if it comes with a proof?). The resident C/C++ experts here would have you believe that the same is possible in C/C++. Is that tr…

I must admit that for me this was a pleasant change of format from the youtube videos.
Post reply on HN