70 points · by anupamchugh · 6y ago · 79 comments
I can't help but smile at the prospect that Torvalds' pessimism here - while warranted - creates an incentive to prove something to both Torvalds and Apple...
[1]: https://www.phoronix.com/scan.php?page=news_item&px=Linux-5....
typedef enum CRC_SRC_SEL {
CRC_SRC_0 = 0x00000000,
CRC_SRC_1 = 0x00000001,
CRC_SRC_2 = 0x00000002,
CRC_SRC_3 = 0x00000003,
} CRC_SRC_SEL;
This might seem silly and redundant, and there are arguably better ways to express it, but the explicit approach makes a lot more sense if you skim the other definitions and see that some are 1-indexed, some have discontinuities, some have non-obvious reserved or otherwise special values, some have a totally distinct meaning for each value, etc.. Some of the definitions do look questionable, but on the whole I don't think any amount of macro magic could actually make these definitions small; the feature set of a modern GPU really is massively complex.[1] https://github.com/torvalds/linux/blob/c84e1efae022071a4fcf9...
It certainly wouldn't be useful for most projects, because most code that's un-referenced is only temporarily so. But in this codebase, it's a more permanent thing, with the driver for any given model being guaranteed to never need e.g. hardware register addresses for hardware doesn't have.
"Or all in, Linux 5.9 comes in at roughly 27.81 million lines distributed among some fifty-nine thousand source files.
...
For a while now the AMDGPU kernel graphics driver has been around 2+ million lines of code making it the largest in-tree kernel driver. With Linux 5.9, it comes in at 2.16 million lines of code plus another 247k lines of code comments and another 109k blank lines... Or up to 2.51 million lines of code is the AMD DRM driver code including AMDKFD, PowerPlay, DC, and all the kernel code ultimately making up the AMD Radeon support on that driver (but not the older Radeon DRM driver -- that older Radeon driver is at around 157k lines of code). "
Want a kernel that doesn’t support USB? Sure.
That’s true, but will they have the volume of Apple’s laptops? There’s a pretty decent demand for those. Nobody cares if no-name ARM chip user can run Linux.
Also, alternatives will generally not match the quality of Apple's laptops. And the M1 has unique features[1] that other vendors are unlikely to replicate anytime soon.
[1] https://twitter.com/ErrataRob/status/1331735383193903104
In the last 2 years my family completely switched away from iPhones and has replaced most of our macs with Windows. I am the lone holdout and when this laptop dies I will probably switch as well.
It makes me sad. I used to love Apple. But they became focused on locking down a closed ecosystem and have consistently made the user experience worse. I hate Windows. But Apple has made themselves obnoxious enough that I no longer trust their upgrades, and do not want to be locked in to their fragile hardware choices.
Why do you not trust their upgrades?
How are their hardware choices fragile? Do you mean build quality or do you think their ability to build their own chips will fail them and their chips for all the ipads and iphones haven't cut it?
How are you not locked into the hardware choices of any laptop maker? Are there realistic, upgradable laptops out there? or are you switching to a desktop system?
1. Having my phone break, one day out of warranty, with a factory defect. And then being unable to even set up an appointment because that phone was required for 2-factor authentication on my apple ID. (Which I don't even remember having set up.) I lost all data.
2. Having keys fall out of my computer requiring losing it for weeks. After that every article that I've read about how Apple has tried to lock down their hardware and make it harder for independent shops to repair has added to my concern that I'll have no options if it dies.
3. The Catalina upgrade was bad. A friend whose whole life was saved to iTunes found he was unable to migrate his extensive collection. His purchased movies, TV shows, songs, etc was over a terabyte, all gone. As for me, I was bit by the Catalina and Microsoft Teams don't want to play bug described in https://answers.microsoft.com/en-us/msoffice/forum/all/macos.... If you look at the thread, people are still reporting problems a year later. As for me, I cannot run XCode, and can only share my desktop if Teams is full screen.
You pay a premium for Apple hardware. You used to get a premium experience. The "premium experience" that I have been getting sucks. And not on hypotheticals, but on actual bad experiences that I have personally had.
That's who they've always been (post Woz, at least, which is a long time). They've always wanted to own the whole thing, from OS to hardware. There are advantages to that, but freedom for people to experiment, tinker, and run what they want isn't one of them.
I travel and move around a lot (not so much now, but I still move around my country and to the office), so portability is very important to me. Another advantage of the MacBook line is that I can carry one Anker dual USB-C charger and charge everything I have.
Any recommendation is more than welcomed!
Apple has the ultimate advantage of writing the OS and the chip and that level of integration is obviously not being met by anyone else in the industry.
I am not dismissing the possibility of an ARM desktop that is better performing than a similarly priced CISC system but I do doubt the level of difference Apple was able to achieve
I'm waiting on Unity to run natively on the M1. If it can magically beat my desktop PC ( working on an HDPR project now), I'm sold.
> laptop if he wants one—for example, the Pinebook Pro. The
> unspoken part here is that he'd like a high-performance
> ARM based laptop, rather than a budget-friendly but
> extremely performance constrained design such as one finds
> in the Pinebook Pro, the Raspberry Pi, or a legion of
> other inexpensive gadgets.
I believe he currently uses an AMD threadripper setup - there would be nothing stopping him using something like the PineBook Pro as a "dumb terminal" and having his builds done off-machine. It would mean that he is dependent on an internet connection, but it wouldn't have to be a fast one as he would only need to send deltas to the build process. (This would be on top of other mechanisms like CI.)
The PineBook Pro has quite a reasonable keyboard, is quite light and gets decent battery. He could reasonably use it all day without issue. Re-flashing it can be as simple as throwing a new SD card into it, which could also help in terms of security whilst traveling (re-flash it when you get to your location).
I would very much tell him and other people to seriously consider such a machine.
My feelings, exactly. Such a sweet piece of hardware, locked up to run only a nighmare OS.
If AMD (which already owns a good GPU architecture) chose to make an OS, it could get the same performance.
The vertical software integration creates many small wins that aren't insignificant overall but it's not why they are nearly 2x ahead of Qualcomm using the same ISA at the same power level in 3rd party userspace computation only benchmarks. There isn't any vertical integration in those, the raw performance is just better.
For another take on this Chrome vs Safari benchmarks put Chrome at ~90% the speed in web benchmarks and this is Chrome's 1st stable release of an M1 native version. At the same that's 45% faster than Chrome on my AMD 3950X. I remember when Apple added the Javascript rounding instruction to their chips people speculated that's why Safari was now so fast, turns out a Safari dev chimed it they hadn't started making use of it yet the new chips were just faster than before.
The implementation is not an ARM reference design; but it's Apple's own implementation. Why should they be forced to open it up? How are they limiting their competitors?
> they are nearly 2x ahead of Qualcomm using the same ISA at the same power level in 3rd party userspace computation only benchmarks
I'm not sure whether you're speaking about M1 or A14 here. A14 is just a bit faster than other mobile SOCs, certainly not 2x.
If you're speaking about M1... well, what are you comparing it against from Qualcomm? Do they have a similar product, with a similar target and power envelope? The recently announced Snapdragon 8cx Gen 2 from Qualcomm is around 6-7W TDP, which is 50% that of M1.
> There isn't any vertical integration in those, the raw performance is just better.
I'm unconvinced. We need to consider the 5nm production process, the everything-on-soc approach, and the fact that Intel is selling more-or-less the same CPUs as 5 years ago. The Ryzen 7 4800U is quite close to the M1 both performance wise and TDP wise. Now, take a 4800U, make it 5nm, build a SoC with it which includes the memory and build a finely tuned OS - aka "vertical integration". Would you really think you could appreciate a performance or thermal difference?
I know I would be much happier buying Apple hardware to run free software if I didn't feel like I was feeding the walled garden (because Samsung-made hackiniphones don't pay 30% to apple).
No other gadget maker has the internal engineering chops to do what Apple has done. And it'll be a few years before ARM releases a chip architecture that comes within spitting distance of the M1's performance -- by which time Apple will have released an even more powerful chip.