iOS Dev Weekly - iOS Dev Weekly - Issue 677

Did I let Xcode's predictive code completion write any of the text in this newsletter? šŸ¤–
 

iOS Dev Weekly

 
View on the Web    Archives

ISSUE 677  September 6th 2024

 
Comment

  Comment  

 

I found myself needing to upgrade to macOS Sequoia this week, so I finally got a chance to try Xcodeā€™s new AI-powered ā€œPredictive Code Completionā€. šŸ¤–

First things first. Howā€™s the quality and does it ā€œhallucinateā€? Iā€™d say the quality is good, and of course it hallucinates. šŸ˜‚ I believe that eliminating hallucinations in LLM is, at best, extremely challenging and, at worst, impossible. Did it produce generally useful, modern, Swift code, though? Absolutely.

Iā€™ve some experience with using GitHub CoPilot, both inline in VS Code and via its chat interface and the experience of using Xcodeā€™s predictive code completion felt very like CoPilotā€™s inline code completion. Pause typing for a second, and itā€™ll show some dimmed code. Press tab, and itā€™ll accept the suggestion. Just like CoPilot.

I find CoPilotā€™s single-line completion suggestions to be much more useful than when it suggests a function implementation from a function name or comment, which feels like a gimmick. Itā€™d be impossible for a human to write code from a function name for anything but the most trivial function, let alone an AI. But if you think of it as an advanced code completion rather than ā€œwrite my code for meā€, it delivers. Thatā€™s how Apple is pitching it, too, so thatā€™s good.

One thing I prefer about the Xcode implementation is how it handles multi-line predictions. If CoPilot wants to insert a fully formed function or a multi-line block, the entire block is visible but dimmed. In contrast, Xcode shows { ā€¦ } where it wants to insert a block of code, whether thatā€™s a function definition or a block after a guard or if statement. I think I prefer this because this is closer to the single-line completion I just mentioned.

I will admit that I expected it to be more responsive than CoPilot given itā€™s an on-device model. CoPilot needs to do a full round-trip to the Microsoft/GitHub servers and calculate the results, but it turns out that an on-device calculation with a consumer-grade CPU (I run an M1 Max) is about the same speed as a network connection + huge Azure servers. From some very non-scientific tests, performance is about the same or slightly worse than what I see with CoPilot.

There are some obvious enhancements, which youā€™d expect from a first release. Having it explain compiler errors and runtime crashes would be a fantastic enhancement, and should be within reach. Iā€™d also love to see something like CoPilot chat where you can have a back and forth conversation about your code. I know that the possibility of going off-topic would be at the top of Appleā€™s mind when implementing something like this, but CoPilot chat is very good at not letting the conversation wander away from code. If you have access to it, just try to lead it down a path it doesnā€™t want to go down. I completely failed.

I also wish Apple would give more information about where they sourced their training data, but I have banged that drum quite a lot now and itā€™s clear that the industry standard is to keep quiet about sourcing data in the vast majority of cases. I expected better from Apple on this point, though. I donā€™t want citations with every output, but a broad description of where the data was sourced from would be great.

Overall, I think itā€™s a win, and itā€™ll only get better over time!

Dave Verwer  Permalink

 
 

  Sponsored Link  

 

RevenueCat Ship-a-ton: Ship apps and make money

Thereā€™s still time to submit your new apps to the RevenueCat hackathon. Get your app featured on over 150 digital billboards throughout San Francisco, or win some of the $25k cash prizes weā€™re giving out! Join the Ship-a-ton.

revenuecat.com  Permalink

 
 
 

  News  

 

The Future of Vapor

Vapor 4 was in a late beta when we first started development on Swift Package Index. Itā€™s hard to believe that weā€™ve now been using the framework for more than four years, but we have! Tim Condon sets out the plan for Vapor 5. It will be based on async/await, will integrate swift-testing, and potentially include new routing APIs, which all sound good to me!

I just hope the migration for large Vapor 4 projects isnā€™t too painful. šŸ˜¬

vapor.codes  Permalink

 

Revolutionizing Surgery and Medical Treatments with visionOS

I wrote a few weeks ago about the need for ā€œapps that make you put your headset onā€ and here comes Francesco Perchiazzi to help us find some. This write-up covers several visionOS apps being used in places you might not expect. Fascinating.

createwithswift.com  Permalink

 
 

  Code  

 

Extending SwiftPM Metadata

This post from Alejandro Martinez is an interesting glimpse into what might one day be possible with package manifests. The specific example will only be of use to those of you on large teams with apps that have plenty of dependencies, but the concept is interesting. Itā€™s not what Iā€™d call usable at the moment, but maybe one day?

alejandromp.com  Permalink

 

Group container naming in macOS Sequoia

This might be a little obscure, but is probably worth mentioning. If your Mac app uses group containers to share data between your app and its extensions, depending on how you set it up, you might need to move things around. Unfortunately, in a sandboxed environment thatā€™s not as easy as you might have hoped. John Brayton wrote up some instructions for his users, and if you scroll down to the ā€œTechnical Detailsā€ section, for fellow Mac developers, too!

goldenhillsoftware.com  Permalink

 
 

  Books  

 

The Case of the Crimson Test Suite

Iā€™ve not had a chance to check this out yet, but Iā€™d imagine that all I need to say is that Daniel Steinberg has a new book out covering swift-testing. Youā€™ll know immediately if thatā€™s going to be of interest to you.

Itā€™s worth noting that itā€™s early days for the swift-testing framework, and itā€™s not yet at a 1.0 release. That may well change with the imminent release of Xcode 16. Youā€™ll be ahead of the game either way!

gumroad.com  Permalink

 
 

  Jobs  

 

Mobile Developer (iOS) @ Planning Center ā€“ Our Mobile Team works on both iOS and Android. While focuses are leveraged, there is a healthy bit of collaboration in the execution of how things are released. ā€“ Remote (within US timezones) with some on-site work (United States in CA)

 Permalink

 

Job postings on iOS Dev Jobs are free and get distributed to thousands of developers. Do you have open positions in your company thatā€™d appeal to iOS Dev Weekly readers? Get your jobs listed.

 Permalink

 
 

  And finally...  

 

Has your CI system ever run out of disk space?

The script is kinda hilarious, too. šŸ˜‚

 Permalink

 
You received this email because you subscribed via the iOS Dev Weekly site.
We'll be sorry to see you go but you can unsubscribe instantly.
 
iOS Dev Weekly is published by Verwer Services Ltd. with a registered office at 5 Albert Road, Southsea, Hampshire, England, PO5 2SE.
 
 

 
 

RSS

 
Ā©2024 iOS Dev Weekly | Privacy Policy | Mastodon | Suggest a Link
 
Published with Curated

Older messages

iOS Dev Weekly - Issue 676

Friday, August 30, 2024

What's happening with CocoaPods these days? It's time for an update from the team. View on the Web Archives ISSUE 676 August 30th 2024 Comment I don't know how I missed Orta Therox

iOS Dev Weekly - Issue 675

Friday, August 23, 2024

Will there be two app stores and two app store teams? 🔄 View on the Web Archives ISSUE 675 August 23rd 2024 Comment If you've been reading for a while, you'll know I rarely talk about rumours,

iOS Dev Weekly - Issue 674

Tuesday, August 20, 2024

It's so nice to see an app store that isn't focused on extracting the most profit possible succeed! ❤️ View on the Web Archives ISSUE 674 August 16th 2024 Comment I can't find it in the iOS

iOS Dev Weekly - Issue 673

Friday, August 9, 2024

Is the race to the bottom now a race to the top? 📈 View on the Web Archives ISSUE 673 August 9th 2024 Comment I'm sure you already read this week's news that Apple's profit from services is

iOS Dev Weekly - Issue 672

Friday, August 2, 2024

Links, links, and more links. That's what this issue is all about! ⛓️ View on the Web Archives ISSUE 672 August 2nd 2024 Comment Sometimes I have so much to write here I can't decide which

You Might Also Like

👆 Is Swiping Faster Than Typing on a Phone Keyboard? — Google Home Features You Gotta Try

Friday, September 20, 2024

Also: What the iPhone 16 Colors Really Look Like, and More! How-To Geek Logo September 20, 2024 Did You Know Thorny dragons, a species of small lizard native to Australia, appear to be able to drink

I recorded a video for you

Friday, September 20, 2024

if you prefer to watch this email instead of reading it, then… ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

JSK Daily for Sep 20, 2024

Friday, September 20, 2024

JSK Daily for Sep 20, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Attention JavaScript Developers: New Certification Program Hey there p> Bob Senoff Read

The Heat Is On

Friday, September 20, 2024

Nike Ouster, iPhone Transfer Pain, Small Strawberry Models, China AI, iPhone Licenses, Shohei the Money, Disney's Unfreeze The Heat Is On Nike Ouster, iPhone Transfer Pain, Small Strawberry Models,

How to Get More Eyes on Your Stories: Social Media Promotion Tips 💡

Friday, September 20, 2024

Hello again, Hacker💚 Have you ever written an amazing, near-perfect article only for the views to not reflect your hard work? We know what that feels like, so here are some quick tips on how to promote

Ranked | The Most Reliable Car Brands, According to Consumer Reports 🚗

Friday, September 20, 2024

Consumer Reports ranked the most reliable car brands using surveys and analysis of over 330000 vehicles. Which cars are most reliable? View Online | Subscribe | Download Our App Presented by: Get more

Daily Coding Problem: Problem #1562 [Easy]

Friday, September 20, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Consider the following scenario: there are N mice and N holes placed at integer

iOS Dev Weekly - Issue 679

Friday, September 20, 2024

Did you get a box with a shiny new device in it today? 📱 View on the Web Archives ISSUE 679 September 20th 2024 Comment Happy New Device Day to those who are celebrating! I hope you'll forgive me a

What are your competitors doing?

Friday, September 20, 2024

​ What are your competitors doing? Does it matter? When you're deciding what to include in and exclude from your product, there are a variety of factors you need to consider. Hopefully, the first

Looking for the Best AI PDF Tool? Save Big on UPDF Editor with AI (An Excellent Adobe Acrobat Alternative)

Friday, September 20, 2024

Use AI to easily edit, annotate, summarize, or convert your PDF files — Big Discount Inside! How-To Geek Logo September 20, 2024 Explore the Power of UPDF AI Editor — Try it Today! Win an iPhone 16 and