[HN Gopher] Show HN: Pledge - A Lightweight Reactive Framework f...
       ___________________________________________________________________
        
       Show HN: Pledge - A Lightweight Reactive Framework for Swift (No Rx
       Overhead)
        
       Author : gokulnair2001
       Score  : 21 points
       Date   : 2025-04-10 07:33 UTC (15 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | gokulnair2001 wrote:
       | If you are curious to know about pledge, then check the below
       | links
       | 
       | 1. Introduction: https://pledge.framer.website/home/introduction
       | 
       | 2. Performance Test:
       | https://pledge.framer.website/home/performance
       | 
       | 3. Docs: https://pledge-gokulnairs-
       | projects.vercel.app/documentation/...
       | 
       | 4. Mission: https://pledge.framer.website/home/mission
        
       | singpolyma3 wrote:
       | Serious question: isn't this kind of thing already built in to
       | swiftui?
        
         | gokulnair2001 wrote:
         | Pledge primarily targets UIKit, where reactive state management
         | isn't built-in and things are messy with the current
         | approaches.
        
       | T3uZr5Fg wrote:
       | Interesting macOS framework for app authentication. It's a
       | lightweight solution for password security, but I'd like to see
       | more about the encryption method behind the scenes. Biometric
       | auth is a nice touch. Could be great for indie devs wanting to
       | add simple protection layers.
        
       | p0wn wrote:
       | This is a good exercise but how is this better than Combine?
       | 
       | Also - I've seen ultra over complicated codebases made with FRP
       | in Swift. I have some PTSD from the kickstarter MVVM approach.
       | What a nightmare in practice. You have to be all in - everything
       | FRP or the tightly bound system crumbles.
       | 
       | I think SwiftUI's @Published property wrapper elegantly hid the
       | FRP, but even Apple is moving away from FRP with the macro based
       | Observable framework.
        
         | zffr wrote:
         | It could be nice for Swift on Linux. I don't think Combine is
         | available there
        
           | mayoff wrote:
           | You could check out OpenCombine or CombineX.
           | 
           | https://github.com/OpenCombine/OpenCombine
           | 
           | https://github.com/cx-org/CombineX
        
       | tarentel wrote:
       | This seems like the subject part of RxSwift/Combine without any
       | of the useful parts. For example, the networking example requires
       | an explicit property whereas the code I would use for something
       | like this would be to return an Observable directly. For most use
       | cases, you don't have to handle state separately. Basically, this
       | seems more complicated than using something like callbacks with
       | this only having some very edge case benefits to that.
        
       ___________________________________________________________________
       (page generated 2025-04-10 23:01 UTC)