Story Details

  • Show HN: Pledge – A Lightweight Reactive Framework for Swift (No Rx Overhead)

    Posted: 2025-04-10 07:33:54

    Pledge is a lightweight reactive programming framework for Swift designed to be simpler and more performant than RxSwift. It aims to provide a more accessible entry point to reactive programming by offering a reduced API surface, focusing on core functionalities like observables, operators, and subjects. Pledge avoids the overhead associated with RxSwift, leading to improved compile times and runtime performance, particularly beneficial for smaller projects or those where resource constraints are a concern. The framework embraces Swift's concurrency features, enabling seamless integration with async/await for modern Swift development. Its goal is to offer the benefits of reactive programming without the complexity and performance penalties often associated with larger frameworks.

    Summary of Comments ( 2 )
    https://news.ycombinator.com/item?id=43641576

    HN commenters generally expressed skepticism towards Pledge's performance claims, particularly regarding the "no Rx overhead" assertion. Several pointed out the difficulty of truly eliminating the overhead associated with reactive programming patterns and questioned whether a simpler approach using Combine, Swift's built-in reactive framework, wouldn't be preferable. Some questioned the need for another reactive framework in the Swift ecosystem given the existing mature options. A few users showed interest in the project, acknowledging the desire for a lighter-weight alternative to Combine, but emphasized the need for robust benchmarks and comparisons to substantiate performance claims. There was also discussion about the project's name and potential trademark issues with Adobe's Pledge image format.