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

AI + high-stakes poker + Google's prompt cheat sheet

Tuesday, October 8, 2024

and a google prompt cheat sheet ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

👍 How My Phone Became My Favorite Game Console — Why Desktop Linux Matters

Tuesday, October 8, 2024

Also: iPhone Mirroring Is Here and Mostly Works, and More! How-To Geek Logo October 8, 2024 Did You Know At the end of the song "Sweet Child O' Mine," found on Guns N' Roses'

Software Testing Weekly - Issue 240

Tuesday, October 8, 2024

How Sonos Lost $200M: A Hard Lesson in Quality 🚨 View on the Web Archives ISSUE 240 October 8th 2024 COMMENT Welcome to the 240th issue! Back in June, I shared with you about the big problem with a new

Immutable Types, DuckDB & Pyodide, Free Threaded, and More

Tuesday, October 8, 2024

Differences Between Python's Mutable and Immutable Types #650 – OCTOBER 8, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Differences Between Python's Mutable and Immutable Types In this

Ranked | The Costliest Hurricanes to Hit the U.S. ☔

Tuesday, October 8, 2024

As of 2023, Hurricane Katrina is the costliest natural disaster in US history, causing over $200 billion in damages in 2024 dollars. View Online | Subscribe | Download Our App Presented by: NEW REPORT:

Daily Coding Problem: Problem #1572 [Easy]

Tuesday, October 8, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Yelp. Given a mapping of digits to letters (as in a phone number), and a digit string,

The Race for Server Space

Tuesday, October 8, 2024

Apple's Leak, Disney's Star Wars, Google's Epic Fail, OpenAI's Space Race The Race for Server Space Apple's Leak, Disney's Star Wars, Google's Epic Fail, OpenAI's Space

Microsoft goes Go for SQL Server's CLI

Tuesday, October 8, 2024

Plus new ways to deploy Go apps, reflecting on reflection, and Windows gets high resolution timers in Go. | Together with Frontend Masters logo #​526 — October 8, 2024 Unsub | Web Version Go Weekly

⚙️ Nvidia's new Agents

Tuesday, October 8, 2024

Plus: Chipmaker delivers 100k GPUs ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

How Does Visual Capitalist Work With Clients? 💪

Tuesday, October 8, 2024

Here's how organizations can partner with Visual Capitalist to leverage world-class data storytelling, and its strong audience and reach. View Online | Subscribe | Download Our App For 13 years,