swift-async-algorithms
learn-you-a-haskell
Our great sponsors
swift-async-algorithms | learn-you-a-haskell | |
---|---|---|
6 | 77 | |
2,776 | 294 | |
3.4% | - | |
6.7 | 0.0 | |
12 days ago | over 1 year ago | |
Swift | Makefile | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-async-algorithms
-
Swift Concurrency: Sequential Async Task Architecture
Last weekend, I started reading up on Swift Concurrency through the use of async-await, actors, etc... I really liked what I read and thought of converting my current code to use these new Swift Concurrency tools and ditch the GCD. I used continuation to convert all methods with completion handlers from the Device class to async throw methods and turned Device into an actor in order to protect some members from race conditions. Once more, I am faced with the issue of calling the async methods of the Device actor one by one (waiting for each ones completion before starting the next one). I spent a lot of time thinking on how to do this and came across a number of useful references such as this one and this one. I tried to think of ways of implementing such a channel in my controller class, to guarantee sequential execution of different tasks that require the underlying library, but I'm facing a few issues with this approach:
-
Let's do a quick poll: Async/Await vs Combine in your codebase going forward
AsyncStreams also now has the associated AsyncAlgorithms library https://github.com/apple/swift-async-algorithms which covers a lot of the Combine features (debounce, merge zip etc.)
-
XCTest: How do you test async fuctnions?
You might find the treasure trove known as Swift Async Algorithms and look at their test suite.
-
Functional Reactive Programming
https://github.com/apple/swift-async-algorithms
Requires Xcode 14, which is still in beta and cannot push to the App Store.
Also, Apple fucked their back port badly. It’s supposedly fixed now, but if you built an app that used async/await anywhere in Xcode 13.X and a user installed running iOS 12/13/up to 14.5 they’d crash on launch.
So I personally wouldn’t trust it, and instead just push to raise your iOS minimum. I’ve had no problems requiring iOS15 in my projects over 1M installs
-
Anyone know how to create a collection view using RxSwift? I can't seem to find a tutorial on how to create a basic collection view in RxSwift, was able to find ones for Table View though. Appreciate your help!
Asynchronicity is only one aspect of Functional Reactive Programming. You’re comparing single values vs. multiple values. AsyncStream is a better analog, but I’m pretty sure you still need to bring in swift-async-algorithms to have an apples-to-apples comparison.
- SwiftUI in 2022
learn-you-a-haskell
-
Revisiting Haskell after 10 years
The LYAH is by far my favorite book for beginners, however, it lacks exercises for you to practice, but you can still move along typing and playing with the examples shown, and it’s free to read online. It’s outdated but most of the code may still be valid with little to no changes.
- [2023 Day 09] How today felt
-
Should I Haskell or OCaml?
Learn You a Haskell For Great Good! is also a really good resource:
https://learnyouahaskell.com/
-
How late is too late to change tech stacks?
If you've never done functional, Learn You Some Erlang For Great Good was a very fun read, and I'll always love Learn You a Haskell for Great Good for showing me everything imperative languages kinda gloss over magically, as well as why I should never take a job working in Haskell!
-
So Hows the Hackathon Going?
you start that way, but don't do http://learnyouahaskell.com really?
-
I want to learn fn programming
Learn You a Haskell for Great Good!
- help i just discovered haskell 38 hours ago and i think i love it
-
Haskell book after Get Programming with Haskell?
I enjoyed http://learnyouahaskell.com/ which is available in print and digital. Fun and lighthearted while still teaching reasonable depth. YMMV.
-
Why I decided to learn (and teach) Clojure
Elm is a statically typed language inspired by Haskell. The natural step would be to use Elm on the frontend and Haskell on the backend. And that's what I tried to do. I read with some difficulty the Learn You a Haskell for Great Good! book (available for free here) and learned a lot of cool stuff. But creating a complete backend using Haskell proved to be more than I could chew. So I decided to look for alternatives...
-
I’m trying coding
Here y’go!
What are some alternatives?
book - V2 of Real World OCaml
learn4haskell - 👩🏫 👨🏫 Learn Haskell basics in 4 pull requests
DeepMenu
plutus-pioneer-program - This repository hosts the lectures of the Plutus Pioneers Program. This program is a training course that the IOG Education Team provides to recruit and train software developers in Plutus, the native smart contract language for the Cardano ecosystem.
dream - Tidy, feature-complete Web framework
learn-you-a-haskell-notebook - Jupyter adaptation of Learn You a Haskell for Great Good!
RIBs - Uber's cross-platform mobile architecture framework.
coq - Coq is a formal proof management system. It provides a formal language to write mathematical definitions, executable algorithms and theorems together with an environment for semi-interactive development of machine-checked proofs.
reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.
algebra-driven-design - Source material for Algebra-Driven Design
BreadBuddy - Recipe scheduler for iOS
integrant - Micro-framework for data-driven architecture