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

Issue 340 - Elon Musk hints at a new model for large families

Thursday, November 21, 2024

View this email in your browser If you are just now finding out about Tesletter, you can subscribe here! If you already know Tesletter and want to support us, check out our Patreon page Issue 340 -

Data Science Weekly - Issue 574

Thursday, November 21, 2024

Curated news, articles and jobs related to Data Science, AI, & Machine Learning ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Programmer Weekly - Issue 232

Thursday, November 21, 2024

View this email in your browser Programmer Weekly Welcome to issue 232 of Programmer Weekly. Let's get straight to the links this week. Quote of the Week "Writing software is a very intense,

Better - An AI Powered Code Reviewer

Thursday, November 21, 2024

Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 21, 2024? The HackerNoon

Python Weekly - Issue 677

Thursday, November 21, 2024

View this email in your browser Python Weekly Welcome to issue 677 of Python Weekly. Let's get straight to the links this week. From Our Sponsor Get Your Weekly Dose of Programming A weekly

Web Tools #592 - JS Libraries, Git/CLI Tools, Media/SVG

Thursday, November 21, 2024

WEB VERSION Issue #592 • November 21, 2024 Advertisement Deploy AMD Instinct™ MI300X on Vultr AMD Instinct MI300X accelerators are now available on the Vultr cloud platform. With thousands of AMD

Stop Using the Wrong State Management in Jetpack Compose

Thursday, November 21, 2024

View in browser 🔖 Articles Benchmark Insights: Direct State Propagation vs. Lambda-based State in Jetpack Compose Here, we'll dive into some benchmark analysis on the state propagation approach in

wpmail.me issue#694

Thursday, November 21, 2024

wpMail.me wpmail.me issue#694 - The weekly WordPress newsletter. No spam, no nonsense. - November 21, 2024 Is this email not displaying correctly? View it in your browser. News & Articles State of

Turn off Google AI with two letters

Thursday, November 21, 2024

$250 off M4 MacBook; Linux Foundation marks 20 years; Bluesky tips -- ZDNET ZDNET Tech Today - US November 21, 2024 laptop This absurdly simple trick turns off AI in your Google Search results There

PHPWeekly November 21st 2024

Thursday, November 21, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 21st November 2024 Hi everyone, PHP 8.4 id due for a release today,