4 ms·
I have an app written in Swift and weights between 8-20Mb(depending on device and iOS version), which is not too far of from a typical website these days and th
by mrtksn 7y ago
I have an app written in Swift and weights between 8-20Mb(depending on device and iOS version), which is not too far of from a typical website these days and the startup times are phenomenal(between 250-500ms, depending on the devıce).
Writing in Swift is a delight and this is the feature I was dreaming about because having the user to install the App is not easy these days(100 impressions on Appstore Search would get me about 8 installs) however the people who install it are quite happy according to the feedback.
I would imagine that the experience is similar to Apple's AR experience on Safari, which I feel can be improved but much nicer than opening the Appstore still. Let's hope that it's not too limited and can be possible to give a good feel to the user about the App's full functionality.
The article talks about letting the dev to pick which part of the App would be presented but I suspect that the actual implementation would be similar to making an App Extensions - basically creating a separate mini-app that shares the codebase and the resources.
- novok 7y agoWith Objective-C apps, it used to be even better, in startup and in app size. I think you can still get similar app size if you make a pure Obj-C app today.
- mrtksn 7y agoBefore Swift become a thing I look at Objective-C but it was so irritating that I stuck with JavaScript. It's probably faster but what difference it would make to open the app faster than what the user can perceive? I can use static images to give the impression that the app is already running, which is recommended by Apple anyway since the user won't be able to react before the app is fully loaded anyway.
- saagarjha 7y agoOn modern versions of iOS, the runtime ships with the system so even your Swift app can be hundreds of kilobytes to a few megabytes.
- vbezhenar 7y agoWhat's the status of Objective C language today? Is it fully supported forever or is it in legacy status waiting for its support to be dropped in the future?
- dep_b 7y agoIt will be fully supported probably forever since Apple wrote a ton of their own systems in it and it has perfect integration with C and C++. The language is basically done at this point, any new features will probably be aimed at language interop.
- vbezhenar 7y agoThanks. I'm not a vivid iOS developer, but I'm writing some apps sometimes. Swift is so fast moving target that I don't want to pursue it, while Objective C is a language that I know and actually like. It's like C vs C++, I learned C++ 15 years ago, but it's completely different since then, so my knowledge is basically useless without solid investments, while C is almost the same as it was 30 years ago.
- fxtentacle 7y agoIt's hard to imagine, but some DOS apps had <100ms startup time on a 486 while coming full-featured on a 1.44MB floppy disk. I agree that your app is small and fast compared to what others are putting out there, but compared to what software engineering could do if people cared, this is still bloated and slow.
- mrtksn 7y agoOh I did not put any effort to optimize that. I bet I can get this number lower with some lazy loading but what for? The app is loaded by the time the springboard animation ends, the user interaction isn't likely to start before that. It's a new App that I try to iterate quickly, so I prefer to keep away of added complexity that optimizations would bring. If it feels quick enough on the lowest end device that I support(which is iPhone 6s because of iOS13) it's alright. The mobile devices are very powerful these days.
- jcelerier 7y agoWhen you are used to desktop apps coming up and being useable literally in the next frame of you launching them, any interaction with mobile decices and webbpages with loading times everywhere is absolutely terrible. Makes me remember all the game consoles which would have loading time ms everywhere - it was terrible and frustrating when you were used to PCs
- Angostura 7y ago> When you are used to desktop apps coming up and being useable literally in the next frame of you launching them, I’m certainly not used to that. Mobile launch times are substantially faster than desktop in my experience.
- code_duck 7y agoI remember when starting Netscape took over 1 minute
- 7y ago
- onion2k 7y agoI can't remember the last time I installed an app that was only 20MB. Even the most simple things weigh in at 100MB and up these days. The most ridiculous example I've seen lately is the mobile version of the Gwent card game from the Witcher game series. It's 2.7GB. For a card game.
- mrtksn 7y agoThe unnecessarily large apps probably use cross-platform tools that ship their runtime with each installation, losing out on Apple's optimizations or they have multiple ad tracking or 3rd party UI libraries. I am not an expert in mobile dev by any means since I switched from web to native mobile development barely a year ago but when I was still resisting to learn the native way of doing things I was exploring the cross-platform solutions and libraries to "take advantage of my current skills", anything that goes beyond the demo todo list app quickly escalated in resource consumption and development complexity. With these cross-platform tools, the moment you try to do something a little bit differently than everybody else, you find yourself stitching multiple 3rd party libraries together and these libraries add up to the binary size and loading times.
- jamil7 7y agoI haven't used Flutter but I remember Expo being particully bad for this, a hello world app weighs in at 100mb.
- rubicon33 7y ago> With these cross-platform tools, the moment you try to do something a little bit differently than everybody else, you find yourself stitching multiple 3rd party libraries together and these libraries add up to the binary size and loading times. This. I have tons of native iOS experience. Started with react native a little over a year ago and was shocked at how difficult some things are. Easy things are easier. Hard things are harder.
- nicoburns 7y agoYeah, IMO the cross platform tools are mainly designed for apps that aren't doing hard/uncommon things. Which is a lot of them to be fair.
- deleted 7y ago[deleted]
- RaoulP 7y agoCan I ask what the app is? Just curious.