News for hackers. Stuff that matters.
Re:How iOS 15 makes apps launch faster by plorkyeran on Monday July 05, 2021 @06:33PM (#27742433)
Things like this make me wish that we could submit multiple builds to the app store with different deployment targets and have it install the highest supported one. They've made a few of these runtime improvements over the last few years that could make apps faster and smaller, but in practice very few of the apps I have installed take advantage of them because they prefer to maintain compatibility with older versions instead.
Re:How iOS 15 makes apps launch faster by apozem on Monday July 05, 2021 @07:46PM (#27742897)
That's the name of the game with Apple development, unfortunately. Every year, I get excited for all these cool new SwiftUI features at WWDC and wait 2+ years to actually use them.
Re:How iOS 15 makes apps launch faster by joshspankit on Tuesday July 06, 2021 @07:36AM (#27747021)
I actually think that Apple intentionally makes compelling features just so they can drive people to newer versions of the OS (and therefore to newer phones).

But that’s just a theory. An Apple theory.

Re:How iOS 15 makes apps launch faster by jurmous on Tuesday July 06, 2021 @09:57AM (#27748595)
Well for two years in a row they did not remove support for iPhones. So iOS 15 will support the same devices as iOS 13 did. So it seems they are now less driving people to new phones.

I think the emoji are more driving people updating the OS than any features. And developers will only update their minimum target if people leave behind that version.

Re:How iOS 15 makes apps launch faster by joshspankit on Tuesday July 06, 2021 @10:21AM (#27748992)
The jury is still out on "less driving" (though my intuition agrees with you).

Here are some things that they are doing to "softly drive" people to newer phones:

- Emoji

- iMessage features (like Memoji stickers)

- Non-resource-intensive privacy features (such as choosing individual photos for an app to access)

- Pushing app developers to newer SDKs (which makes them change code and put in more work to support older iOS versions even if they can after making use of a new API)

- Extra RAM usage for the iOS versions due to additional background tasks that cannot be disabled

There are more (as a long-time device user I regularly see examples), but I'm limiting myself to 15min on this reply.

Re:How iOS 15 makes apps launch faster by srgpqt on Monday July 05, 2021 @08:24PM (#27743110)
Probably a good idea to wait regardless, gives them time to work out the issues that inevitably come with the fancy new shiny.
Re:How iOS 15 makes apps launch faster by apozem on Wednesday July 07, 2021 @09:16AM (#27760758)
Oh, absolutely. I got excited for the SwiftUI .toolbar modifier last year. It was wildly broken during the betas, and they just... didn't fix it for iOS 14's launch.

No idea if it works now, but definitely a lesson in the dangers of the new and shiny.

Re:How iOS 15 makes apps launch faster by oatmealsnap on Monday July 05, 2021 @09:32PM (#27743415)
hey, just like web development.
Re:How iOS 15 makes apps launch faster by mmis1000 on Wednesday July 07, 2021 @12:00PM (#27762595)
Except on web, some madness are still using android 4.x or even ie 11. Who on the earth have to support something published 8 years ago...
Re:How iOS 15 makes apps launch faster by colejohnson66 on Monday July 05, 2021 @07:32PM (#27742827)
Isn’t that the idea with “bit code”? Basically, Apple keeps the LLVM IR (of sorts) and optimizes it on their end (and removes unneeded image assets (such as @2x on an @3x device)). So the build your device downloads is highly optimized specifically for your device model.

Or do you mean something else?

Re:How iOS 15 makes apps launch faster by plorkyeran on Monday July 05, 2021 @11:11PM (#27743898)
There isn't much evidence that Apple has ever used bitcode for anything other than making existing watchOS apps run on the new arm64_32 architecture. It's required for app thinning (where they only install the architecture needed for the actual device rather than all of them), but if that's not just an arbitrary requirement to get people to enable bitcode it's unclear what it's being used for.

I don't know if bitcode could be used to recompile your app with a higher deployment target and have useful effects, but it isn't being done in practice.

Re:How iOS 15 makes apps launch faster by lanza on Monday July 05, 2021 @07:40PM (#27742861)
This would only support optimizing for different architectures. Your code is already compiled from Swift -> IR and thus these features would not be part of the IR.
Re:How iOS 15 makes apps launch faster by inkyoto on Monday July 05, 2021 @09:16PM (#27743363)
Architecture specific («post-compile» time pass) and chained fixups (link time pass) optimisations are orthogonal, and both can take place. Since a) Bitcode IR is, essentially, an object file; b) the destination platform version is known at the post-processing (i.e. download) time, it is possible to also optimise the executable binary format to make us of whatever enhacements are available, too.
Re:How iOS 15 makes apps launch faster by saagarjha on Monday July 05, 2021 @10:37PM (#27743743)
Bitcode does not do this, unfortunately.