fantasy-laws VS static-land

Compare fantasy-laws vs static-land and see what are their differences.

fantasy-laws

Property-based tests for FL-compatible ADTs (by fantasyland)

static-land

Specification for common algebraic structures in JavaScript based on Fantasy Land (by fantasyland)
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
fantasy-laws static-land
1 3
33 766
- 0.4%
3.9 0.0
over 2 years ago over 4 years ago
JavaScript JavaScript
MIT License MIT 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.

fantasy-laws

Posts with mentions or reviews of fantasy-laws. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-13.

static-land

Posts with mentions or reviews of static-land. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-13.
  • Should I Move From PHP to Node/Express?
    13 projects | /r/node | 13 Oct 2022
    There are respective fantasy land and static land specs, with the law conformance checks.
  • Expanding Single Page Apps into multiple Browser Windows — Part 2
    1 project | /r/javascript | 7 May 2021
    A big poster child of functional style in JS-land is actually implemented on top of textbook OOP (Array.prototype.map/filter). For anyone interested in the gore details of functional polymorphism, look no further than the comparison between fantasy land and static land. Basically, it boils down to a simple fact: functional algebra constructs can be implemented in terms of other functional algebra constructs, but when push comes to shove, the most efficient Array map implementation is not going to be the same thing as a map implementation for any other data structure (Stream, Optional, whatever) and you can't have a magical compiler optimize under the hood for you in Javascript, because well, Javascript. So functional polymorphism has to be shoved somewhere, and as it turns out OOP happens to be a good complement for that conundrum.
  • Higher Kinded Deno
    4 projects | dev.to | 21 Oct 2020
    My goal with hkts is two-fold. First, to learn more about functional programming by implementing some common type classes (specifically, the ones defined in the static-land spec). Second, to put together a pragmatic, easy to read/understand library of tools based on fp-ts, io-ts, and monocle-ts that are deno native.

What are some alternatives?

When comparing fantasy-laws and static-land you can also consider the following projects:

RxPHP - Reactive extensions for PHP

hkts - Functional programming tools: option, either, task, state, optics, etc.

fp-ts - Functional programming in TypeScript

Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

mostly-adequate-guide - Mostly adequate guide to FP (in javascript)

MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.

cats-effect - The pure asynchronous runtime for Scala

FS2 - Compositional, streaming I/O library for Scala

lodash - A modern JavaScript utility library delivering modularity, performance, & extras.

Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.