swift-async-algorithms VS reflex

Compare swift-async-algorithms vs reflex and see what are their differences.

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. (by reflex-frp)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
swift-async-algorithms reflex
6 17
2,776 1,054
3.4% -0.1%
6.7 4.4
12 days ago 11 days ago
Swift Haskell
Apache License 2.0 BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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

Posts with mentions or reviews of swift-async-algorithms. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-16.
  • Swift Concurrency: Sequential Async Task Architecture
    1 project | /r/swift | 31 May 2023
    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
    1 project | /r/swift | 5 Dec 2022
    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?
    1 project | /r/swift | 2 Oct 2022
    You might find the treasure trove known as Swift Async Algorithms and look at their test suite.
  • Functional Reactive Programming
    9 projects | news.ycombinator.com | 16 Aug 2022
    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!
    1 project | /r/iOSProgramming | 11 Aug 2022
    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
    7 projects | news.ycombinator.com | 25 May 2022

reflex

Posts with mentions or reviews of reflex. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-08.
  • On inheritance and why it's good Rust doesn't have it
    5 projects | /r/rust | 8 Dec 2023
    There's other people around here who would like to know your opinion about these GUI frameworks! I haven't written a GUI in Rust personally, but my favorite GUI framework is not at all OOP: https://reflex-frp.org/
  • Reflex – Web apps in pure Python
    9 projects | news.ycombinator.com | 2 Aug 2023
    Not to be confused with Reflex, allowing web apps in pure Haskell: https://reflex-frp.org/
  • Interactive animations
    11 projects | /r/haskell | 6 May 2023
    FRP solutions sound very attractive. But reflex seems to be stuck on the outdated GHCJS, and I haven't been able to get it to build. The newer JS output in GHC doesn't yet have DOM support. And even if I used one of those, figuring out how to interact with a LaTeX renderer might be tricky.
  • The Quest for the Ultimate GUI Framework
    4 projects | /r/programming | 22 Apr 2023
    I only have experience using Reflex, which I regard as the main contender for FRP UI libraries in the Haskell sphere. It's got a flashy website, but I think the documentation is a bit disorganized -- it took a long time for me to figure out how to get going with the library (you find some pieces of knowledge scattered here and there, if you look hard enough). My plan was to learn it well enough to onboard other people, but I don't think I could convince anyone who hasn't already decided that they're gonna make UIs in Haskell no matter the required effort.
  • Reflex FRP
    1 project | /r/cryptogeum | 23 Jan 2023
  • Simple GHC stack for a novice
    6 projects | /r/haskell | 17 Oct 2022
    Once someone has spent a bunch of time with Haskell and sees the value, they will find Nix if it makes sense. Maybe they'll want to play with https://reflex-frp.org, or they'll discover they want a better way to package 3rd-party dependencies, or they start using NixOS and want to nix all the things, etc. etc. Or, maybe they'll never find a use for it, and that's okay.
  • Building on iPad
    1 project | /r/haskell | 6 Oct 2022
    Reflex natively supports iOS, along with Android, desktop and web. I would recommend it for functional reactive programming in Haskell: https://reflex-frp.org
  • Functional Reactive Programming
    9 projects | news.ycombinator.com | 16 Aug 2022
  • HTML5 Ubuntu App with native component?
    1 project | /r/pinephone | 26 Mar 2022
    It's been awhile since I've tried to get into Ubuntu Touch/Linux mobile development in earnest. I'm currently working on an app using the reflex framework that I hope to eventually target Android, iOS, Desktop, and Linux Mobile.
  • Event driven programming in haskell
    1 project | /r/haskell | 22 Feb 2022
    If you're talking about the current Elm approach, I'm not sure. Otherwise, the paper I linked to notes some of the FRP libraries that existed at the time, some of which are still supported today (like reactive-banana), and otherwise I'd suggest looking at reflex, mentioned in the first post in this thread. I don't think it existed at the time the Elm paper came out.

What are some alternatives?

When comparing swift-async-algorithms and reflex you can also consider the following projects:

book - V2 of Real World OCaml

sodium - Sodium - Functional Reactive Programming (FRP) Library for multiple languages

DeepMenu

Elm - Compiler for Elm, a functional language for reliable webapps.

dream - Tidy, feature-complete Web framework

dunai - Classic FRP, Arrowized FRP, Reactive Programming, and Stream Programming, all via Monadic Stream Functions

RIBs - Uber's cross-platform mobile architecture framework.

reflex-dom - Web applications without callbacks or side-effects. Reflex-DOM brings the power of functional reactive programming (FRP) to the web. Build HTML and other Document Object Model (DOM) data with a pure functional interface.

learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača

purescript - A strongly-typed language that compiles to JavaScript

BreadBuddy - Recipe scheduler for iOS

rhine - Haskell Functional Reactive Programming framework with type-level clocks