Live data from Hacker News

Why Apple’s new M1 chips are essential for rapid iOS development

doordash.engineering

21–30 of 135 posts

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#21
> Figure 1: Plotting the cost of “time spent compiling” of the old vs. new laptops shows the one-time cost of the hardware upgrade quickly pays for itself.

Where the horizontal axis is labeled as "10", "20", "30" , ... without any unit and the vertical axis isn't even labeled beyond "Cost" (no units, no numbers). If you want to make a graph, fine, but remember your math teachers and at least get the axis right before even thinking of the data. And before drawing any conclusion.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#22
post #7

On one hand, these machines are clearly superior, and it's a no brainer for companies to purchase them for development. On the other, this is just another one in the long line of examples of bad software practices being overcome by throwing more money and hardware at the problem. Is there any reason for an iOS app build to take 8+ minutes to begin with? And does anyone realistically believe that once all developers h…

Your argument is more or less a critique of Swift itself, which is a far more full-featured and "safe" language than Objective-C, at the expense substantially higher compilation times given otherwise like-for-like programs.

You're not necessarily wrong, but that ship has sailed for iOS development long ago and isn't necessarily the fault of teams like Doordash who have probably (like others) already squeezed as much build-time performance out of their given app size and feature set.

Mobile apps are inherently monoliths, and there is unfortunately no real way around some code changes triggering full rebuilds of millions of LoC.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#24
post #7

On one hand, these machines are clearly superior, and it's a no brainer for companies to purchase them for development. On the other, this is just another one in the long line of examples of bad software practices being overcome by throwing more money and hardware at the problem. Is there any reason for an iOS app build to take 8+ minutes to begin with? And does anyone realistically believe that once all developers h…

Yeah that's about it.

What I find really offensive, which my Mac likes to remind me of regularly on the energy usage side of things, is the siloed vats of excrement that JavaScript, Browsers and Electron have enabled. These are absolutely horrible to use compared to native applications and each one has its own ozone hole above it. If I don't open a browser or Electron app my battery lasts 2x as long.

I do the occasional bit of Swift with XCode just for fun and to concentrate on that case really does disservice to the real elephant in the room above because at least Swift is not burning the universe to the ground and recompiling bits of it every time you click something. When you're done it's native.

Edit: personal wastage shitlit: Lens, Discord, Teams, Slack, VScode. VScode gets a pass as it doesn't annoy me as much as the others.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#25

Essential for any development occurring on a Mac IMO. I upgraded from a fully specced out 16inch to a base model M1 with the 32GB upgrade (a machine roughly half the price I think) and it's night and day. I can use Docker now without Slack getting laggy.

I thought the base model M1 maxed out at 16GB? Must be a M1 pro or max.

The 14 and 16 inch models only have pro or max, so yes that must be what they meant.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#26
post #7

On one hand, these machines are clearly superior, and it's a no brainer for companies to purchase them for development. On the other, this is just another one in the long line of examples of bad software practices being overcome by throwing more money and hardware at the problem. Is there any reason for an iOS app build to take 8+ minutes to begin with? And does anyone realistically believe that once all developers h…

The user does have a choice: do not use crappy slow services. For example I stopped using Instacart because there was a long lag each time I typed a single character is the search box. Amazon and Peapod did not have this problem.

that is such a rookie mistake if they are doing searching immediately on inputs! debounce it ffs! i hope that was it and not general ui slowness

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#27

I upgraded to an M1 Pro from a 2015 i5 Macbook Pro and have seen even more dramatic results. ~3 minute clean compile times for our iOS app, down from over 20 minutes!

That's exactly the jump I made.

From my perspective, compilation I do (mostly Go) is near instant versus 20 seconds.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#28
post #17

I had to laugh at the opening: "The tools are largely free", except the bare minimum to develop for ios is a mac and the apple developer account (if you ever expect to publish your app). And a significant subset of functionality only works on physical devices and not emulators. If you don't already have the mac and iphone, you're looking at $600 for a used macbook air, ~$300 for a used 2 generations old iphone, and $…

You need a computer to compile at all. If you’re doing iOS you probably already have an iPhone. Old physical phones (cheap) are fine for dev, can simulate latest. $100/yr only needed if you’re actually charging for the app - which should earn you those costs pretty soon. Yes, $1000 baseline for what you likely already have most of.

The “largely free” is in contrast with platforms having >$25,000/yr entry costs just for a license.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#29

Earlier quoted context omitted.

I guess the new benchmark for development is can it run Slack? (While developing)

arguably slack having performance issues might increase most developers productivity

When they broke Slack the other I actually celebrated for the couple of hours and got some work done for a change. No joke but it's the single most productivity destroying tool I have ever used.

Re: Why Apple’s new M1 chips are essential for rapid iOS development

#30
post #7

On one hand, these machines are clearly superior, and it's a no brainer for companies to purchase them for development. On the other, this is just another one in the long line of examples of bad software practices being overcome by throwing more money and hardware at the problem. Is there any reason for an iOS app build to take 8+ minutes to begin with? And does anyone realistically believe that once all developers h…

Look at the bright side: bad/lazy software helps the world develop faster computers that can be used efficiently for "real" projects (i.e scientific research). If the computers would be "fast" enough there would be no incentive to make them faster and we would never reach singularity
Post reply on HN