by kumarvvr · 5y ago · 0 comments
Apple just showed to the world how powerful and efficient processors can be. All that with good design.
Customers are going to demand more from Intel and the likes.
Just imagine Apple releasing the Mx chips for server infrastructure. Intel ought to be sweating bullets now.
edit: a word.
As a developer, I'm sweating bullets. Imagine a future where Apple is the only serious platform left on mobile, server and desktop, then developers can forget about starting that next disruptive startup and instead they will become just second-class Apple "employees" with contracts similar to Uber drivers.
If you want to beat Mx, you have to think outside the box, just like how Apple thought outside of x86.
That being said, I do enjoy the shift to ARM as the dominant arch. x86 has far too many decades of cruft behind it. I don't think Apple will take over the ARM space; in fact I think we will see the emergence of new players as ARM isn't as finicky about licensing their tech as Intel is. The only reason Intel even had a competitor (AMD) in the past 20 years is because they licensed x86 to them before it started becoming the de facto choice.
Competition has brought us such great processors. We should be thankful for it.
I see what you did there!
It's probably because the ecosystem is multi-threaded and there's lots of deadlocks and unprotected reads/writes...
(ryzen APUs are due for a facelift in the graphics department)
They didn't even do anything special. People have been telling multiple ARM IP holders to build a wide, powerful chip for ages. Especially for the server space.
Apple is just the first one to actually do it. AMD and Intel have been doing it all along, which is why it's so impressive that Apple's chip is finally in spitting distance of them despite being a fairly normal design with some specific optimizations for use cases.
The dual wake-up call from AMD and from Apple (ARM), combined with the money Intel has in its pocket will have a serious influence on the cpu market. Unsure if they'll come out ahead, but it will get interesting and probably cheaper, not only for consumers.
Perhaps, but I guess it would take on the order of a decade for a competitor to build their technology including an ecosystem with customers.
And who says they won't copy Apple's business practices?
> but everyone else is just sitting on their asses while Apple's chip team puts in the work.
That's because the complexity of the semiconductor industry is daunting. You need far more than a team of IC designers, especially if you want your product to become successful in a world where there is one main player.
Sign me up for more of those kinds of "business practices", thank you very much.
To my understanding, this is quite unlike AMD64 (ie, Intel's current 64 bit ISA licensed from AMD) - which extended x86.
On what grounds do you suggest you know anything about how apple accomplished M1?
Or are you just intuiting that it was some sort of "outside the box" thinking?
Maybe it was raw engineering and management mastery combined with elite head hunting and millions of dollars poured into research and design over the course of a decade?
Nah. Apple's too cool for that. Probably some eureka moment during meditation class, right?
That was 12 years ago. I guess software licenses go up and I am certain that current processes have chip prototypes to cost $500K-$1.5M per evaluation.
Yes, you can say everyone sit on their hands and/or asses.
I say that having money in bank for several dozens of thousands of chip prototypes certainly helps Apple in the design.
This is so deep and powerful if you really think about it. This is what we were promised. While not perfect, I applaud Apple for at least trying.
I'm happy to be wrong, but I think you're buying too much into the SV/media fearmongering on a handful of companies whose main business is actually just attention economics.
I'm pretty sure it's device count. Which means we are comparing $90 smart phones to $1200 iphones that will result in thousands of dollars spent through the apple ecosystem.
I was using admittedly vague language for rhetorical effect. I only technically meant the past 21 years.
Nothing gets me thinking about disruption more, than new, faster, cheaper platforms. We’ve had to accept 10% better per generation for way too long.
The other day there was an article here about Swift on the server and it was full of replies from people who would love to use it more but lack of investment from Apple makes it often a poor choice. It's doubtful even Apple is using it much server-side in house.
But, I do agree that there is a lot of jank in software that we write these days. Over the weekend I started writing an application that uses glfx + dear imgui, running on a 360Hz monitor. The lack of latency was incredible. I think it's something that people don't even know is possible, so they don't even attempt to get it. But once you know, everything else feels kind of shitty. This comment box in a web browser just feels ... off.
(Except for lsp/company which occasionally just messes up everything).
Agree, and I would add that devs on some platforms have not been as thorough about using (or abusing?) all that new power. I've been able to continue use a Sandy Bridge laptop from 2011 - it'll turn 10 years old in a couple of months - because most apps on Linux still have so little complexity that you could run them on a computer from 2006. Electron-based stuff is not the norm. Adding an SSD a few years ago has been my only significant hardware upgrade.
Meanwhile, Macbook Pros that came out two years after my laptop was built can't even be updated to the latest version of macOS, before you even get to the issue of software jank.
trading speed of development with 'hardware optimization'.
Mac being a small market, some users are still opiniated/loud enough to reward nicer/native UI vs cross-ish platform lowest common denominator UI. Maybe there is hope Arm mac stays fast.
We have taken careful care in order to write fast and memory friendly javascript if possible, avoiding using slow features of the language (the list is long, but things like forEach loops, ineffecient data structures etc) and taking care to profile and optimize.
Result is an application that feels almost as fast as native and doesn't really consume so much memory even, although we are doing canvas based graphics realtime.
My suspection is that many web-developers (and thus, qualified to developer for Electron) just don't have the tenacity or background to write efficient code.
You can write slow-ass molasses javascript code very easily. Just take somebody who has done webdev for maybe like 2 - 3 years and doesn't have any other deeper CS background. Watch what kind of memory inefficient and slow code structures, especially with javascript where you don't really understand how heavy an operation like map() can be in worse cases, or where you are creating copies of your data multiple times for example, and voila, you have a slow-ass memory-hogging electron application.
Maybe I should do a blog post about how our Electron -application is performing just to show people that you can write fast code using javascript also. But it takes skill and time, and maybe in this current day what matters is just cranking out builds that work somehow.
You can make an Electron app not slow/a battery hog, but it requires working backwards from a state of "what on earth is going on under the hood here". This is the inverse of building a native application, where that complexity is often introduced by you. I personally find this significant - you can teach someone how to avoid the latter, but it can require crazy amounts of insight to learn to debug the former.
It is 100% possible to build better Electron apps. I trust almost nobody to actually commit to doing it.
Also, particular yet tangential to this thread: apps like Signal or Discord which still make their Electron apps run under Rosetta 2 on an M1 are a nuisance. I just run Discord in a browser tab at this point.
One of my former employers had the great idea of hiring hundreds of "senior" JS devs and redoing the entire frontend of the website. When it launched to production the whole system scaled at approximately 1 enterprise-grade server to 1 concurrent user.
While I applaud your efforts to teach people how to write code faster, the majority of JS devs I have found just want to hit feature-complete and go home.
I use mainly VSCode these days though and Firefox, but even Unity game engine works just fine on this machine.
Any IDE I also throw at this machine works just fine. Only things that feel slow, are things that need a beefy GPU.
Probably depends on the IDE and the language. My impression is that newer computers (especially in the "consumer" / "general public" market) have especially improved efficiency. They're not much faster, but they last longer on smaller batteries.
My late 2013 15" (2.3 GHz / 16 GB RAM) works great with Pycharm for moderately sized projects. It's even usable for personal Rust projects (with the intellij-rust plugin).
For Rust it's somewhat slower than my i5-8500 desktop but not by much. For incremental compiles, I don't feel like I'm waiting around more. The i5 mainly wins when it can use all six cores.
It's however quite a bit faster than my work HP ProBook with an i5-8250U which is a much newer machine (2018 I'd say).
Aside from battery life, which is somewhat lesser, all in all the mac is a much, much better machine than the HP, especially for "creature comforts": gorgeous screen, no misaligned panels rubbing against my wrists, great trackpad, no random coil whine, inaudible fans unless it starts compiling for a while, no background noise on the headphone out, integrated optical output when I want to use my home stereo.
My work 2019 16-inch MacBook Pro actually doesn't feel that fast considering how fucking expensive it is.
Quiet and cool with about 11 hours of battery life when writing, reading or some simple productivity stuff.
Fast but loud and hot when doing anything else with about 3 hours of battery life. Even the Touch Bar (which I don’t hate, but I also don’t love) is uncomfortable to the touch.
It seems there is no in between. I’m generally happy with the machine, but I’m very interested in what’s next for the big MBP.
I think from 2016-2019 was a rough era for the MacBook Pro when you factor in price for performance; still great machines, but they didn't feel as polished as the 2015 MBP or the 2020 M1's.
Edit: year banding.
Finally sold the 2011 MacBook Air a few months ago for $300. I got so much value out of that laptop.
PS: apparently the quote is from 1997, go figure.
c - the speed of light, independent of the speed of the observer.
w - the speed of Windows, independent of the speed of the hardware.
So I actually think that Mac software will hold the performance edge for a long, long time.
It's fine to have an ARM version of Windows but there's no equivalently high-performance ARM chip to run it on. Unless you're talking about Bootcamp on Macs.
The fact that Apple writes much of their software for iOS and MacOS at the same time means much of it is designed to run on fairly light hardware.
I know we’re all stuck with bloated stuff like Slack and some of us with MS Office, but just go native where you can it reap the benefits of the platform.
I don't know about that, LLVM is getting slower with each new release too [1]. Same for Xcode: startup is very noticeably slower than a few years ago on the same machine. Starting into a debugging session for the first time is much slower (it used to be instant, now it's multiple seconds). The new build system in Xcode is most definitely slower than the old one, at least for projects with more than a handful compile targets. Etc etc etc... new software is only optimized to a point where performance doesn't hurt too much on the developer's machine.
[1] https://www.npopov.com/2020/05/10/Make-LLVM-fast-again.html
One nice thing is Swift is slow to build but quick at runtime.
Also, Apple’s buggy releases (which is tradition now[0]) didn’t really help.
0. Apple essentially stopped fixing bugs and they just release another buggy OS in a year or so with a new name and changes that break everything.
1. Garbage collection and minimum runtime
Garbage collection decreases memory efficiency, browsers need a certain minimum amount of resources to render a page, no matter how complicated leading to 500MB RAM text editors like Atom and worse once you open files. Similar problems plague Eclipse and IntelliJ which both often consume 1GB of RAM. The JVM often needs 150MB for an empty or perfectly optimized app.
2. Everything is an object with pointers
This is especially bad in Javascript where every object is basically a hashmap. This causes performance slowdowns because even something as simple as looking up a field is a pointer chase through several layers now. Raw numerical data may consume a lot of memory if you are not using typed arrays. Especially bad with ArrayList<Integer> in Java.
3. JIT
JIT compilers can only spend a certain amount of time on optimizations, which means JIT languages tend to either suffer from slow start up times or faster start up but less optimizations.
4. GUI complexity
Things like having animations and constantly recomputing layouts.
If you designed your processors for these things and made them fast at this, the only further source of slowdown is a lack of caring because you have already exhausted the unavoidable technical reasons. E.g. your processor is so fast, you write a naive algorithm that takes 5 seconds on the fastest computer available but then takes 20 seconds on an old computer.
Diffing a VDOM might fit here, but that's not really GUI-specific - just a combination of your earlier points.
What does that look like?
There is a reason Apple doesn’t do #1 and #3 and is moving away from #2 in their own code.
They are just inefficient ways of doing things. Designing a processor to support an inefficient mechanism will still lose out to a processor which doesn’t have to.
Look at multi-platform products like ms office and how slow they run on a Mac. I suspect because there is a translation layer to bridge win32 calls to Mac equivalents. And that seems like it would be point 5 on your list.
Azure and Google need to really step up and get some competitive (or even any) ARM instances--fast.
What's even more crazy is that you cannot buy them. Such price/perf is literally only available to rent from AWS.
I hope Oxide does something about this soon; it is a sort of dangerous situation to have such a competitive advantage only be available via rental from a single (large and anticompetitive) company.
Intel? Well, maybe 12 months after they catch up to AMD in x86.
AMD's chips I've seen are decently competitive with M1. If ARM is a not-too-bad microcode adaptation and ditching a whole lot of x86 silicon real estate, AMD might be able to come to market quickly.
Intel isn't just getting pantsed in x86 by AMD and process by TSMC, they are seeing their entire ISA getting challenged. Wow are they in trouble.
There's also nothing wrong with the $999 M1 Air. Isn't the Surface also ARM? And most Chromebooks?
After you've already got the code, though, it's Amazon's way or the highway.
For my Java services so far, no change. Aurora was a button click. ECS is the next thing to tackle.
Bonus! This makes performance review time super easy; you've saved the company thousands of dollars this year, how about a raise?!
For M1, it obviously outperformed competitive.
https://www.anandtech.com/show/15578/cloud-clash-amazon-grav...
This kind of competitive pressure will inspire a response from Intel and other firms.
The result I would predict and hope for in a few years would be better chips from everyone in the market.
Intel has certainly dominated consumer computer sales over the past decade, and until 4 years ago they were largely still selling the best chips for most consumer use cases (outside of mobile.) Intel had several missteps, but I don't think their dominant position was the only source of their problems, or simply that they thought they didn't have to try. They legitimately had some bad decisions and engineering problems. While the management is now changing, and that might get their engineering ducks in a row, the replacement of Intel with Apple Silicon in Apple's products is not likely to be some kind of "waking up" moment for Intel, in my opinion. Either they'll figure out their problems and somehow get back on an even keel with other chip designers and fabrication, or they won't.
Meanwhile other competitors in x86 and ARM have also have a short-term history of success and failure, again regardless of what Apple is doing. And the timelines for these plans of execution are often measured in the scale of two to three years, and I'm not seeing how Apple successfully designing CPUs would change these roadmaps for competitors.
For everyone involved, particularly those utilizing TSMC, there are benefits over time as processes improve and enable increases in performance and efficiency due to process rather than design, and the increased density will benefit any chip designers that can afford to get on newer processes.
I guess if I'd attempt to summarize, it's not clear who is motivated and able to compete against Apple in ARM design. In other words, is there a clear ARM market outside of iOS/macOS and outside of Android (where chip designers already compete)? And in the Linux/Windows consumer computing space, there's going to be a divide. Those that can accept a transition to macOS and value the incredible efficiency of Apple Silicon will do so. Those that continue buying within their previous ecosystems will continuing comparing the options they have (Intel/AMD), where currently chips are getting better. AMD has been executing very well over four years now, and Intel's latest chips are bringing solid gains in IPC and integrated GPU performance, though they still have process issues to overcome if they wish to catch back up in efficiency, and they may also need to resolve process issues to regain a foothold in HEDT. But even there, where AMD seems pretty clearly superior on most metrics, the shift in market share is slow, and momentum plus capacity give Intel a lot of runway.
The only other consideration is for Windows to transition to ARM, but there's still a bit of a chicken and egg problem there. Will an ARM chip come out with Apple Silicon like performance, despite poor x86 emulation software in Windows when run on ARM? Or will Microsoft create a Rosetta-like translation software that eases the transition? I'm not clear on what will drive either of those to happen.
In a server high load environment, is this still the case? Continuous load, consistent jobs -- is the M1 still that much better or does its advantages decrease?
Right now I've got IDE to SATA adapters in mine, which leaves just enough space to also squeeze 2.5" sata ssd into 3.5" drive caddies.
It's been available for a year: https://aws.amazon.com/about-aws/whats-new/2020/08/amazon-ek...
In short, it's for media production, not computing. You put it in a media rack.
The performance boost there is extremely noticeable on new M1 chips.
The instant turn-on. No fans. Safari alone feels like a completely different beast and a friend and I spent about two hours running through some of the most demanding web sites, side by side against my 2018 15” MBP.
Holy crap. Just...all the subtleties.
I’d actually say it’s easier to notice the immense general speed-up than I notice the difference between a 4min and 2min render time in Final Cut.
Dragging 4K clips around in FCP was infinitely smooth; and it made you immediately be able tell the UI/UX itself was dropping frames and needing to catch up to itself sometimes.
These are things you don’t notice until you’ve tried the M1 for the first time.
It truly is an undeniably insane piece of engineering. They killed it.
Remember when Apple made the Power Mac QUAD, to indicate that the system had FOUR processors, because "men should not live of single thread performance alone"?
> "With quad-core processing, a new PCI Express architecture and the fastest workstation card from Nvidia, the new Power Mac G5 Quad is the most powerful system we've ever made," Philip Schiller, Apple's senior vice president of worldwide product marketing, said in a statement.
Of course they can't advertise the multi core performances, because they are lower compared to similar systems, just like with the Power Mac they could not advertise that the system was greener, because it wasn't.
I’ll know that Apple is a serious contender for datacenters when PHP is updated to use native macOS APIs when running on macOS, because that’s a great litmus test for whether open source is ready to compromise on “generic computing is king” in favor of “high-performance OS APIs for specific hardware platforms”. I’m not holding my breath, and I don’t think most open source projects are willing or able to either decide to take these steps or actually deliver on any such intent. Apple seems content to offer rackmount macOS and that’s more than sufficient for serious businesses that need serious amounts of Apple-accelerated hardware. But I don’t consider most “Internet cloud server” businesses to need that, and I don’t see the developers of our clouds as being willing to give up their dylib freedoms in exchange for higher performance per watt.
EDIT: Think of M1 as a hardware platform dedicated to code that's been ported to Apple’s microkernel, if that helps any. Yeah, it’s not “micro”, in theory; except they run a stripped-down iOS on their HDMI dongle (yes, seriously), so clearly they’re quite capable of “micro” kernel. More on kernels today: https://news.ycombinator.com/item?id=26954547
The problem is that you effectively have to run macOS to take advantage of it and that's a no-go for a wide variety of people. I don't even care if I can ever run Windows or Linux on an M1 because Apple will make it a pain in the ass to do so. They don't even have a fucking bios UI... Imagine enterprise IT shops rolling Windows out on that garbage? It'll never happen.
And I don't want ARM at all unless the systems built around it are as modular and open as the x86 ecosystem.
2 - 90% of the laptops sold Worldwide aren't Apple laptops, most of them are sub $500 laptops. Amazon best selling is ASUS Laptop L210 Ultra Thin Laptop, 11.6” HD Display, Intel Celeron N4020 Processor, 4GB RAM, 64GB Storage priced at $199
Basically only Mac users who upgraded to M1 are going to notice the difference
Apple’s share of the total PC shipments is closer to 15% now and their share of the laptop market is even higher.
This is perhaps the wrong metric to look at. What % of total profit is Apple capturing? Several years ago the accepted wisdom in phones was that Apple was getting ~30% of the unit volume and 90% of the profit.
Worldwide 9.6%.
I rounded it at 10%.
> Apple achieved a global desktop/laptop market share of 9.6% and ranked fourth behind Lenovo, HP, and Dell. In the United States, Apple accounts for 12.7% of the PC market