• Home
  • Author
Swift & Small Pieces
ARTICLES ABOUT SWIFT , OBJECTIVE-C, ALGORITHMS and Cryptography BY THOMAS KAUSCH

Get in Contact

Menu Close
  • Home
  • Author

Code Blocks

Fast Queue implementation for SWIFT

January 26, 2022tomkausch Leave a Comment

The Swift Standard Library currently implements the three most essential general-purpose data structures: Array, Set and Dictionary. These are the right tool for a wide variety of use cases, and they are particularly well-suited for use as currency types. But sometimes, in order to… Continue Reading →

Algorithms, Code Blocks, iOS, Swift, Uncategorized

Producer-Consumer Problem with GCD and Sempaphors using Swift (Part 1)

January 2, 2022tomkausch Leave a Comment

The producer–consumer problem also known as the bounded-buffer problem is a classic example of a multi-process synchronisation problem. It is defined as follows: The Producer generates items in random time intervals and writes them into a bounded buffer. The Consumer consumes these items… Continue Reading →

Algorithms, Code Blocks, Concurrency, Swift concurrency, swift

Swift “Alphabet Cipher” implementation.

March 1, 2021tomkausch Leave a Comment

In 1868 Lewis Carroll published “The Alphabet-Cipher”. They say he did this in a kids magazine ?. While Carroll called his cipher “unbreakable” we know it is not. However it is still interesting to implement such a cipher as a… Continue Reading →

Code Blocks, Swift

Reversed String

September 6, 2020tomkausch Leave a Comment

Reversing a string in Swift is done by using the reversed() method on its characters, then creating a new string out of the result. Here’s the code: Reverse a String without using reversed built-in function in Swift can be done using Swift higher order… Continue Reading →

Algorithms, Code Blocks

Thomas Kausch

Recent Posts

  • Swift 6 & Foundation
  • How to Use VSCodium for Swift Development with Continue AI
  • Use MLX LM for large language models on Apple silicon with MLX
  • Download .ipa Files from iOS AppStore
  • What is an actor model?

Recent Comments

    Categories

    Algorithms Augmented Reality Code Blocks Concurrency Dev Tools Effective Objective-C Encoding & Decoding Date iOS Languages Objective-C Pyhthon Security Swift Uncategorized Virtual Reality XCode
    © 2025 Swift & Small Pieces. All rights reserved.
    Fashionista by aThemes