News for hackers. Stuff that matters.
Re:iOS First Impressions (2018) by harrisonjackson on Sunday January 26, 2020 @08:47PM (#22156244)
The point that resonates most with me is the smoothness and how pervasive this is in all the top ios apps.

As a developer, I know where this is built-in (many gestures and navigation components) and where other developers have spent extra time and attention on the details.

Jumping back and forth between xcode and android studio - it is SO SO SO much more enjoyable to develop iOS apps than Android apps. I cannot stand the emulators and the whole android development experience. If anyone out there disagrees and can point to resources to improve Android studio and emulator setup I would love a link.

Re:iOS First Impressions (2018) by habosa on Sunday January 26, 2020 @11:09PM (#22156796)
I've been an Android user and developer for 10 years. THIS is the thing. Smoothness. Android claims it's equal between an iPhone and a flagship Android device but it's not even close.

It seems Android just is not willing/able to admit this is a huge gap and address it.

Re:iOS First Impressions (2018) by skohan on Monday January 27, 2020 @06:10AM (#22158305)
I remember how bad this was in the early days. The first time I started working on an Android app after a half a year of iOS development, it almost seemed like a joke. If I'm not mistaken back then GC pauses were even a big factor in UI performance, which led to unpredictable hitches in responsiveness.

I agree it's something Android should prioritize, but it also shouldn't be understated how big of a task this will be. Apple has invested a huge amount in this specific competency since the advent of OSX (and just look at the difference between mac os 10.0 and comparable versions of windows in terms of UI smoothness).

Ask a game developer: making computer graphics workloads perform predictably is a very difficult task which requires art as well as science. Building a UI stack which enables that, as well as having a nice front-end to work with for developers, and integrating well with arbitrary application logic is more than just optimizing some systems here and there.

Re:iOS First Impressions (2018) by kccqzy on Monday January 27, 2020 @01:48AM (#22157305)
While I agree with your premise I think Google does want to address it. As early as 2012 there were efforts like Project Butter[0]. Whether or not these efforts are continued, is another question.

[0]: https://www.androidpolice.com/2012/07/12/getting-to-know-and...

Re:iOS First Impressions (2018) by pjmlp on Monday January 27, 2020 @07:07AM (#22158570)
It would also help if many made proper use of UI render threads as well, which I admit following best practices on Android is a task on itself given how often they change.
Re:iOS First Impressions (2018) by librish on Monday January 27, 2020 @12:01AM (#22156941)
The developing experience I don't agree with. I find Android Studio (being essentially IntelliJ) so much better than xcode. I only use the built in emulator for smaller projects but what do you dislike about it?

The things I miss in xcode are mainly command clicking everywhere to easily find call sites and follow application logic. xcode also feels less snappy. When I used it last you could not refactor swift code but I think that's been added now?

Re:iOS First Impressions (2018) by neurostimulant on Monday January 27, 2020 @12:44AM (#22157098)
Compared to iOS Simulator, the android emulator is very slow and clunky. But on the other hand, unlike iOS Simulator, android emulator fully emulates a real phone with real hardware (camera, mic, etc), while iOS Simulator only simulates basic functionality and doesn't simulate many hardware api like camera access.
Re:iOS First Impressions (2018) by sjwright on Monday January 27, 2020 @02:42AM (#22157544)
The idea was that simulator was for fast-as-possible turnaround for most stuff, but you’d just use a real device wherever specific hardware behaviours are being developed.

I get the appeal of a more “complete” emulator, but such things are never perfect anyway—best to not even pretend that they are.

Re:iOS First Impressions (2018) by dep_b on Monday January 27, 2020 @08:12AM (#22158909)
It could of course try to find an OS camera just like it allows you to "attach a hardware keyboard". Not sure why they didn't do it.
Re:iOS First Impressions (2018) by megablast on Monday January 27, 2020 @01:15AM (#22157194)
And I disagree, I hate Studio, love Xcode.
Re:iOS First Impressions (2018) by dep_b on Monday January 27, 2020 @02:46AM (#22157556)
> command clicking everywhere to easily find call sites and follow application logic

Not as intuitive but it's there: ⌘+Ctrl+Shift+H

> xcode also feels less snappy

Not sure what you're doing in Xcode but as long as you evade using automatically updating live UI views it should be pretty snappy.

> When I used it last you could not refactor swift code but I think that's been added now?

Well there's a small handful of things now but Objective-C never had a ton either.

Re:iOS First Impressions (2018) by bschwindHN on Sunday January 26, 2020 @10:24PM (#22156656)
Google maps pans so much smoother on my iPhone SE than on a lot of the flagship Android phones from the past few years.

I think most recently I compared it with a pixel 2. It was dropping so many frames compared to the iOS version which is really pathetic for a google app running on a google os running on a google phone.

Re:iOS First Impressions (2018) by bobbylarrybobby on Monday January 27, 2020 @02:00AM (#22157359)
Weird, on my SE Google maps pans like crap, at least compared to Apple Maps (not that this contradicts your comparison). Google maps is hitting, I’d guess, 10FPS, whereas Apple Maps is getting something high enough to be indistinguishable from 60FPS (to me). I wonder why Google maps has such bad pan performance.
Re:iOS First Impressions (2018) by sjwright on Monday January 27, 2020 @02:38AM (#22157522)
Maybe Google “fixed” the problem of google maps having better pan performance on iOS.
Re:iOS First Impressions (2018) by bschwindHN on Monday January 27, 2020 @07:46AM (#22158780)
Yeah apple maps still pans better. I tried again and google maps has some jank and goes down to around 30-45 fps. Still better when I compared to an android phone running the same thing.
Re:iOS First Impressions (2018) by wsc981 on Sunday January 26, 2020 @10:29PM (#22156674)
Most Android devs I worked with just used a physical phone to test on and avoided the emulator altogether.
Re:iOS First Impressions (2018) by nottorp on Monday January 27, 2020 @06:46AM (#22158467)
Yeah, I do Android dev like 25% of my time and I don't use the emulator. The downside is my desk is cluttered with Android devices for testing.

Now IntelliJ... well, I think they only develop on NVMe SSDs. Android Studio works fine on my mbpro with the insanely fast proprietary SSD, but on my desktop with a SATA SSD the code completion takes ages to show up. Usually after I'm done typing whatever I needed completed.

Never got around to learning iOS development so I can't talk about their tools. In spite of my personal phone being iOS :)

Re:iOS First Impressions (2018) by harrisonjackson on Sunday January 26, 2020 @10:52PM (#22156746)
That is a great point - an actual device does work better during development than the emulator. Thanks!
Re:iOS First Impressions (2018) by stefanfisk on Monday January 27, 2020 @06:03AM (#22158269)
when I finally realized that I could just mount my phone on my desk like I do in my car my quality of life as an iOS dev changed completely. just having it there next to my magic trackpad is soo much smoother than trying to work the simulator.
Re:iOS First Impressions (2018) by lultimouomo on Monday January 27, 2020 @01:43AM (#22157286)
I find Android Studio and the emulator the possibly only good things about Android development. My setup is simple, Linux, Ryzen 3600, 970evo SSD and 32 gigs of RAM. Not sure if the Linux part is relevant, but RAM definitely is; the experience on an 8 gig XPS13 is sluggish as hell.
Re:iOS First Impressions (2018) by jorvi on Monday January 27, 2020 @12:08AM (#22156966)
You can get a lot of that smoothness by going to developer settings (on your Android phone) and setting animation speed to 0.75x or even 0.5x; When I still used Android that was the first thing I did and it instantly made Android feel much smoother.
Re:iOS First Impressions (2018) by tasogare on Sunday January 26, 2020 @10:14PM (#22156620)
At some point Microsoft had an Android emulator for Windows based on AOSP which was way faster and nicer than the SDK one. I suppose it still exists but don’t know how up to date the available images are.
Re:iOS First Impressions (2018) by dreamer7 on Monday January 27, 2020 @06:28AM (#22158373)
The end-user experience is definitely better on iOS. Gestures are ideally suited for navigating a touch device, especially as phone sizes continue to grow. It's a shame that Android cannot implement swipe-to-go-back because it conflicts with the navigation drawer UI.

But the development experience is not as impressive for Xcode. It is far slower than Android.

Deploying an app to the Play Store is ridiculously fast and frictionless while deploying to the App Store feels like installing Windows XP

Re:iOS First Impressions (2018) by harrisonjackson on Tuesday January 28, 2020 @01:18PM (#22172336)
Fortunately, we automate all our deployments to the app store and playstore with fastlane.

Reading through this thread it sounds like there are probably some config options to improve the emulator, but I cannot find a way to speed up studio vs xcode.

It takes < 3 seconds to launch xcode and open a source file. Studio takes 15 seconds to open and even then it takes another 5-10 seconds before the UI actually unlocks.

Re:iOS First Impressions (2018) by dreamer7 on Friday February 07, 2020 @04:45AM (#22264505)
Thanks for the pointer! Will to setup fastlane soon
Re:iOS First Impressions (2018) by Snetry on Monday January 27, 2020 @03:14AM (#22157661)
Interesting to hear, I've only recently tried out Android Development and the Emulator that comes with Android Studio worked like a charm at full speeds
Re:iOS First Impressions (2018) by neuronic on Monday January 27, 2020 @03:22AM (#22157689)
To me, nothing on Android seems to work on full speed, ever and I am seriously wondering if I have developed some strange and unreasonable cognitive bias (which would be scary).

You can go into a store 1 day after <XYZ> flagship release, try the hardware and have it stutter through menus like a Walmart PC trying to run Crysis 10 years ago.

Huawei phones seem to be the only ones getting Android to feel somewhat smooth, much better than "vanilla". Not going to buy Chinese telco phones though.

I like Android for some things but performance and feel isnt one of them.

Re:iOS First Impressions (2018) by deanCommie on Monday January 27, 2020 @03:36AM (#22157750)
HTC U11 had the smoothest Android experience I've ever encountered. I "upgraded" to a Pixel 3XL, and it has been worse. (I've also had the HTC One and Nexus 6P)

I just bought an iPad (regular, not pro) because I wanted a tablet and got tired of waiting for a good Android one.

It's been infuriating to see just how smooth everything is on iOS compared to Android.

Honestly, this alone is probably why laypeople prefer iPhones. They're not more intuitive anymore, they're not simpler or easier than Android. The Android back button is a game changer, and multi-tasking is better designed.

But the butter smoothness...fuck.

Re:iOS First Impressions (2018) by microtheo on Monday January 27, 2020 @06:23AM (#22158345)
Really? I've done the switch from a Pixel 2 to an Iphone 11 pro and while it seems a bit smoother, I don't get annoyed when I switch back to my Pixel.
Re:iOS First Impressions (2018) by neurostimulant on Monday January 27, 2020 @02:57AM (#22157598)
The default emulator performance is bad compared to iOS simulator, but fortunately there are plenty 3rd party emulators that can be used for android development (e.g. Nox, GenyMotion, BlueStack, Visual Studio Emulator), though recent version of official android emulator is supposed to be as fast as those 3rd party emulator. Maybe try to lower the emulator's resolution to speed it up.
Re:iOS First Impressions (2018) by dan-robertson on Monday January 27, 2020 @06:03PM (#22164782)
iOS is smooth but not as smooth as I would like. The input-to-render latency matters a lot when dragging things and you can really feel it even though you probably wouldn’t notice the difference between 50 and 10ms of latency for something like a key press. See this video demonstrating what 1ms of latency looks like (and where they optimistically aim to have it in 10 years by 2022):

https://www.youtube.com/watch?v=vOvQCPLkPt4

Re:iOS First Impressions (2018) by me551ah on Monday January 27, 2020 @03:44AM (#22157782)
iOS provides a simulator for development while Android SDK provides an emulator. Because of the added overhead of virtualization, an emulator is always going to be slower than a simulator.
Re:iOS First Impressions (2018) by nottorp on Monday January 27, 2020 @06:47AM (#22158476)
Take care if you use a 3rd party build service, like with phonegap (may it die in a fire). The arm packages you get from that won't work in the iOS simulator, which needs a special x86 build.