Hacker Newsnew | past | comments | ask | show | jobs | submit | c0deR3D's commentslogin

When would Apple silicons made natively support for OSes such as Linux? Apple seemlingly reluctant to release detailed technical reference manual for M-series SoCs, which makes running Linux natively on Apple silicon challenging.


Probably never. We don't have official Linux support for the iPhone or iPad, I would't hold out hope for Apple to change their tune.


That makes sense to me though. If you don’t run iOS, you don’t have App Store and that means a loss of revenue.


Right. Same goes for MacOS and all of it's convenient software services. Apple might stand to sell more units with a more friendlier stance towards Linux, but unless it sells more Apple One subscriptions or increases hardware margins on the Mac, I doubt Cook would consider it.

If you sit around expecting selflessness from Apple you will waste an enormous amount of time, trust me.


If you don't run macOS, you don't have Apple iCloud Drive, Music, Fitness, Arcade, TV+ and News and that means a loss of revenue.


As I replied in else where here, I do not run any Apple Services on my Mac hardware. I do on my iDevices though, but that's a different topic. Again, I could be the edge case


> I do not run any Apple Services on my Mac hardware

Not even OCSP?


I have no idea what that is, so ???

But if you're being pedantic, I meant Apple SaaS requiring monthly payments or any other form of using something from Apple where I give them money outside the purchase of their hardware.

If you're talking background services as part of macOS, then you're being intentionally obtuse to the point and you know it


You lose out on revenue from people who require OS freedom though


All seven of them. I kid, I have a lot of sympathy for that position, but as a practical matter running Linux VMs on an M4 works great, you even get GPU acceleration.



That’s what’s weird to me too. It’s not like they would lose sales of macOS as it is given away with the hardware. So if someone wants to buy Apple hardware to run Linux, it does not have a negative affect to AAPL


Except the linux users won't be buying Apple software, from the app store or elsewhere. They won't subscribe to iCloud.


I have Mac hardware and and have spent $0 through the Mac App Store. I do not use iCloud on it either. I do on iDevices though. I must be an edge case though.


All of us on HN are basically edge cases. The main target market of Macs is super dependent on Apple service subscriptions.

Maybe that's why they ship with insultingly-small SSDs by default, so that as people's photo libraries, Desktop and Documents folders fill up, Apple can "fix your problem" for you by selling you the iCloud/Apple One plan to offload most of the stuff to only live in iCloud.

Either they spend the $400 up front to get 2 notches up on the SSD upgrade, to match what a reasonable device would come with, or they spend that $400 $10 a month for the 40 month likely lifetime of the computer. Apple wins either way.


Of course this is the reason. And this is why Apple has become so bad for the tech enthusiasts, no matter how good the OS/software can be, you have to pay a tax that is way too big because you already have the competence that should allow you to bypass it.

It's like learning about growing vegetables in your garden but then having to pay the seeds for it much more because you actually know how to produce value with them.

The philosophy at Apple has changed from premium tools for professional to luxury device for normies that makes them pay for their incompetence.


Same here.


You also lose out on developers. The more macOS users, the more attractive it is to develop for. Supporting Linux would be a loss for the macOS ecosystem, and we all know what that leads to.


Those buying the hardware to run Linux also aren’t writing software for macOS to help make the platform more attractive.


There are a large number of macOS users that are not app software devs. There's a large base of creative users that couldn't code their way out of a wet paper bag, yet spend lots of money on Mac hardware.

This forum looses track of the world outside this echo chamber


I’m among them, even if creative works aren’t my bread and butter (I’m a dev with a bit of an artistic bent).

That said, attracting creative users also adds value to the platform by creating demand for creative software for macOS, which keeps existing packages for macOS maintained and brings new ones on board every so often.


I'm a mix of both, however, my dev time does not create macOS or iDevice apps. My dev is still focused on creative/media workflows, while I still get work for photo/video. I don't even use Xcode any further than running the CLI command to install the necessary tools to have CLI be useful.


While I don't think Apple wants to change course from its services-oriented profit model, surely someone within Apple has run the calculations for a server-oriented M3/M4 device. They're not far behind server CPUs in terms of performance while running a lot cooler AND having accelerated amd64 support, which Ampere lacks.

Whatever the profit margin on an iMac Studio is these days, surely improving non-consumer options becomes profitable at some point if you start selling them by the thousands to data centers.


But then they'd have to open up their internal documentation of their silicon, which could possibly be a legal disaster (patents).


> So if someone wants to buy Apple hardware to run Linux, it does not have a negative affect to AAPL

It does. Support costs. How do you prove it's a hardware failure or software? What should they do? Say it "unofficially" supports Linux? People would still try to get support. Eventually they'd have to test it themselves etc.


Apple has already been in this spot. With the TrashCan MacPro, there was an issue with DaVinci Resolve under OS X at the time where the GPU was cause render issues. If you then rebooted into Windows with BootCamp using the exact same hardware and open up the exact same Resolve project with the exact same footage, the render errors disappeared. Apple blamed Resolve. DaVinci blamed GPU drivers. GPU blamed Apple.


> Apple has already been in this spot.

Has been. This is importance. Past tense. Maybe that's the point - they gave up on it acknowledging the extra costs / issues.


We used to have bootcamp though.


There you go using logical arguments in an emotional illogical debate.


Is it not an option to run Darwin? What would Linux offer that that would not?


Darwin is a terrible server operating system. Even getting a process to run at server boot reliably is a nightmare.


I don't think Darwin has been directly distributed in bootable binary format for many years now. And, as far as I know, it has never been made available in that format for Apple silicon.


Reminds me of User Mode Linux, which AFAIK, runs only on Linux, maybe *nix.


UML runs only on Linux and only on x86, amd64 and powerpc. Which is a real shame, otherwise you could run a full Linux kernel on all these arm Android devices.


A shame, true, imagine having a whole Linux kernel as a macOS binary, running Linux containers with as little overhead as possible.


UML and "as little overhead as possible" probably shouldn't appear in the same train of thought. I remember it from the very earliest Linux VPS providers, IIRC it only got semi-usable with some custom work (google "skas3 patch"), prior to which it depended on a single process calling ptrace() on all the usermode processes to implement the containerization. And there's another keyword that should never appear alongside low overhead in the same train of thought


Page-grained mappings UML does make for tons of overhead. AFAIR Linux even considered a specialized reverse page mapping structure just to accelerate those, but ultimately dropped it because of memory overhead and code complexity.

Realistically, the overhead isn't ever going to be lower than hardware virtualization unless one goes for an API proxy a-la wine and WSL1 - but that's tons of work.


Your scenario makes me suspecting that it is Xilinx flavored Yocto causing the problem. I think that removing some unused Xilinx-specific layers/recipes can reduce the prologue and epilogue execution time.


Well, Xilinx layers are definitely not the most light-weight ones, though they still shouldn't cause parsing/task init to take minutes. By any chance, are you using WSL? I have heard some complaints about storage I/O performance, when it comes to this...


Nope, mine runs on a native Linux box featuring Intel i7-1370P and 32GB RAM. Maybe Xilinx has some tuning which makes Yocto become slow at parsing the recipe dependency and the likes.

I've tried asking the Xilinx community, and got only a reply saying that there is a database in Yocto which limits the scalability.


Got me wondering, how does it works?


Out of curious, does BPF now capable of capturing all the context switch events such as CPU trap?

Also, if the overhead is negligible, maybe the author can try to merge this into mainline with the use of static key to make the incurred overhead switchable. In spite of the static key, the degree of the accompanied inteferences on cache and branch predictor might be an intriguing topic though.


Lots of the low level exception/trap/fault handling functions are blacklisted, probably to avoid lockups and unwanted recursion mayhem:

  $ sudo wc -l /sys/kernel/debug/kprobes/blacklist 
  783 /sys/kernel/debug/kprobes/blacklist
Edit: Perhaps an alternative approach would be to attach probes to relevant (precise) PMU events. There's also this prototype of adding breakpoint/watchpoint support to eBPF [1]. But actually doing stuff within this context may get complicated very fast, so would need to be severely limited, if feasible at all.

[1] https://ebpf.io/summit-2020-slides/eBPF_Summit_2020-Lightnin...


In the near future, people can control appliances with purely their own consciousness, and the only prerequisite is that it requires a minimum consiciousness level, which is reachable for most of the human being. Lastly, we usually think that people living in the Stone age are primitive people. Are they?

https://twitter.com/Michell51304


If this is the case, it's weird then. Why releasing CPU for only a glimpse saves battery?


Perhaps it's like my car. It doesn't know when it turns off the engine that I actually need it in a second, so shutting down at a light ends up being brief and inconvenient.


Sure, I'd try remove the app from the power efficiency restricted app list, which by default are enforced on all apps.


Yes, I was using Bluetooth headphones at the moment. I don't have the app name at hand, but I know that the app is also a file manager.

So there's probably jitter in my headphones, or the app was not suppose to do music playback smoothly because that's not its main usage.


Nope, mine is a playlist with only 3 local-stored tracks. Yes, I loop these 3 tracks all the time.


I would be more quick to check those three files rather than blame the entire modern (iPhone 8 Plus is modern now?) smartphone industry.


Ok, lets have them, what 3 tracks do you have on infinite repeat?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: