Modern Concurrency on Apple Platforms: Using async/await with SwiftКНИГИ » ПРОГРАММИНГ
Название: Modern Concurrency on Apple Platforms: Using async/await with Swift Автор: Andres Ibanez Kautsch Издательство: Apress Год: 2023 Страниц: 213 Язык: английский Формат: pdf (true), epub Размер: 10.2 MB
Build solid software with modern and safe concurrency features. Concurrency is one of the hardest problems in computer science. For years, computer scientists and engineers have developed different strategies for dealing with concurrency. However, the original concurrency primitives are complicated and difficult to understand, and even harder to implement.
Using the new async/await APIs in Swift, this book will explain how your code can abstract a lot of the complexity with a simpler interface so you never have to deal with concurrency primitives such as semaphores, locks, and threads yourself. This will allow you to write concurrent code that is easier to read, easier to write, and easier to maintain. These new APIs are deeply ingrained into Swift, offering compile-level features that will keep you from writing dangerous concurrent code.
You’ll start by exploring why concurrency is hard to implement in a traditional system. Explaining the definition of concurrency and what its primitives are will help you understand why they are hard to use correctly. These concepts will become clearer as you work through the sample projects. The book’s focus then shifts exclusively to the new APIs, helping you understand how the integration of the system with the language itself makes it easier for you to write concurrent code without overstepping the bounds of the concurrency safe zone.
Concurrency is a topic a lot of developers find scary. And for good reason. Concurrency is probably one of the most complicated topics in the world of programming. When you look at it from a very high level, concurrency allows us to do a lot of work at the same time. Sometimes related, sometimes unrelated. The definition is simple, but as a programmer, it is hard to reason about concurrent programs. We learn to write code that can be read from top to bottom, and code usually makes sense when you read it in such a manner. In fact, the way developers reason about code is not too different to how non-programmers reason about a cooking recipe. Humans can understand anything they read if it is structured and makes sense.
But the very nature of concurrency breaks this top-to-bottom reading flow. Not only do we need to reason about concurrency differently, but we also need to keep in mind other factors that make it harder, such as shared mutable data, locks, threads…. Concurrency is naturally very complicated, especially when dealing with lower-level tools.
By the end of the book, you’ll have a solid foundation for working safely with concurrent code using the new async/await APIs.
Скачать Modern Concurrency on Apple Platforms: Using async/await with Swift
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
С этой публикацией часто скачивают:
Python Concurrency with asyncio Название: Python Concurrency with asyncio Автор: M Fowler Издательство: Manning Publications Год: 2022 Формат: True PDF Страниц: 378 Размер: 10 Mb...
Modern Concurrency in Swift (1st Edition) Название: Modern Concurrency in Swift (1st Edition) Автор: Marin Todorov Издательство: Razeware LLC Год: 2021 (v1.0.1) Страниц: 263 Язык: английский...
Concurrency with Modern C++ Название: Concurrency with Modern C++ Автор: Rainer Grimm Издательство: Ruboss Technology Corp. Год: 2019 Формат: True PDF Страниц: 475 Размер: 10.9...
Concurrency by Tutorials (1st Edition) Название: Concurrency by Tutorials (1st Edition) Автор: Scott Grosch Издательство: Razeware LLC Жанр: Программирование Год издания: 2019 Страниц: 96...
C++ Concurrency in Action, 2nd Edition Название: C++ Concurrency in Action, 2nd Edition Автор: Anthony Williams Издательство: Manning Год: 2019 Формат: PDF Страниц: 592 Для сайта:...
C++ Concurrency in Action Название: C++ Concurrency in Action Автор: Anthony Williams Издательство: Manning Publications Год: 2012 ISBN: 978-1-933-98877-1 Формат: pdf Страниц:...
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.