News for hackers. Stuff that matters.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by TimTheTinker on Wednesday November 01, 2023 @02:35PM (#38102819)
This unpaid team of volunteers is composed of some of the best and most productive hackers in the world.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by Cyph0n on Wednesday November 01, 2023 @03:03PM (#38103264)
If there ever was a team of 10x OS devs, this would definitely be one of them.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by solardev on Wednesday November 01, 2023 @03:17PM (#38103459)
I look at some of this code and can't imagine even being a 0.1x OS dev. How do people learn this stuff? It's incredible.

I'm just glad and grateful there's super smart people out there volunteering their time on worthwhile causes.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by viraptor on Wednesday November 01, 2023 @04:16PM (#38104411)
Every specialisation is specialisation. It's just that more people are into (for example) web apps than OS development. If you spend some time in embedded dev land, things like that make sense. You just get better at thinking at hardware level / synchronising devices, etc.

I mean, they're still super clever, but people learn that stuff by reading about it and practicing. You could go that way too, it's not black magic.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by omgmajk on Wednesday November 01, 2023 @04:48PM (#38104972)
> it's not black magic.

Then why do I have "black magic" on my LinkedIn profile???

Re:Asahi Linux goes from Apple Silicon port project to macOS... by robertlagrant on Wednesday November 01, 2023 @06:05PM (#38105973)
My guess is you invented the ATEM Mini.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by geerlingguy on Wednesday November 01, 2023 @08:21PM (#38107265)
Heh, I got the joke, at least.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by solardev on Wednesday November 01, 2023 @06:21PM (#38106178)
Sure seems like it to me, lol.

I learned web dev first by using Geocities and Frontpage, then Dreamweaver. These days I actually get paid to write Javascript (something young me would've found unbelievable enough already), but to me that's still a huge difference from "real" programming, especially in C or assembly.

Web dev (at least the kind I do) is mostly still just declaring UI in a XML like syntax, then wrapping it up in some events and state management. It's not that different from, say, Visual Basic. At its core it's a bunch of event driven reactions and API calls based on UI clicks. Once upon time that was Perl or PHP or jQuery, now it's usually React, but the fundamental process of "declare UI, add event handlers, send to APIs" hasn't changed much IMO.

But an OS? Man, how do you work with memory access? Overflows? Garbage collection? Device drivers? Caching? Graphics pipelines? USB? Lightning? I don't even know where to start with any of that, and an OS is ALL of that and then some.

Mad props, is all I'm sayin'.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by SonOfLilit on Wednesday November 01, 2023 @09:08PM (#38107645)
It's almost exactly the same, except the building blocks are much simpler (=more primitive) so you have to spend more time per useful thing you want to get the machine to do.

If you want to get a taste of what that means that is definitely 100% within your abilities, try to write a Brainfuck interpreter in JS, and a Brainfuck to JavaScript compiler (that yields a string that you can eval() to run the program).

Then try to write some simple Brainfuck programs, then try to write a Brainfuck interpreter in Brainfuck. At this point you won't yet know how to write an operating system, but you'll definitely know how it feels to write one.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by solardev on Wednesday November 01, 2023 @09:22PM (#38107765)
Heh, that seems like a perfect weekend project for whenever I feel like I'm missing a swift kick in the nuts.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by SonOfLilit on Thursday November 02, 2023 @07:11AM (#38111769)
Not sure why I'm getting such negative reactions. I've given these exercises to many developers, some of them very junior, and seen them complete them successfully. It's not that hard to do each step after the previous ones, and very rewarding to complete the entire thing.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by bmicraft on Thursday November 02, 2023 @09:38AM (#38113350)
It might not be "hard", but it sure sounds very tedious to put it lightly
Re:Asahi Linux goes from Apple Silicon port project to macOS... by SonOfLilit on Thursday November 02, 2023 @11:31AM (#38114933)
Not too much work, either. I once live coded a Brainfuck interpreter in 30 minutes for PyCon IL, and there aren't really any tricks involved, just work, so it should take the average dev that didn't just practice it maybe 2-4 hours: https://www.youtube.com/watch?v=F5P6Q7vs_-Y
Re:Asahi Linux goes from Apple Silicon port project to macOS... by solardev on Thursday November 02, 2023 @04:03PM (#38119261)
I once live coded a vertically centered image in 30 minutes. My coworkers were pretty impressed. We had low standards...

Another time, I read a Brainfuck wikipedia entry for about 30 seconds.

I still haven't recovered.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by solardev on Thursday November 02, 2023 @11:01AM (#38114452)
It sounds doable, just painful! I'm not sure I'm masochistic enough. Like I could do that, or maybe go on a bike ride, or get some ice cream...

I think I have pretty underwhelming dreams relative to OS devs, lol. I feel a ping of reward when a web page loads without crashing, or a npm audit passes without red, or I finish a level in Mini Motorways.

Generally, my secret to a happy life is to aim low, and then be satisfied once I hit half that :)

Re:Asahi Linux goes from Apple Silicon port project to macOS... by SonOfLilit on Thursday November 02, 2023 @11:27AM (#38114866)
I promise you it isn't. It's a fun challenge, and not too hard. Smaller and easier, say, than delivering a full eCommerce website end-to-end. I'm not an OS dev myself, I just love playing with technology of all kinds and picking up elegant ideas, and this is one kind :)
Re:Asahi Linux goes from Apple Silicon port project to macOS... by agar on Thursday November 02, 2023 @01:03AM (#38109206)
Thanks for the laugh.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by viraptor on Wednesday November 01, 2023 @10:01PM (#38108053)
> But an OS? Man, how do you work with memory access? Overflows? Garbage collection? Device drivers? Caching? Graphics pipelines? USB? Lightning?

You start much simpler. Grab some ESP32 or ARM development board and start with trivial things on them. Simple devices also have simple drivers - sure, trying to connect to an NVIDIA card is hard, but an 128x128 LCD display is trivial. Then you build more complex things on top of that. Same with PHP - you start with 'echo "hello world"' rather than full reactive page with many server routing endpoints.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by hnfong on Thursday November 02, 2023 @12:37AM (#38109043)
Technologies become more complex as people accumulate experience.

Web only started in the 90s, and was intentionally designed to be simple (html and stuff). Even so, it's morphed into a very complex thing already. It doesn't feel like so because you (and to some extent, I too) have been witnessing its evolution as it happens, so it's all incremental, but I can imagine a total newbie coming into the field and feeling overwhelmed.

Like, try to explain things like CSRF tokens, Web Assembly, HTTP/3...

Re:Asahi Linux goes from Apple Silicon port project to macOS... by TerrifiedMouse on Thursday November 02, 2023 @12:52AM (#38109140)
> but people learn that stuff by reading about it and practicing. You could go that way too, it's not black magic.

It is black magic to people who read and don’t understand a thing. :|

Re:Asahi Linux goes from Apple Silicon port project to macOS... by izacus on Thursday November 02, 2023 @01:54AM (#38109472)
Remember, so is centering a div.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by bmicraft on Thursday November 02, 2023 @09:40AM (#38113369)
I thought flexbox pretty much fixed that
Re:Asahi Linux goes from Apple Silicon port project to macOS... by junon on Wednesday November 01, 2023 @06:42PM (#38106399)
osdev.org and lots and lots of reading code and manuals.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by jojobas on Thursday November 02, 2023 @02:17AM (#38109598)
And here they are, doing charity work to the benefit of the largest corporation in the world.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by danieldk on Wednesday November 01, 2023 @03:20PM (#38103495)
I don't understand why they don't just pay them to work on Asahi and then they can learn directly from all their findings?
Re:Asahi Linux goes from Apple Silicon port project to macOS... by stuaxo on Wednesday November 01, 2023 @03:29PM (#38103599)
Apple would want them to sign an NDA and that would be incompatible with them doing as much as they do in Linux.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by danieldk on Wednesday November 01, 2023 @05:27PM (#38105563)
Apple can decide to not let them sign an NDA and just pay them for the excellent work that they are doing now and give them a good priority channel for reporting issues.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by dmonitor on Wednesday November 01, 2023 @06:06PM (#38105986)
why would apple pay them to do something they already do for free?
Re:Asahi Linux goes from Apple Silicon port project to macOS... by danShumway on Wednesday November 01, 2023 @06:18PM (#38106148)
I very much doubt the math for the PR-to-cost ratio works out to justify hiring them, but presumably the reason would be so that Apple wouldn't have to see articles like this or to have the top comment on tech threads be "this is a huge embarrassment for Apple".

Similar reason as to why companies have bug bounties; they want to incentivize hackers to report bugs through official channels early enough in development that they can get patched before release and before tech journalists write articles about them. They don't want to find out that their products have bugs via social media. Even if that process happens out in the open via a Github issue, getting giant problems like this caught before release and quickly escalated internally through official channels would go a long way towards mitigating article titles like this.

Having said that, does Apple care about the Register or HN? Probably not? And assuming that Apple did care about bad PR among extreme power-users, would Asahi Linux want to be paid by Apple to do testing on their releases? That's also not necessarily a given, the team would have to decide if they wanted to have a more official relationship with the company or not.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by fostware on Wednesday November 01, 2023 @08:02PM (#38107143)
Pretty sure TheReg has been on the Apple blacklist for PR and industry events for some time. Like TheReg, I think it'd be a badge of honor...
Re:Asahi Linux goes from Apple Silicon port project to macOS... by threeseed on Wednesday November 01, 2023 @03:48PM (#38103883)
Because having worked at Apple and seen Radar.

The issue has never been finding the bugs. It's having the capacity to fix the bugs.

And when you are this early in the OS release cycle (we are only at 14.1) there are inevitably a lot of P1 issues that limited resources are competing to fix.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by Wowfunhappy on Wednesday November 01, 2023 @04:24PM (#38104561)
But I have to imagine an issue that renders Macs unbootable would have been considered blocking, had Apple known about it.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by threeseed on Wednesday November 01, 2023 @04:49PM (#38104988)
It's an edge case with a workaround. P2 and definitely not enough to prevent a release.

Only 14/16-inch models where users have explicitly disable ProMotion and are desperate to boot into the RecoveryOS.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by Wowfunhappy on Wednesday November 01, 2023 @04:59PM (#38105135)
My understanding was that if you disable ProMotion you can become unable to boot into your main OS.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by MichaelZuo on Wednesday November 01, 2023 @11:17PM (#38108581)
Like the other user said, this bug effects a much larger set of customers.

To ship this severity of bug in an X.6 release too is definitely very eyebrow raising.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by callalex on Wednesday November 01, 2023 @08:34PM (#38107387)
Who/what is limiting those resources? It certainly isn’t a lack of US Dollars. Is it executives on the financial team requiring a never ending increase in profit margins even though the margins from two years ago were also infinitely sustaining?
Re:Asahi Linux goes from Apple Silicon port project to macOS... by SamuelAdams on Wednesday November 01, 2023 @09:15PM (#38107706)
Most likely people. As large as Apple is, there’s only so many programmers writing code. If you’ve ever read The Mythical Man Month, you know that throwing more programmers at a project does not nessesarily make it go faster.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by fomine3 on Wednesday November 01, 2023 @10:55PM (#38108441)
QA is somewhat scalable than development. More test to find more bugs.
Re:Asahi Linux goes from Apple Silicon port project to macOS... by troupo on Wednesday November 01, 2023 @11:48PM (#38108786)
> And when you are this early in the OS release cycle (we are only at 14.1)

I hope this was a joke :)

The worst thing that Apple did to themselves is force everything and everyone into a yearly release cycle

Re:Asahi Linux goes from Apple Silicon port project to macOS... by Twisell on Wednesday November 01, 2023 @06:08PM (#38106006)
Asahi Lina (one team member) recently got a 6 figures paycheck from Apple through their bug bounty program for CVE-2022-32947 https://news.ycombinator.com/item?id=37543664

This is actually the best of both world, they stay independents, they get paid, Apple fixe the reported exploit.

Re:Asahi Linux goes from Apple Silicon port project to macOS... by WaffleIronMaker on Thursday November 02, 2023 @02:15PM (#38117786)
More information:

Here's the clip where Asahi Lina says she received $150,000 for CVE-2022-32947:

- https://youtu.be/hDek2cp0dmI?t=11451

And Apple credited them under GPU Drivers for macOS Ventura 13:

- https://support.apple.com/en-us/HT213488#:~:text=CVE%2D2022%...

Related coverage:

- https://secry.me/explore/news/cve-2022-32947-first-critical-...

- https://nvd.nist.gov/vuln/detail/CVE-2022-32947