News for hackers. Stuff that matters.
Re:Apple's follow-up to M1 chip goes into mass production fo... by flohofwoe on Tuesday April 27, 2021 @11:10AM (#26956975)
Give Mac software a few years to "catch up" and everything will feel just as slow as usual (and I'm not even joking, so far, software was always excellent at undoing any advancements in hardware very quickly).
Re:Apple's follow-up to M1 chip goes into mass production fo... by jrockway on Tuesday April 27, 2021 @01:11PM (#26958716)
I feel like things have felt pretty good in the PC world since NVMe SSDs and approximately Sandy Bridge.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by disgruntledphd2 on Tuesday April 27, 2021 @01:45PM (#26959111)
Emacs has given me this feeling for a while. Even over a remote connection that is super slow, I am supremely confident in every keystroke getting to the server and doing what I want.

(Except for lsp/company which occasionally just messes up everything).

Re:Apple's follow-up to M1 chip goes into mass production fo... by bscphil on Tuesday April 27, 2021 @09:32PM (#26964319)
> I feel like things have felt pretty good in the PC world since NVMe SSDs and approximately Sandy Bridge.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by jkestner on Tuesday April 27, 2021 @05:30PM (#26961862)
Speed is a feature, said well: https://craigmod.com/essays/fast_software/
Re:Apple's follow-up to M1 chip goes into mass production fo... by legulere on Tuesday April 27, 2021 @04:10PM (#26960883)
There are some hard usability limits that feel like the performance has stagnated or getting worse: when resizing Relayouting needs to be faster than the time for one frame (16ms usually). On Windows seemingly no software manages to do that.
Re:Apple's follow-up to M1 chip goes into mass production fo... by moneywoes on Tuesday April 27, 2021 @09:56PM (#26964506)
Are nvmes noticeable over say a sata ssd
Re:Apple's follow-up to M1 chip goes into mass production fo... by SSLy on Tuesday April 27, 2021 @11:31AM (#26957304)
This is called "What Andy giveth, Bill taketh away."
Re:Apple's follow-up to M1 chip goes into mass production fo... by homarp on Tuesday April 27, 2021 @11:54AM (#26957643)
and this is now called Electron

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by whatever1 on Tuesday April 27, 2021 @01:11PM (#26958711)
I would say that 90% of my pc resources are consumed to execute JavaScript code. If we need dedicated hardware to execute this more efficiently so be it. We do it anyway for so many other domains. Video, graphics, encryption etc.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Jetrel on Tuesday April 27, 2021 @04:50PM (#26961345)
One of the big deals with electron-et-al is that we're not married to JavaScript, really; we're married to "the DOM and css" as our gui, and things like FF/Chrome/Safari devtools to develop that gui.

Most javascript developers are already using babel-et-al pipelines to build electron apps, which are already transpiling between major variants of javascript, and I wouldn't at all surprised to see a thing where it gets compiled into WebAssembly rather than interpreting javascript. I also think there's a thing, right now, where it's possible to build electron apps with Rust+WebASM; I'm not sure, but I think the main thrust here is it definitely would eliminate a huge chunk of the slowdown.

I guess the main takeaway is just that the development revolution that's happened recently is mainly about how insanely good browser dev tools have become, and not about javascript - javascript was just along for the ride. As an aside - I recently saw a video of someone demoing one of the old Symbolics LISP workstations, and I was shocked to realize how much they had in common with a modern browser console - specifically of being able to inspect all of your gui components, live, and look at all the properties set on them. It's provided a hell of a way for me to explain what the deal was with all the old gurus in the 80s "AI Winter" diaspora who were pretty butthurt about having to move from programming in that environment, to having to write C on DOS (or whatever else paid the bills at the time).

Re:Apple's follow-up to M1 chip goes into mass production fo... by xvilka on Tuesday April 27, 2021 @07:57PM (#26963692)
WebAssembly is just another JVM which is notoriously slow for GUI compared to the native alternatives like Qt.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Tuesday April 27, 2021 @06:29PM (#26962715)
There basically already is in the M1: https://www.anandtech.com/show/16226/apple-silicon-m1-a14-de...

tl;dr it has really sick floating point double performance which directly translates to JS performance

Re:Apple's follow-up to M1 chip goes into mass production fo... by saagarjha on Wednesday April 28, 2021 @02:23AM (#26966304)
Most JavaScript JITs do math on integers.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Thursday April 29, 2021 @01:29PM (#26983996)
Only if using the BigInt type: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

all other numbers are floats

Re:Apple's follow-up to M1 chip goes into mass production fo... by saagarjha on Thursday April 29, 2021 @04:11PM (#26986095)
No, this is independent of BigInt. JITs speculate that numbers are integers for performance.
Re:Apple's follow-up to M1 chip goes into mass production fo... by rmorey on Thursday May 06, 2021 @09:54AM (#27063212)
Hmmmm okay! I see what you're saying now.
Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @01:09PM (#26958674)
+ Mac OS checking every binary you run over the internet.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @03:47PM (#26960589)
It's slightly more nuanced than that - you can of course just block it from doing so, and there's certainly an argument for it being updated to not need a network call each time, but phrasing it like this makes it sound worse than it actually is.

I'll just quote Jeff Johnson, who's looked into this and written about it - his comment[1] on this is post is quite useful:

https://eclecticlight.co/2020/11/25/macos-has-checked-app-si...

>The request to http://crl.apple.com/root.crl is simply checking the revocation status of Apple’s own Developer ID Certification Authority intermediate signing certificate. If you examine the cert in the System Roots keychain, you can see that URL under CRL Distribution Points. This request contains no information specific to third-party developers or apps. In contrast, there’s no CRL for third-party Developer ID leaf certs signed by Apple’s intermediate cert. Their status is only available via OCSP.

Notably, this:

>This request contains no information specific to third-party developers or apps.

https://eclecticlight.co/2020/11/25/macos-has-checked-app-si...

Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @07:43PM (#26963553)
You added detail, yet didn't refute the statement. That it isn't easy to simply and specifically turn off is not acceptable.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @09:28PM (#26964290)
No, I'm fairly certain I refuted it.

The parent comment is incorrectly stating that each request to Apple is checking a binary, and it's not. This has been well documented both here on HN and across the web.

Re:Apple's follow-up to M1 chip goes into mass production fo... by mixmastamyk on Tuesday April 27, 2021 @10:15PM (#26964669)
That's not the definition of refute. The distinction between a lazy-implied always and merely often is pedantic. The point is that it happens enough to reduce performance, while doing something no end-user asked for and is difficult, if not impossible to disable without reducing other security protections.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Wednesday April 28, 2021 @03:01PM (#26972841)
There is no measurable performance loss from that one time check - it's not something happening constantly.
Re:Apple's follow-up to M1 chip goes into mass production fo... by walterbell on Tuesday April 27, 2021 @02:43PM (#26959807)
Pihole and others can block those Apple queries.
Re:Apple's follow-up to M1 chip goes into mass production fo... by bonestamp2 on Tuesday April 27, 2021 @05:30PM (#26961848)
What happens if you block them.. do they eventually stop working if they haven't been validated in a long time?
Re:Apple's follow-up to M1 chip goes into mass production fo... by imwillofficial on Tuesday April 27, 2021 @02:21PM (#26959516)
Yep, see the success of the Nova editor.
Re:Apple's follow-up to M1 chip goes into mass production fo... by realityking on Wednesday April 28, 2021 @02:28AM (#26966337)
Funnily enough, I dropped it after the trial expired because the plug-ins - which I belobe are written in JavaScript - were incredibly unstable.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Hamuko on Tuesday April 27, 2021 @02:24PM (#26959561)
It's a success?
Re:Apple's follow-up to M1 chip goes into mass production fo... by 1123581321 on Tuesday April 27, 2021 @07:02PM (#26963094)
I don't know what qualifies as a success, but I saw in Git Tower's developer survey that it has about 5% share. The share of the whole developer industry should be lower, because Tower's audience is interested in premium tools, but I expected it to be struggling to break 1%. https://www.git-tower.com/blog/mac-dev-survey-2021-results
Re:Apple's follow-up to M1 chip goes into mass production fo... by imwillofficial on Tuesday April 27, 2021 @05:57PM (#26962248)
Yes
Re:Apple's follow-up to M1 chip goes into mass production fo... by homarp on Tuesday April 27, 2021 @03:57PM (#26960717)
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @12:23PM (#26958060)
If you don’t run Electron apps, even an older Mac will fly. My 2015 is still astoundingly fast, it just doesn’t have Chrome bogging it down.
Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Tuesday April 27, 2021 @03:33PM (#26960410)
This idea that Electron apps are inherently somehow slow is starting to bug me out. While writing Electron version of our graphics heavy web application, I noticed that the memory usage or CPU consumption is not a lot higher than some other native applications.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by heipei on Tuesday April 27, 2021 @03:55PM (#26960690)
I'm a self-taught JavaScript developer (front- and back-end) and I would love to read such a blog post. I mostly use language features for their expressiveness (map, filter, forEach) and rarely think about their performance implication unless there is reason to believe some piece of code is in a performance-critical path. However with a guide I might reconsider some scenarios where I'd be willing to give up expressiveness for performance.
Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Wednesday April 28, 2021 @04:32AM (#26967080)
Thanks for the encouragement. I will look into this more and write a blog post about, it is actually something I wanted to do for some time now, I'll make sure to post it to HN also and report what we have found ..

We have been developing this application since 2011 already, and I also develop in C++ and 3D graphics, so performance has been something I've had to think.

But yeah, there are many guides on what to avoid in JS already, how to optimize for speed and memory. But it is not definitely an easy thing to realize, as it's not inherently visible what can be slow and what not. Most blog posts at this time talk about how to optimize for the V8, and I'm not really interested in that so much, as it can be taunting to try to understand how V8 works for example.

Re:Apple's follow-up to M1 chip goes into mass production fo... by greggman3 on Tuesday April 27, 2021 @10:11PM (#26964639)
Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @07:03PM (#26963102)
You're not wrong, but at the same time, if 99% of Electron applications are slow, then I have no problem calling Electron (as a movement, not a technology) slow. It is also pretty evident that default Chromium itself is a complete battery slog.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Wednesday April 28, 2021 @04:37AM (#26967121)
Yeah it's true. Of course native code will perform by default faster and be more battery friendly, but V8 is also very optimized and can perform easily like 80% of native speeds if given some thought.

Yeah many people do not just have the time to look into this, and most companies don't really care, as we have so much RAM and CPU power these days, so I can see why for example many messaging apps just choose to write their app in Electron, instead of trying to figure out how to do it natively cross-platform, which can be a more PITA especially when you also have web as a platform.

Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Wednesday April 28, 2021 @03:04PM (#26972877)
>can perform easily like 80%

This feels like... a trap.

I think there's a complexity in doing that which could be summarized as follows: it's possible, but the more complex your codebase, the more difficult it is to reason about how to get to or maintain that 80%.

Even if we assume that 80% is the maximum, if most products (or the notable ones that we all complain about, I suppose) are hitting 50%, then... well, that's a problem.

For full disclosure: I've defended Electron on the merits of "there is sadly no better way to ship cross-platform UI-based software". I criticize it with this in mind.

Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Wednesday April 28, 2021 @06:14PM (#26974914)
Yeah maybe 80% was over-estimated. Depends on the usecase, I've also seen 50% in more cases, but at least according to my experience 70-80% is realistic in some cases.
Re:Apple's follow-up to M1 chip goes into mass production fo... by mike_d on Tuesday April 27, 2021 @06:52PM (#26962986)
It isn't just Electron, Node is also plagued by its own low barrier to entry.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by kiawe_fire on Tuesday April 27, 2021 @11:02PM (#26965027)
IMO, it’s not just JS devs. Most of the backend PHP devs I work with are similar.

And when nearly every Stack Overflow post asking about performance implications is answered with a litany of “YAGNI” and “premature optimization”, its not hard to see why.

The current comp sci culture seems to discourage this in all but the lower level languages like C.

Re:Apple's follow-up to M1 chip goes into mass production fo... by N1H1L on Tuesday April 27, 2021 @04:09PM (#26960873)
Please write the blog post and share it to HN. I would really look forward to reading it and learning from it.
Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Wednesday April 28, 2021 @04:39AM (#26967129)
Thanks. I will :)
Re:Apple's follow-up to M1 chip goes into mass production fo... by mrweasel on Tuesday April 27, 2021 @01:02PM (#26958590)
You can even go back to 2013 and not notice that you’re using a 7-8 year old machine. A MacBook Pro from late 2013 runs Big Sur and performs fine for most everyday use use case and any development work that doesn’t require an IDE. You just can’t run Chrome all the well, which should tell you more about Chrome than Macs.
Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Tuesday April 27, 2021 @03:37PM (#26960462)
Still using a mid-2014 Macbook Pro with 16 gigs of ram and a 2.5 GHz quad-core i7 as my daily driver. Everything performs just fine to me, and macOS has even got faster during this time I've used the laptop, which is something to give credit to Apple for.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by hugi on Tuesday April 27, 2021 @01:15PM (#26958771)
I do all my work (java/postgres etc) on a 2012 i7 Mac Mini. It used to be my home media server but I started using it as a "temporary machine" last year after killing my 2018 15" MBP by spilling water over it. I was planning to replace it with an Apple Silicon machine once they became available, but it's performing so well I'm more than happy to keep using it while waiting for a 15" or 16" M1x/M2. Amazing little machines.
Re:Apple's follow-up to M1 chip goes into mass production fo... by vladvasiliu on Tuesday April 27, 2021 @01:54PM (#26959213)
> and any development work that doesn’t require an IDE

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by Hamuko on Tuesday April 27, 2021 @01:59PM (#26959251)
My early 2011 MacBook Pro definitely isn't fast but it's usable for checking out a couple tabs worth of stuff on the sofa.

My work 2019 16-inch MacBook Pro actually doesn't feel that fast considering how fucking expensive it is.

Re:Apple's follow-up to M1 chip goes into mass production fo... by knolan on Tuesday April 27, 2021 @02:17PM (#26959471)
My 16” had two speeds.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by tandr on Tuesday April 27, 2021 @02:10PM (#26959389)
My fully-loaded 2019 16-inch MacBook feels VERY underpowered actually - once you try to use all the cores (multiple compilation threads, parallel tests with multiple docker images running), it goes into what I would call a "heat shock". I suspect throttling kicks in and cpu charts in Activity Monitor become close-to-death flatlines. Oh, and the fan noise becomes non-ignorable too.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Hamuko on Tuesday April 27, 2021 @02:14PM (#26959435)
Yeah, full utilization leads to throttling, guaranteed. Although apparently it can get much worse than what I've had, down to like 1.0 Ghz.

I've also had issues with the laptop waking from sleep, where it'd either hang for up to minutes, or just outright kernel panic. Big Sur seems to have fixed the kernel panics but waking from sleep still feels really slow.

Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @02:27PM (#26959590)
You know, I believe you on the 2019 - I've heard this from more people than I care to admit, and makes me glad I skipped that year.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by selectodude on Tuesday April 27, 2021 @03:06PM (#26960071)
My 2016 MacBook Pro has been an absolute pleasure to use. It's small, light, great battery life, plenty of performance, I consider it the second incarnation of my favorite laptop ever, the Titanium PowerBook G4.

Except for the keyboard. Been replaced three times. It's defective by design. Such a letdown.

Re:Apple's follow-up to M1 chip goes into mass production fo... by josephg on Tuesday April 27, 2021 @07:37PM (#26963490)
I have the opposite experience with my 2016 MacBook Pro. It feels really sluggish to me now. 2 cores is nowhere near enough, and the integrated graphics chip doesn’t feel fast enough for everyday tasks if you have external monitors connected. I’m on a video call in discord the machine lags so much it’s unusable. Xcode with swift is basically useless - it lags so much sometimes doing who knows what that it drops keystrokes. I had the monitor stop working because of the design fault right before two back to back conferences. And the keyboard has been replaced once and is now having issues again. Compiling rust on the machine is about 8x slower than my new ryzen based development machine.

We’re in a golden age of cpu improvements. A dual core 2016 mbp isn’t good enough for me any more.

Re:Apple's follow-up to M1 chip goes into mass production fo... by inDigiNeous on Wednesday April 28, 2021 @08:48AM (#26968713)
Interesting. How much ram do you have ? Using a 4k external monitor ?

Just wondering, don't those cores still have HyperThreading or such, resulting in actually more cores than just 2 physical ones ?

Re:Apple's follow-up to M1 chip goes into mass production fo... by selectodude on Wednesday April 28, 2021 @02:06AM (#26966191)
Ah, I have a quad core with a discrete GPU. Might make all the difference.
Re:Apple's follow-up to M1 chip goes into mass production fo... by bartvk on Wednesday April 28, 2021 @01:31AM (#26965949)
Try compiling stuff. There's definitely a difference in speed when I use Xcode on the 15" 2016 MBP, or the 16" 2019 MBP. It's got an additional four cores, and it's noticeable to me.
Re:Apple's follow-up to M1 chip goes into mass production fo... by taysondev on Tuesday April 27, 2021 @05:28PM (#26961818)
I actually used a MacBook Air 2011 up until summer 2020 as my main home computer. The only reason I even bought a new MacBook was because I couldn't get the newest version of macOS which I needed for the latest version of Xcode.

Finally sold the 2011 MacBook Air a few months ago for $300. I got so much value out of that laptop.

Re:Apple's follow-up to M1 chip goes into mass production fo... by Toutouxc on Tuesday April 27, 2021 @03:07PM (#26960077)
My old 2013 is still a charming little machine. I made my GF "upgrade" to it from a random ~2017 HP plasticbook and she loves the thing. 4 GB of RAM can still fly if you only run native apps.
Re:Apple's follow-up to M1 chip goes into mass production fo... by Angostura on Tuesday April 27, 2021 @07:04PM (#26963115)
This late 2012 iMac is still my main machine (with a new big SSD). Oher than for gaming and Adobe Premier, it is perfectly happy with what I throw at it.
Re:Apple's follow-up to M1 chip goes into mass production fo... by coliveira on Tuesday April 27, 2021 @12:51PM (#26958454)
Exactly, I have a 2015 MacBook that works perfectly, unless I try to use electron-based apps.
Re:Apple's follow-up to M1 chip goes into mass production fo... by AceJohnny2 on Tuesday April 27, 2021 @12:42PM (#26958325)
Is there an equivalent to Parkinson's Law ("Work expands to fill the available schedule"), where software expands to fit the available performance?
Re:Apple's follow-up to M1 chip goes into mass production fo... by flohofwoe on Tuesday April 27, 2021 @12:49PM (#26958414)
"Software is a gas; it expands to fill its container." - Nathan Myhrvold

PS: apparently the quote is from 1997, go figure.

Re:Apple's follow-up to M1 chip goes into mass production fo... by jml7c5 on Tuesday April 27, 2021 @01:09PM (#26958681)
Re:Apple's follow-up to M1 chip goes into mass production fo... by RachelF on Tuesday April 27, 2021 @07:04PM (#26963117)
An old joke:

c - the speed of light, independent of the speed of the observer.

w - the speed of Windows, independent of the speed of the hardware.

Re:Apple's follow-up to M1 chip goes into mass production fo... by mullingitover on Tuesday April 27, 2021 @03:06PM (#26960062)
Software is a gas that expands to fill its container. It's just science.
Re:Apple's follow-up to M1 chip goes into mass production fo... by granshaw on Tuesday April 27, 2021 @01:41PM (#26959071)
Could be even worse – web devs writing shitty webapps that are fast on their Macs but dog slow on non-Macs
Re:Apple's follow-up to M1 chip goes into mass production fo... by happymellon on Tuesday April 27, 2021 @02:10PM (#26959394)
Nah, don't worry they are using electron apps to build them as well.
Re:Apple's follow-up to M1 chip goes into mass production fo... by crazygringo on Tuesday April 27, 2021 @02:34PM (#26959676)
But since so much software these days is cross-platform, apps/sites will still have to work performantly on Intel chips. E.g. Google can't slow down Chrome to take advantage of Mac speed increases, because it would become unusable on Windows.

So I actually think that Mac software will hold the performance edge for a long, long time.

Re:Apple's follow-up to M1 chip goes into mass production fo... by nexuist on Tuesday April 27, 2021 @03:00PM (#26960006)
It logically makes sense for Windows to move to ARM as well at this point. They already ported it with Windows RT, and now all they have to do is provide a translation layer like Rosetta and release the full Windows experience (instead of the locked down version RT was).
Re:Apple's follow-up to M1 chip goes into mass production fo... by crazygringo on Tuesday April 27, 2021 @05:28PM (#26961817)
But there's no M1 chip equivalent for PC's.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by _carbyau_ on Tuesday April 27, 2021 @10:10PM (#26964635)
Any reason why Intel and AMD can't do an ARM chip?

I have a vague tickle in my memory that both Intel and AMD have dabbled in ARM before.

Even if they don't assign large production volumes to it now, they could still have a design team working on it for a contingency plan.

Re:Apple's follow-up to M1 chip goes into mass production fo... by kalleboo on Wednesday April 28, 2021 @12:12AM (#26965503)
AMD was developing an ARM core "K12" in parallel with the Zen core. K12 was delayed in order to prioritize Zen, Zen turned out to be a massive hit, so K12 got delayed indefinitely.

https://en.wikipedia.org/wiki/AMD_K12

https://en.wikipedia.org/wiki/Zen_(first_generation_microarc...

Once Apple released M1, rumors of AMD ARM development started again https://www.techspot.com/news/87851-amd-rumored-working-arm-...

Re:Apple's follow-up to M1 chip goes into mass production fo... by floatboth on Tuesday April 27, 2021 @09:07PM (#26964162)
Microsoft went with Qualcomm, but indeed it's not-that-high performance. (Even the "new" 8cx gen2, also rebranded as Microsoft SQ2, is still basically an 855… The situation will improve somewhat with an 888 based chip.)
Re:Apple's follow-up to M1 chip goes into mass production fo... by mojo982 on Tuesday April 27, 2021 @11:24AM (#26957195)
You are right. And I hate it.
Re:Apple's follow-up to M1 chip goes into mass production fo... by nemo1618 on Tuesday April 27, 2021 @11:29AM (#26957260)
Even today the M1 still feels slow occasionally -- hanging for a second or two, browser taking multiple seconds to launch, etc. Granted, that could be due to I/O or power management, but in any case it's clear that software is not making proper use of hardware.
Re:Apple's follow-up to M1 chip goes into mass production fo... by pentae on Tuesday April 27, 2021 @03:03PM (#26960035)
What you just described only happens for me with Chrome on my M1 MBA. Try loading Safari, its instant.
Re:Apple's follow-up to M1 chip goes into mass production fo... by ogre_codes on Tuesday April 27, 2021 @12:50PM (#26958433)
Maybe for some low hangers, but compiling code will still be faster, XCode and VSCode will be a bit snappier, Safari and Messages will be a bit better. These base things need to work on a broad range of products.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by flohofwoe on Tuesday April 27, 2021 @12:55PM (#26958500)
> but compiling code will still be faster

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

Re:Apple's follow-up to M1 chip goes into mass production fo... by ogre_codes on Tuesday April 27, 2021 @02:21PM (#26959512)
I suppose that’s a fair comment. The whole build system and IDE slow down when working with Swift. It’s possible Swift wouldn’t exist if it weren’t for faster processors.

One nice thing is Swift is slow to build but quick at runtime.

Re:Apple's follow-up to M1 chip goes into mass production fo... by nicoburns on Tuesday April 27, 2021 @01:53PM (#26959198)
The work off the back of that article has mostly halted that I think.
Re:Apple's follow-up to M1 chip goes into mass production fo... by crossroadsguy on Tuesday April 27, 2021 @09:54PM (#26964484)
This is so true. My work kept providing latest Macs at excellent configurations and those Macs kept getting slow very fast :)

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by coliveira on Tuesday April 27, 2021 @12:50PM (#26958432)
We don't even need to wait for that. Right now web developers are creating the new generation of web-based apps that will consume everything that M1 can give and more. In fact these apps already existed, they were just largely ignored because they're so power-hungry (just look at electron and similar stuff).
Re:Apple's follow-up to M1 chip goes into mass production fo... by mrweasel on Tuesday April 27, 2021 @01:05PM (#26958645)
Even worse: Developers will get an M-series Mac, write Electron apps that performs okay. They will then ship them as cross platform app, that will absolutely suck on any other platform.
Re:Apple's follow-up to M1 chip goes into mass production fo... by imtringued on Tuesday April 27, 2021 @02:55PM (#26959947)
Where is that inefficiency supposed to come from though? I mean there are four big inefficiencies that came with JS.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by Klonoar on Tuesday April 27, 2021 @03:51PM (#26960634)
I don't think "animations" fits here. Well-implemented CSS animations are generally fine (though this is in and of itself a high skill to do well, I think). If you're still driving animations with pure JS, you probably need a refresher in modern web dev.

Diffing a VDOM might fit here, but that's not really GUI-specific - just a combination of your earlier points.

Re:Apple's follow-up to M1 chip goes into mass production fo... by zepto on Tuesday April 27, 2021 @03:38PM (#26960475)
> If you designed your processors for these things and made them fast at this

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by josho on Tuesday April 27, 2021 @03:35PM (#26960434)
I think the next layer is cross platform bridges.

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.

Re:Apple's follow-up to M1 chip goes into mass production fo... by arthur_sav on Tuesday April 27, 2021 @01:30PM (#26958951)
No need to wait, just use Chrome to get a taste of the "future".