Open in app

Sign In

Write

Sign In

Serhiy Butz
Serhiy Butz

18 Followers

Home

About

Oct 12, 2021

Swift: Shared memory manager

Memory allows the computational process to keep track of its state to make progress, so memory working skills are crucial for programmers. But in today's computing systems, where multiple threads of execution operate simultaneously, the complexity of working with memory takes on a new dimension. When a correctly written program…

15 min read

Swift: Shared memory manager
Swift: Shared memory manager

15 min read


Sep 12, 2021

Swift: Mutex benchmark

When designing concurrent programs, correctness is always the most important factor, but you should also consider performance factors as well. Code that executes correctly under multiple threads, but slower than the same code running on a single thread, is hardly an improvement. In this post, I benchmark the overhead of…

Swift

7 min read

Swift: Mutex benchmark
Swift: Mutex benchmark
Swift

7 min read


Aug 22, 2020

Combine: WithLatestFrom operator

Despite Apple’s promoting their new SwiftUI framework, there’re a lot of projects, based on the plain old UIKit framework. Nevertheless, even if this is the case, and you’re tied to UIKit, there’s nothing that gets in the way of adopting Combine. To leverage Combine pipelines with UIKit, the used UIKit…

I OS

7 min read

Combine: WithLatestFrom operator
Combine: WithLatestFrom operator
I OS

7 min read


Aug 21, 2020

Combine: ShareReplay operator

Suppose our Combine-based app connects to an outdoor air temperature sensor, which pushes the temperature measurements at a constant rate. We want our app to show a dynamic diagram of the latest temperature readings, but we don’t need all history of them, rather only a certain number of the latest…

I OS

5 min read

Combine: ShareReplay operator
Combine: ShareReplay operator
I OS

5 min read


Aug 20, 2020

Combine: Insight into Zip operator

Intro Apple’s Combine, a reactive programming (RP) framework, was developed for heavy use and with achieving the maximum flexibility and performance in mind. Being deeply integrated with other proprietary components, at a low level, it is closed source. Combine generally won’t be that hard to start to use for those who…

I OS

7 min read

Combine: Insight into Zip operator
Combine: Insight into Zip operator
I OS

7 min read


Feb 11, 2020

Swift: Developing a Shared Theme Manager

Table of Contents Introduction UIAppearance technology? What is a theme in the first place? Theme model Theme manager Notifying via Observer Swift-y Target-Action for flexibility Turning into a shared component Wrap up Introduction For today’s apps support for both light and dark appearances that users can toggle between has become the standard. While the…

I OS

19 min read

Shared Theme Manager
Shared Theme Manager
I OS

19 min read

Serhiy Butz

Serhiy Butz

18 Followers
Following
  • Khoa Pham

    Khoa Pham

  • Ilya Lobanov

    Ilya Lobanov

  • Dmytro Anokhin

    Dmytro Anokhin

  • Bo

    Bo

  • Jason Kelley

    Jason Kelley

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech