Your Brain 🧠 on Swift Concurrency - iOS Conf SG 2023
HTML-код
- Опубликовано: 28 сен 2024
- Speaker: Donny Wals
This talk will cover some interesting bits and details about how Swift Concurrency requires a bit of a different way of thinking compared to what we used before!
Recorded by Kale ( @kalestarler ) and Tim Shim ( timshim)
iosconf.sg
Find us @iOSConfSG on Twitter
I was going through modern concurrency for a while and only this talk put the light on the things I didn’t quiet understand. Thanks Donny!
Phenomenal talk🤩
Really great talk. I can’t help but feel that async await isn’t production ready. There doesn’t seem to be a great way to serialize work and there seems there are a lot of “gotchas”. It makes async code easy to right and hard to reason about which is a bad combination. I feel for new developers trying to wrap their heads around this. I’m sure it will improve, it solves some interesting performance problems, and it never seems to be solving the problem you think it is.
As a newbie ios dev i still can't decide whether this new approach is easier or harder to compehend.
Apple / Swift community should pay attention to comments like this!
I guess GCD does the job for most the cases.
You can use both, but with async/await you have far less code, but the impact from both are just the same
Cycle does the job of taking from one place to another, so why to use bikes and cars
This is such a good talk ! well done.
Great talk!
So we just swap all our classes for actors or what?
If it interacts with the UI, then yeah
@@griffinbaker860 no. actors don't have inheritance, so they can't be a stand-in for classes. actors are for when you need to encapsulate mutable state in a thread safe manner.
No only the classes that have information that can be accessed by more than one thread at a time, so some kind of DataManager class with public vars and methods, Actors will make sure no data races happen where a class cant do that by default