News for hackers. Stuff that matters.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by seunosewa on Thursday November 12, 2020 @03:37AM (#25067752)
Many apps optimized for the x64 platform won't run as well as the benchmarks.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by Cthulhu_ on Thursday November 12, 2020 @03:46AM (#25067793)
I think this is an important one to keep in mind. I'm sure most native Mac apps will be compiled to ARM, but a lot of existing apps won't.

Plus there's the brouhaha about Electron apps.

I for one really wouldn't mind if Apple would build a native app to replace Electron apps, e.g. a chat app that works as a good client for (what I have open right now in Rambox) Discord, FB Messenger, Whatsapp and multiple Slack channels. Or their own Spotify client. Or a big update to XCode so it can use language servers for VS Code and it's viable to use for (what I do right now) Typescript, PHP and Go development.

They have more than enough money to invest in dozens of development teams or startups to push out new native apps.

One day I'll switch away from Chrome in favor of Safari as well. Maybe.

(I am taking recommendations for native alternatives to apps)

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by threeseed on Thursday November 12, 2020 @05:30AM (#25068440)
I can't understand why you think Apple should be building apps for their competitors. It's very strange.

Use Apple Music, Messages, Safari, Swift if you want first-class support.

Or one of the better options now might be to use the iOS apps for Slack, Spotify etc.

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by armincerf on Thursday November 12, 2020 @09:35AM (#25070288)
Most of the electron apps out there already have native iOS versions which will run natively on AS macs too, that should go a long way to smooth the transition (and will be interesting to see how much extra RAM you gain from not needing slack/spotify/notion etc to run on Electron).

I guess there will still be issues for people who need to run VMs or media apps like Adobe CC etc, and also it will take a while for some dev environments to be fully supported (https://github.com/Homebrew/brew/issues/7857 for example shows it will take some time to get to feature parity).

Overall though a lot of the hard work has already been done, and I'm sure in 2 years time or whenever the transition is 'complete', mac owners will be getting much more value for money with few drawbacks (the main one being higher walls around the garden)

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by Mindwipe on Thursday November 12, 2020 @10:25AM (#25070834)
> Most of the electron apps out there already have native iOS versions which will run natively on AS macs too, that should go a long way to smooth the transition (and will be interesting to see how much extra RAM you gain from not needing slack/spotify/notion etc to run on Electron).

They don't have desktop UIs, and will be a big step down for most users. You can't seriously argue the UI doesn't matter on a Mac.

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by asdfaoeu on Thursday November 12, 2020 @03:53AM (#25067845)
Electron seems to have support in recent beta releases.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by imtringued on Thursday November 12, 2020 @07:40AM (#25069170)
You still have to rebuild your software and explicitly support a bunch of different architectures.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by valuearb on Thursday November 12, 2020 @12:09PM (#25071922)
Apple Silicon has integrated floating point hardware specifically designed to run JavaScript super fast, so Electron will be fine.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by jimbokun on Thursday November 12, 2020 @03:08PM (#25074255)
> Plus there's the brouhaha about Electron apps.

Won't this be handled by just porting V8 to the M1?

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by fnomnom on Thursday November 12, 2020 @07:51AM (#25069270)
whatsapp support in native apps is not something that isnt happening because there is no will in teams or companies to do that. its just not possible, there are no APIs. everything you see is a workaround or mashup of the whatsapp web feature
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by m4rtink on Thursday November 12, 2020 @11:04AM (#25071240)
Not just the lack of will - hostile action and threats from whatsapp against even just community projects trying to build a client for a platform not supported by the official ones. This might no longer be the case but a couple years ago they still used to do that, so no wonder so little native clients exist.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by Fnoord on Thursday November 12, 2020 @03:53AM (#25067841)
They did mention in a presentation some applications ran even quicker in Rosetta 2 than native. Though Wine isn't an emulator, I've seen the same in Wine numerous times. How many, which, etc, who knows? Interesting to figure out regardless.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by timthorn on Thursday November 12, 2020 @05:29AM (#25068430)
That happened regularly in the transition from 680x0 to PowerPC.
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by AnthonyMouse on Thursday November 12, 2020 @09:25AM (#25070173)
This is often because it's translating syscalls rather than emulating them, so for applications that are only asking the OS to do the real work, in those cases it's running native code. And then it's running it on a current day CPU instead of one from two years ago.

Unfortunately, although applications like that exist, they're not the common case.

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by valuearb on Thursday November 12, 2020 @12:16PM (#25072001)
One of the most common operations done in MacOS is retain/release of objects. Rosetta2 translated code is TWICE as fast on the M1 as the original code on x86.

https://mobile.twitter.com/Catfish_Man/status/13262387851813...

Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by AnthonyMouse on Thursday November 12, 2020 @02:29PM (#25073842)
Microbenchmarks are meaningless. Where are the benchmarks of real-world applications?
Re:Apple Silicon M1 chip in MacBook Air outperforms high-end... by valuearb on Thursday November 12, 2020 @12:13PM (#25071962)
The M1 running native code can retain/release objects five times faster than x86 processors running native code.

X86 code translated by Rosetta2 on the M1 retains/releases objects TWICE as fast as native x86 processors.

https://mobile.twitter.com/Catfish_Man/status/13262387851813...