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

Weekend Reading — Happy "That's a January Problem" week

Saturday, December 21, 2024

Can Christmas season start a little earlier this year Tech Stuff Ramsey Nasser fuck it happened i am in a situation where i do actually need to reverse a linked list Atuin I just learned about Atuin

Daily Coding Problem: Problem #1644 [Easy]

Saturday, December 21, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by IBM. Given an integer, find the next permutation of it in absolute order. For example,

🐧 Whatever Happened to Unix Workstations? — My Incredibly Cheap Alternative to a Soundbar

Saturday, December 21, 2024

Also: Here's Why More Games Need Expanded Difficulty Settings How-To Geek Logo December 21, 2024 Did You Know Lake Wendouree, an artificially created and maintained shallow urban lake in Australia,

Supercharge Your Knowledge Capture Workflow with the Obsidian Web Clipper

Saturday, December 21, 2024

Stop juggling multiple tools and supercharge your knowledge capture workflow with Obsidian's powerful Web Clipper browser extension Sébastien Dubois DeveloPassion's Newsletter Supercharge Your

Charted | The World's Most Valuable Automakers 🚙

Saturday, December 21, 2024

Tesla shares reached a record high, setting a new valuation milestone. This graphic highlights the world's most valuable automakers by market cap. View Online | Subscribe | Download Our App

Next Holiday Season, Ignore Everyone Except One Customer

Saturday, December 21, 2024

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, December 21, 2024? The

🐍 New Python tutorials on Real Python

Saturday, December 21, 2024

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: 🎓 Master Python's Core Principles (New Live

Post from Syncfusion Blogs on 12/21/2024

Saturday, December 21, 2024

New blogs from Syncfusion ASP.NET MVC Suite Update: Aligning with .NET Changes By Rajendran R Discover key updates in our ASP.NET MVC suite, aligning with Microsoft's latest .NET changes for

LockBit Ransomware Developer Charged for Billions in Global Damages

Saturday, December 21, 2024

THN Daily Updates Newsletter cover The Data Science Handbook, 2nd Edition ($60.00 Value) FREE for a Limited Time Practical, accessible guide to becoming a data scientist, updated to include the latest

Re: My VPN recommendation

Saturday, December 21, 2024

Do you know when to use a VPN and what it does to protect your data? Any time you are connected to the internet, your information is at risk of being tracked or hacked. A VPN helps keep your surfing