swift-async-algorithms
ihp
swift-async-algorithms | ihp | |
---|---|---|
6 | 124 | |
2,799 | 4,233 | |
1.7% | 0.3% | |
6.6 | 9.5 | |
21 days ago | 4 days ago | |
Swift | Haskell | |
Apache License 2.0 | MIT License |
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
ihp
- IHP – The Haskell Framework for Non-Haskellers
-
Ask HN: Why are all of the best back end web frameworks dynamically typed?
I found IHP straightforward:
https://ihp.digitallyinduced.com/
despite not remembering much haskell!
This assumes you can get past nix for the install.
I find IHP well-designed. I just wish the licensing scheme were more transparent.
- IHP v1.1.0 has been released 🎉
- IHP Haskell Framework v1.1.0 has been released
-
Servant or framework
You can find the docs at https://ihp.digitallyinduced.com/ and some getting started videos at https://www.youtube.com/watch?v=PLl9Sjq6Nzc&list=PLenFm8BWuKlS0IaE31DmKB_PbkMLmwWmG
-
Haskell Optimization Handbook
In case this got you interested in Haskell, and you want a good way to start your Haskell journey (and have something to apply the optimization handbook to), check out IHP. It's the Rails/Laravel of the Haskell world. You can start here https://ihp.digitallyinduced.com/Guide/index.html or check it out on GitHub here https://github.com/digitallyinduced/ihp
-
Show HN: Algora.io – Open-source development bounties
At IHP we've been using Algora for a while now and it works really great. Here's e.g. one PR that was merged last week with a bounty attached https://github.com/digitallyinduced/ihp/issues/1621 Everything was set up in less than 15 minutes and ioannis and zafer have been super helpful with any questions we had.
In general I think this is a good direction and an interesting take on the open question around sustainable open source. Congrats on the launch and keep up the great work! :)
- Por que Elm Ă© uma linguagem tĂŁo deliciosa?
-
Any open source projects to contribute to for beginners
You could contribute to IHP! We have some great docs to get started here https://github.com/digitallyinduced/ihp/blob/master/CONTRIBUTING.md And we have some low hanging fruits in GitHub issues for you to get started with, e.g. https://github.com/digitallyinduced/ihp/issues/1601 (also there's always lots of activity in the IHP Slack, in case you have any questions/need help)
- IHP Haskell Framework v1.0.1 has been released
What are some alternatives?
DeepMenu
miso - :ramen: A tasty Haskell front-end framework
book - V2 of Real World OCaml
Ruby on Rails - Ruby on Rails
dream - Tidy, feature-complete Web framework
haskell-ux - Let's make Haskells error messages helpful :)
RIBs - Uber's cross-platform mobile architecture framework.
Phoenix - Peace of mind from prototype to production
learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača
ghc-proposals - Proposed compiler and language changes for GHC and GHC/Haskell
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.
purescript-flame - Fast & simple framework for building web applications