Files
ogs-site/en/news/2024-03_bus-iOS.md
Михаил Капелько 3ca703a83f Март-24
2024-03-10 23:12:51 +03:00

25 lines
997 B
Markdown

Title: Шина-iOS
Date: 2024-03-10 00:00
Category: News
Slug: bus-iOS
Lang: en
# The first Bus pattern implementation for iOS
I spent January and February making Bus pattern implementation in Swift for iOS.
The end result looks nice to me.
I have also done load testing. Turns out, the Bus is 92 times more expensive
than a function call. Nonetheless, this doesn't mean the Bus is bad. On the
contrary, the numbers highlight the Bus should be used in architectural
glue code where it can save up to 30% of code
This example demonstrates several states rendered through a single instance:
<iframe width="560" height="315" src="https://www.youtube.com/embed/xviaEbSd54o?si=7oZRU4Sjp3Hc5mX3" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
# March plans
I'm going to spend March to have a draft of the portable code in C++ for OpenWrt 12.09 (Atheros AR9331).