When you begin migrating to the Swift 6 language mode, you may most probably activate strict concurrency first. As soon as you have performed this there shall be a number of warings and errors that you will encounter and these errors will be complicated at instances.
I am going to begin by saying that having a strong understanding of actors, sendable, and information races is a big benefit once you need to undertake the Swift 6 language mode. Just about the entire warnings you may get in strict concurrency mode will let you know about potential points associated to working code concurrently. For an in-depth understanding of actors, sendability and information races I extremely advocate that you simply check out my Swift Concurrency course which can get you entry to a sequence of movies, workout routines, and my Sensible Swift Concurrency e book with a single buy.
WIth that out of the way in which, let’s check out the next warning that you simply may encounter in your undertaking:
Worth of non-Sendable sort ‘MyType’ accessed after being transferred; later accesses might race;
For instance, the next code produces such an error:
var myArray = [Int]()
Activity {
// Worth of non-Sendable sort '@remoted(any) @async @callee_guaranteed @substituted <τ_0_0> () -> @out τ_0_0 for <()>' accessed after being transferred; later accesses might race;
myArray.append(1)
}
myArray.append(2)
Xcode provides somewhat steering as to what that error is telling us:
Entry can occur concurrently
In different phrases, the compiler is telling us that we’re accessing myArrayafter we have “transferred” that property to our Activity. You possibly can see how we’re appending to the array each within the duty in addition to outdoors of it.
Swift is telling us that we’re probably inflicting information races right here as a result of our append on myArrayafter the duty may really collide with the append inside of the duty. When this occurs, we now have a knowledge race and our code would crash.
The repair right here could be to explicitly make a replica for our activity when it is created:
Activity { [myArray] in
var myArray = myArray
myArray.append(1)
}
This eliminates our information race potential however it’s additionally not likely reaching our aim of appending to the array from within the duty.
The repair right here may very well be one in all a number of approaches:
You possibly can wrapp your array in an actor to make sure correct isolation and synchronization
You possibly can rework your strategy fully
International actors may very well be helpful right here relying on the construction of your code
In the end, most strict concurrency associated points do not have a single resolution that works. It is all the time going to require a case-by-case evaluation of why a sure error seems, and from there you need to work out an answer.
On this case, we’re taking a mutable object that we’re mutating from inside a activity in addition to proper after the place we have outlined the duty. The compiler is warning us that that may most probably trigger a knowledge race and you will want to find out which resolution works for you. My first try at fixing this could be to wrap the mutable state in an actor to verify we obtain correct isolation and stop future information races.
Generally it looks like the large tech corporations have misplaced the script about the right way to make issues that individuals actually need.
Take Apple Intelligence. Apple Intelligence could very nicely find yourself being a boon for Apple’s platforms. Actually, something that improves Siri goes to be a welcome addition. Nonetheless, there’s a good quantity of proof that nobody desires these items.
For instance, CNN reviews that, “manufacturers ought to keep away from this common time period. It’s turning off prospects” That “time period” just isn’t what I considered, which was “mouth really feel.” Seems it’s “AI.” When you don’t imagine me, then perhaps you’ll imagine the Taco Bell Distinguished Professor of Hospitality Enterprise Administration at Washington State College:
“We checked out vacuum cleaners, TVs, shopper providers, well being providers,” mentioned Dogan Gursoy, one of many research’s authors and the Taco Bell Distinguished Professor of hospitality enterprise administration at Washington State College, in an interview with CNN.
And also you thought I made that up.
“In each single case, the intention to purchase or use the services or products was considerably decrease each time we talked about AI within the product description.”
Surveys of shopping for intentions are sometimes probably not a superb indicator of what individuals find yourself shopping for, but it surely does appear to be few actual people are clamoring for AI. In actual fact, quite a lot of right this moment’s tech moonshots appear to be lacking the mark.
The Imaginative and prescient Professional moonshot has thus far been extra of a moonwalk, if you’ll. (Are you able to? I can kinda of do it a bit relying on what footwear I’m sporting however… sorry, that’s not the purpose.) Whereas a exceptional feat of engineering, its worth makes it not an choice for most individuals and even amongst those that can afford one, integrating it into your life presently is a little bit of a crapshoot. Some swear by it, others largely depart it within the field. The Imaginative and prescient Professional is actually going to evolve as Apple nonetheless reportedly has plans for a less expensive model that can spur extra adoption and, consequently, extra experiences on the gadget. However it’s not there but.
The Imaginative and prescient Professional made a giant splash. however we’re years away from figuring out what sort of influence it’s going to have.
The Imaginative and prescient Professional made a giant splash. however we’re years away from figuring out what sort of influence it’s going to have.
Foundry
The Imaginative and prescient Professional made a giant splash. however we’re years away from figuring out what sort of influence it’s going to have.
Foundry
Foundry
An Apple moonshot that by no means was is the long-rumored Apple automobile. After years of growth and reorganizations, the firm lastly canceled the mission earlier this 12 months.
Even the top-of-the-line iPhones don’t excite the way in which they used to. That’s extra the pure evolution of merchandise, although. They’re nonetheless nice telephones, however yearly the cameras get higher, the widgets get extra widgety, and the Professional telephones get the dullest attainable colours conceivable. (The rumored iPhone Air, nevertheless, might carry some pleasure again to the lineup.)
For my cash, Apple’s actual heroes aren’t the large, splashy ones that get all of the headlines. They’re the little ones. And, presumably to Tim Cook dinner’s chagrin, a budget ones.
The Mac mini
Keep in mind when the Mac mini was the gadget for switchers? I hate to inform you, however that was nearly 20 years in the past. They make the Mac mini for everybody now.
After preliminary success, Apple nearly forgot it made a Mac mini, neglecting to replace it for 4 years within the mid-2010s (to be truthful, Apple was neglecting many of the Mac lineup on the time). Now the corporate seems about to refresh the design of the little Mac that would, making it even smaller and, dare I say, probably the most highly effective Mac mini ever. True story.
The present Mac mini begins at $599, $100 greater than the unique model Steve Jobs launched in 2005, and I wouldn’t be shocked to see that inch up with a brand new smaller and much more cute kind issue. However, it’ll nonetheless be the most cost effective Mac cash should buy, and it will get the job executed.
The Tenth-gen iPad
The Tenth technology iPad begins at simply $349, a worth so low it’ll make you overlook it comes from the corporate whose merchandise famously “price an excessive amount of.” This can be a exceptional quantity of gadget for the value.
Whereas different pc producers make low-cost laptops on this worth vary, they’re…how do I put this politely?…the most well liked of all the rubbish. Plastic frames with sluggish processors and loaded with junkware. Apple’s not going to ship one thing like that, so it gives a tool that may do e-mail, net searching, play some video games and allow you to watch your tales, all in the identical easy-to-use approach as your cellphone. (Simply…strive to not multitask.)
The iPhone SE
The excessive finish of the iPhone line sells extremely nicely nowadays contemplating the outrage that ensued seven years in the past when Apple was rumored to be introducing a thousand-dollar cellphone. Now individuals drop $999 and up on an iPhone with out even interested by it.
However Apple additionally sells an iPhone that begins at lower than half that. Positive, the present SE is a bit lengthy within the tooth, however a rumored refresh is coming within the spring and can reported even be capable to deal with Apple Intelligence (assuming anybody desires that). The iPhone SE line isn’t refreshed usually sufficient for my tastes however when it’s you’ll be able to’t get higher bang in your iPhone buck.
The iPhone Se is due for a refresh and it might come subsequent spring.
The iPhone Se is due for a refresh and it might come subsequent spring.
Willis Lai/IDG
The iPhone Se is due for a refresh and it might come subsequent spring.
Willis Lai/IDG
Willis Lai/IDG
AirPods
AirPods are in that class of product which are each nice for customers and nice for Apple. Keep in mind wearables? That was going to be the large new factor 10 years in the past when Apple was broadly chastised for being behind on it (if Apple had a nickel for each time it was behind on one thing it’d lastly be a wealthy firm). Between AirPods and the Watch, Apple now owns the wearables class, which is why nobody talks about it anymore.
If I have been to choose one gadget that reworked my private computing expertise over the past 10 years, it will most likely be AirPods. They’re all the time in my pocket (I lastly have a use for that little coin pocket on my denims) and, positive, generally we disagree on which gadget I must be listening to, however with a cordless audio expertise like AirPods, who misses the headphone jack? (I do know, I do know. The Verge.)
Apple Watch
A flop. That’s what they known as it. Earlier than it even got here out after which after it got here out. There’s most likely somebody nonetheless on the market calling it a flop, however now they’re all over the place. Beginning at simply $249, the Watch has developed into an incredible health and well being gadget, in addition to a good way for adults and youngsters to depart the smartphone at house.
(If that is beginning to appear to be an advert, keep in mind that I began by speaking about Apple merchandise I felt weren’t delivering. Additionally, Tim Cook dinner would most likely fairly you didn’t purchase Apple’s most cost-effective merchandise.)
Generally you want a moonshot to make a splash (that may appear to be mixing metaphors however they’ve discovered water on the Moon). So Apple can’t simply cease making an attempt to make large issues. However generally it’s the little issues that do a greater job of getting you the place it’s good to go.
Password managers comparable to 1Password and LastPass are nice. We keep a advisable checklist of Password managers for a purpose—a great one makes it straightforward to make use of sturdy, distinctive passwords in all places on the net, it doesn’t matter what platform or browser you occur to make use of.
However to get probably the most out of them, it is advisable to pay a subscription price. It solely is smart–there’s a value to operating these cloud companies. However now that Apple is introducing a standalone Passwords app in iOS 18 and macOS Sequoia, I puzzled if I might drop my 1Password subscription and save a couple of bucks a month. I additionally use Authy for two-factor authentication keys, and I adore it, however since Apple’s Passwords app helps customary 2FA keys as effectively, I might successfully remove two apps from my iPhone.
A few week in the past I took the plunge, and I realized that most customers can change their paid password supervisor with Apple’s free answer. There are a number of wrinkles and annoyances, nevertheless it’s undoubtedly “ok” for many on a regular basis customers. Apple might stand to shine up its app in a number of locations, and it’s not going to get the job performed for energy customers, however the greatest annoyance I bumped into was really making the change, not utilizing the Passwords app after getting all of it transferred over.
Making the change is the worst half
The worst a part of shifting from 1Password and Authy to Apple’s Passwords app has been actually making the change.
Getting passwords out of 1Password was straightforward sufficient. 1Password can shortly and simply export passwords to CSV format (comma-separated values), and the Passwords app shortly imports them. It handled duplicates effectively sufficient, and solely a handful of passwords didn’t import.
Coping with these was extra annoying–both reconciling the issue in 1Password and exporting once more, or including them manually. It’s not tough, nevertheless it’s a tedoius course of.
Even worse was shifting 2FA codes from Authy. I like Authy’s cloud sync and backup, however there’s no official export perform. With out counting on third-party instruments that I may not belief (and don’t wish to arrange), meaning logging in to each account I’ve a 2FA code for and including a brand new one. In lots of instances, the service solely permits a single 2FA code and I needed to disable 2FA and set it up once more from inside the Passwords app.
That’s straightforward sufficient–it helps the usual guide code or “scan a QR code together with your cellphone digital camera” strategies. Once more, it’s not a tough activity, nevertheless it’s an hour of busy work I’d moderately not have needed to do.
Then there are different apps. I exploit Chrome lots, so I needed to seize the iCloud Passwords extension for autofill to work there. I additionally needed to set up the iCloud app on my Home windows machine to sync my passwords there (Apple supplies no password administration on Home windows, however the passwords sync to the browser extensions by way of the Home windows iCloud app). The entire course of took most of a day, and I spent the subsequent few days cleansing up the occasional dangerous URL or duplicated password.
Those that don’t have already got a password supervisor gained’t must undergo any of this, in fact. When you’re considering of switching to avoid wasting the price on your password supervisor, anticipate it to take some time.
Ok for many
Apple’s Passwords app works effectively sufficient for the fundamental capabilities most of us depend on. It shops and fills login passwords, Wi-Fi passwords, 2FA codes, and passkeys. It warns you of easy-to-guess passwords, reused passwords, and passwords that appeared in main information breaches. It’s additionally comparatively straightforward to securely share passwords with others. Apple additionally supplies its personal instructed passwords for brand spanking new signups.
It doesn’t offer you a lot in the way in which of different options–saved bank card and identification information to autofill in kinds, safe doc storage or notes, and so forth. Apple has different apps that do these issues in encrypted methods, however in the event you use different platforms and browsers, they’re not simply obtainable.
I want the interface of another apps to Apple’s moderately pedestrian effort, too.
After organising the browser extension in Chrome, you’ll must enter a six-digit passcode (generated by the iCloud Home windows app) to sync the browser extension together with your saved passwords. It gained’t enter 2FA codes, so that you’ll have to take a look at your iPhone for that. When you use Firefox or a browser that doesn’t help Chrome extensions, you’re out of luck: Apple doesn’t make an add-on.
Excellent news, although: With macOS Sonoma and the brand new Passwords app, the Chrome and Edge extensions now work on the Mac, too.
Suffice it to say that for most customers, Apple’s Passwords app will get the job performed. It’s not a luxurious expertise, however most individuals don’t use a password supervisor in any respect…getting them within the door this fashion is an efficient factor. When you simply love your present password supervisor and use it to hook up with a number of platforms and browsers, it could be price persevering with to pay its subscription price.
When you primarily use Apple merchandise and Safari, you’re going to have a smoother trip, and it’s onerous to suggest a paid password supervisor for all however probably the most choosy of energy customers.
Areas the place Apple can enhance
Apple might make the Passwords app a very nice answer for many customers with a number of enhancements. Rising the font dimension on the 2FA codes by a number of factors would assist. There’s textual content on the high of the Codes display screen that exhibits you the way lengthy till the codes reset, nevertheless it scrolls off the highest of the display screen if you scroll down your checklist–it ought to keep anchored on the high of the display screen.
There ought to be a Firefox extension a minimum of, and each it and the Chrome extensions ought to use the identical basis as passkeys to assist you to unlock them with Face ID in your iPhone in the event you don’t wish to kind in a six-digit code on Home windows (on Mac, you employ Contact ID to unlock the Mac passwords app).
You may simply export all of your passwords on a Mac, however doing so on an iPhone or iPad doesn’t appear doable in any respect. One thing as crucial as our passwords shouldn’t be dumped right into a one-way bit-bucket like this.
Even with out these modifications, the brand new Passwords app is…advantageous. For the majority of Apple customers who don’t repeatedly use different platforms or browsers, it’s very low-friction, and even for many who use Chrome or Edge and even Home windows, it will get the job performed effectively sufficient. It’s an enormous step up from the established order in iOS 17 and macOS 14, which is all of your password caught three menus deep in Settings, and it’s a fantastic first step for almost all of customers who don’t use a devoted password supervisor.
I simply hope Apple doesn’t wait till iOS 19 to make some enhancements, as a result of it could possibly be nice.
Let’s be trustworthy. The world of cybersecurity seems like a relentless warfare zone. You are bombarded by threats, scrambling to maintain up with patches, and drowning in an countless flood of alerts. It is exhausting, is not it?
However what if there was a greater means?
Think about having each important cybersecurity device at your fingertips, all inside a single, intuitive platform, backed by skilled help 24/7. That is the game-changing energy of an All-in-One answer.
Discovered this text attention-grabbing? This text is a contributed piece from one in every of our valued companions. Observe us on Twitter and LinkedIn to learn extra unique content material we put up.
Immediate Engineering has been a scorching subject in 2024, with the fast development of Generative AI driving learners to talent up on this aggressive discipline. Mastering immediate engineering is like having the keys to a robust machine that may remodel concepts into actuality. Whereas many immediate engineering programs can be found, they typically lack practicality and good use circumstances. Anthropic’s Immediate Engineering Interactive Tutorial stands out by providing a free, hands-on studying expertise. This course teaches you learn how to form and refine your interactions with Claude, one of the subtle AI fashions (for FREE)!
Overview
Immediate Engineering is now a vital talent for excelling in AI-driven fields.
Anthropic’s Immediate Engineering Interactive Tutorial affords hands-on studying to grasp AI prompts.
Efficient immediate engineering enhances AI outputs, saving time and enhancing productiveness.
The course covers all the things from primary to superior immediate engineering strategies utilizing Claude.
This course is tailor-made to numerous industries and is on the market on Google Sheets for interactive studying.
Why you need to take a Immediate Engineering Course?
Whether or not you’re a budding knowledge scientist, an AI developer, or somebody fascinated with leveraging AI instruments for enterprise or analysis, mastering immediate engineering provides you the total potential to discover AI fashions, significantly Generative ones. If you happen to’re encountering immediate engineering for the primary time, you may surprise why you need to make investments time in working towards this talent. The reply is easy: efficient prompts result in higher AI outputs, enabling you to create extra correct, related, and impactful outcomes.
Immediate engineering means that you can talk extra successfully with AI fashions, making them produce outputs that align intently together with your targets. By honing this talent, it can save you time, scale back errors, and enhance productiveness, whether or not you’re automating duties, producing inventive content material, or conducting analysis. As AI continues to evolve, these with sturdy, immediate engineering expertise might be higher geared up to harness the facility of those applied sciences and keep forward in a quickly altering panorama.
Anthropic Immediate Engineering Course Targets
By the top of this course, you received’t simply perceive immediate engineering; you’ll excel at it. You’ll study:
Mastering Immediate Construction: Perceive the constructing blocks of an important immediate.
Figuring out and Overcoming Pitfalls: Be taught the 80/20 strategies to sort out widespread immediate failures.
Leveraging Claude’s Strengths: Know when to make use of Claude for optimum outcomes and keep away from its limitations.
Crafting Efficient Prompts for Varied Eventualities: Develop prompts from scratch tailor-made to your particular wants.
Claude Mannequin: Claude-3-haiku-20240307
This isn’t only a course; it’s a journey into the guts of AI interplay, designed to be as interactive and hands-on as potential.
Anthropic Immediate Engineering Course Construction
The course is split into 9 chapters, every full of classes and workout routines that may progressively construct your expertise. Right here’s what you may anticipate:
Newbie Stage:
Chapter 1: Fundamental Immediate Construction
Chapter 2: Being Clear and Direct
Chapter 3: Assigning Roles
Intermediate Stage:
Chapter 4: Separating Information from Directions
Chapter 5: Formatting Output & Talking for Claude
Chapter 6: Precognition (Pondering Step by Step)
Chapter 7: Utilizing Examples
Superior Stage:
Chapter 8: Avoiding Hallucinations
Chapter 9: Constructing Advanced Prompts (Business Use Instances)
Every chapter not solely teaches you concept but additionally immerses you in follow. The “Instance Playground” on the finish of every lesson allows you to experiment with immediate variations, serving to you see firsthand how completely different inputs yield completely different outputs.
Anthropic Immediate Engineering Course: Why it Stands Out?
They’ve designed this course together with your studying journey in thoughts. Right here’s what makes it distinctive:
Interactive Studying: Each lesson comes with workout routines that problem you to suppose, attempt, and iterate.
Tailor-made to Your Wants: Whether or not you’re centered on authorized providers, monetary operations, or coding, our superior sections present industry-specific workout routines.
Superior Strategies: For these seeking to transcend the fundamentals, our appendix affords superior strategies like chaining prompts, integrating instruments, and using search and retrieval methods.
This tutorial can be out there on Google Sheets by way of Anthropic’s Claude for Sheets extension, providing an much more user-friendly interface. We advocate attempting each variations to see which fits your type greatest.
Tutorial How you can Use this on Google Sheets?
Firstly, you want an API key to work together with this tutorial. If you happen to don’t have one, you may join it via the Anthropic Console or use the static tutorial reply key.
Getting Began:
Make a Copy: Save a replica of this sheet to your Google Drive.
Set up Claude for Sheets Extension: a. Go to the Claude for Sheets extension web page. b. Click on the blue set up button. (If you have already got it put in, skip to step 3.)
Allow the Extension for This Doc: a. Within the toolbar, go to Extensions > Add-ons > Handle add-ons. b. Click on the three-dot menu within the prime proper nook of the Claude for Sheets extension. c. Guarantee “Use on this doc” is checked.
Add Your API Key: a. Get hold of your distinctive Anthropic API key by following the offered directions. b. Enter your API key by going to Extensions > Claude for Sheets™ > Enter your Anthropic API Key.
Listed below are articles on Immediate Engineering that may enable you to in your research:
This course makes use of Claude 3 Haiku with a temperature setting of 0, leading to sooner and extra constant outputs. These immediate engineering strategies additionally apply to different Claude fashions.
So as to add a brand new line in a cell:
Mac: Cmd + Enter
Home windows: Alt + Enter
Navigating Pages:
Click on on the grey hyperlinks at every web page’s backside or the highest proper nook.
Use the blue-linked pop-up for navigation.
If you attain the right reply, Claude’s response cell will flip inexperienced.
Conclusion
Because the world of AI continues to evolve at a breakneck tempo, the significance of mastering immediate engineering can’t be overstated. This talent is turning into a cornerstone for anybody aiming to excel in AI-driven fields, enabling you to speak extra successfully with AI fashions and obtain higher, extra exact outputs. The Anthropic Immediate Engineering Course affords a novel alternative to realize hands-on expertise and deepen your understanding of this vital talent. Whether or not you’re a novice or an skilled AI person, this course equips you with the information and instruments wanted to harness AI’s full potential, making you a precious asset in an more and more AI-centric world. Don’t simply adapt to the long run—form it with the facility of immediate engineering.
Additionally, if you wish to excel in immediate engineering, then discover – the GenAI Pinnacle Program at the moment! Right here’s the roadmap:
Are you prepared to remodel the best way you work together with AI? Let’s get began!
Regularly Requested Questions
Q1. What’s Immediate Engineering?
Ans. Immediate Engineering is designing and refining prompts to information AI fashions, like GPT or Claude, in producing the specified output.
Q2. Who ought to take a Immediate Engineering course?
Ans. This course is good for AI fans, builders, knowledge scientists, and anybody fascinated with extra successfully utilizing AI fashions.
Q3. What’s going to I study in a Immediate Engineering course?
Ans. You’ll learn to craft efficient prompts, perceive AI mannequin conduct, troubleshoot immediate points, and optimize outputs for numerous purposes.
This fall. Do I would like prior expertise in AI to take this course?
Ans. Whereas some programs could require primary AI information, many are designed for rookies and can cowl important ideas from scratch.
Q5. How can Immediate Engineering expertise profit my profession?
Ans. Mastering Immediate Engineering could make you simpler in roles involving AI, improve your problem-solving talents, and open up new alternatives within the quickly rising AI discipline.