Live data from Hacker News

How Uber Deals with Large iOS App Size

eng.uber.com

211–215 of 215 posts

Re: How Uber Deals with Large iOS App Size

#211
post #121

Earlier quoted context omitted.

Not sure what to make of this. I’m Indian and the last time I was in India, there was strict execution of the seatbelt law and offenders were made to wait and fined heavily. Most drivers were wearing seatbelts. Maybe because it was in Chennai, a southern state and not in Mumbai or Delhi.

Sounds plausible. I was in Delhi a couple of years ago, using mostly Ola (Uber didn't seem to like my non-Indian card, strangely enough) and most of them did not have seat belts at all.

Used Uber in Delhi and the driver told me to relax as there was no need to wear the seatbelt because it's only mandatory for the driver.

Re: How Uber Deals with Large iOS App Size

#212
post #28

Earlier quoted context omitted.

Dedicated apps for fast food chains are one example. A quick search gave me "Burger King India", "PizzaHut Egypt" and "KFC UAE". Why? I have no idea.

I think fast food chains are generally not actually owned by the same parent company. A company in India is licensing the Burger King branding and presumably some of the recipes from Burger King USA, rather than being a subsidiary thereof.

This is the real reason. For instance, McDonald's in India is itself run by two companies, one for North and West India, and another for South and East India.

Re: How Uber Deals with Large iOS App Size

#213

Earlier quoted context omitted.

Well it’s easy to assume that big companies do the work you’d expect. But I think the bigger the team, the less they care about all aspects. Especially with A/B tests, because they are just temporarily

Curiously, they've also had that issue and wrote a dedicated tool to clean up unreachable code after old A/B tests: https://www.infoq.com/news/2020/04/uber-piranha-unreachable-... I also know it first-hand as just last week I've been doing a mega-cleanup of years-old A/B test flags in our own code.

tbh I'm actually surprised that the executables / code takes up so much space at all. I'm sure the executable has some embedded resources in as well, but 130mb for just the executable is quite a lot imo.

Re: How Uber Deals with Large iOS App Size

#214
post #61
post #33

Earlier quoted context omitted.

It must be mostly the dependencies and assets they're pulling in for each screen, and not simply the source code. They could be using a different SDK for each type of payment they take, which is a lot. If the app has 250 features, and each feature includes 4MB of assets (images, icons, sounds, etc.), that's already a gig right there. I also suspect that there's a lot of reinventing the wheel going on, since there's 4…

"Reinventing wheels" are represented by the machine-code outlining :) These are code. Swift is a safe language with more runtime checks than other "zero-abstraction" languages. It also support "value" semantics and can deploy monomorphization for generics (although no guarantee). All these means you can have functions with slightly different view models duplicated many times throughout the binary. Not to mention the…

Redoing the same code feature does not lead to exactly the same machine code

Re: How Uber Deals with Large iOS App Size

#215
post #160

Earlier quoted context omitted.

Uber India isn’t like Uber New York but it’s a million times more reliable and predictable than almost any other commercial service you can get in India.

Really? Seems like it’d be more reliable and a lot faster to just hop in one of the hundred rickshaws on every street. Besides the fact that they’ll overcharge you if you’re a tourist.

really? seems like you have no idea what you're talking about.
Post reply on HN