generator VS ppipe

Compare generator vs ppipe and see what are their differences.

ppipe

pipes values through functions, an alternative to using the proposed pipe operator ( |> ) for ES (by egeozcan)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
generator ppipe
5 1
4 195
- -
7.7 0.0
6 months ago 7 months ago
TypeScript JavaScript
MIT License ISC 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.

generator

Posts with mentions or reviews of generator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-04.
  • Ramda: A practical functional library for JavaScript programmers
    7 projects | news.ycombinator.com | 4 Aug 2023
    I find straight forward, dedicated combinators much more readable and practical to use ie. for iterables (context where it makes a lot of sense) [0] example [1], runtime assertions (through refutations, which are much faster than combinators over assertions) [2], parser combinators for smallish grammars [3] etc.

    In many cases vanilla/imperative js is more readable and terse, no need to bring functional fanaticism everywhere, just in places where it gives true benefits and in form that can be understood by peers.

    Functional code can be beautiful and can also be unreadable/undebugable. Same with imperative code. It's great in js/ts you can pick approach where the problem is expressed more naturally and mix it at will.

    [0] https://github.com/preludejs/generator

    [1] https://observablehq.com/@mirek/project-euler

    [2] https://github.com/preludejs/refute

    [3] https://github.com/preludejs/parser

  • Why Would Anyone Need JavaScript Generator Functions?
    19 projects | news.ycombinator.com | 7 Nov 2022
  • A pipe operator for JavaScript: introduction and use cases
    4 projects | news.ycombinator.com | 29 Jan 2022
    You can type it, take a look at pipe and pipe1 in [0].

    [0] https://github.com/preludejs/generator/tree/master/src

  • Parser Combinators in Haskell
    10 projects | news.ycombinator.com | 22 Dec 2021
  • Loopless Code
    1 project | news.ycombinator.com | 26 Nov 2021
    Loops are great if your programming languages supports iterables/iterators/generators (also async generators) like in js/ts for example.

    Especially generator-to-generator combinators ie. [0] give you terse, transducer expressiveness over computation on finite/infinite streams, arrays, etc. (all iterables). It's easy to compose them, jump into for loops if needed for arbitrary yielding (ie. yielding multiple items sometimes, skipping some, halting etc). `continue`, `break`, nesting, yield, yield from, normal code in for loops is very intuitive and terse creating pleasant, understandable code.

    [0] https://github.com/preludejs/generator

ppipe

Posts with mentions or reviews of ppipe. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-29.
  • A pipe operator for JavaScript: introduction and use cases
    4 projects | news.ycombinator.com | 29 Jan 2022
    I've been experimenting with this via a babel plugin for a while.

    The difference in ergonomics is huge, and it's readable too!

    At first, I was so excited to try it, I wanted to "simulate it" via some library I developed: https://github.com/egeozcan/ppipe Then I realized it was super hard to add typings for it (I use Typescript nearly exclusively these days).

    Anyway, I can't wait this to be adopted by Typescript!

What are some alternatives?

When comparing generator and ppipe you can also consider the following projects:

angstrom - Parser combinators built for speed and memory efficiency

DoubleStar - A personalized/enhanced re-creation of the Darkhotel "Double Star" APT exploit chain with a focus on Windows 8.1 and mixed with some of my own techniques

assert-combinators - Functional assertion combinators.

Fluture - 🦋 Fantasy Land compliant (monadic) alternative to Promises

notion-sdk-js - Official Notion JavaScript Client

ethereum-lists - A repository for maintaining lists of things like malicious URLs, fake token addresses, and so forth. We love lists.

IxJS - The Interactive Extensions for JavaScript

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

async-generator - Async generator module.

emittery - Simple and modern async event emitter

trealla-js - Trealla Prolog for the web

p-map - Map over promises concurrently