frameless VS cats

Compare frameless vs cats and see what are their differences.

cats

Lightweight, modular, and extensible library for functional programming. (by typelevel)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
frameless cats
9 43
869 5,177
-0.1% 0.9%
8.1 8.8
9 days ago 1 day ago
Scala Scala
Apache License 2.0 GNU General Public License v3.0 or later
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.

frameless

Posts with mentions or reviews of frameless. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-22.
  • for comprehension and some questions
    3 projects | /r/scala | 22 Jan 2023
    I don't see how Spark is any "less controversial" when the Spark Delay instance for cats-effect takes an entire SparkSession implicitly.
  • Why use Spark at all?
    2 projects | /r/dataengineering | 19 Oct 2022
    To add to this I lately have used Spark with frameless for compile time safety and it's an interesting library that works well with Spark.
  • Guide for Apache Spark Setup, Job Optimisation, AWS EMR Cluster Configuration, S3, YARN and HDFS Optimisation
    1 project | /r/apachespark | 10 Apr 2021
    For type safety with dataframes, techniques like https://github.com/typelevel/frameless can be used.
  • Spark scala v/s pyspark
    1 project | /r/dataengineering | 24 Feb 2021
    The preferred way to write Spark programs is to use DataFrame API which is untyped and is essentially the same in Scala, C# and Python. It's a DSL that's used to describe AST of the computation and the end result is the same regardless of language. There's a library called Frameless (https://github.com/typelevel/frameless) that implements typed DataFrame API but it is not in wide use, it looked dead for quite some time (though now development seems to continue) and didn't play nice with IntelliJ IDEA last time I checked. Performance-wise there's no difference most of the time (since all the program does is create an AST) except when using UDFs - Python UDFs are significantly slower and you can't write "proper" UDFs in Python - ones that generate Java code.
  • Does anyone here (intentionally) use Scala without an effects library such as Cats or ZIO? Or without going "full Haskell"?
    5 projects | /r/scala | 8 Feb 2021
    Frameless is a nice way to grab some type safety back from Spark, and features opt-in Cats integration.
  • Making the Spark DataFrame composition type safe(r)
    4 projects | /r/apachespark | 4 Feb 2021
    Valid point! Have you seen the withColumnTupled API? It returns a typed tuple instead. This seems to satisfy your use case - the dataset preserves its type and doesn't require a new case class. This is kind of what you're suggesting but without case class generation. Though not sure whether attribute labels (names) are preserved in this case. It's also unclear whether this is good enough for wide tables.
  • Recommendations for specializing in Spark (Scala)
    3 projects | /r/scala | 22 Dec 2020
    I recommend using Frameless, which includes a Cats module. In general, I would encourage you to master “purely” functional programming first, because it’s foundational. Spark is a very specific technology, and probably not even the best in that class today—I would be very careful about trying to build a career around it.

cats

Posts with mentions or reviews of cats. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-05.
  • Beware of teammates who refactor code based on personal taste without proper documentation or completeness. Sounds familiar.
    2 projects | /r/programming | 5 Jul 2023
    A functional programming library: https://typelevel.org/cats/
  • Is Scala worth learning in 2023?
    5 projects | /r/scala | 29 Jun 2023
    Learn something that pays the bill first - nowadays it's Golang/Rust react/typescript. Then you can try some pure fp libs like fp-ts and fp-core.rs, and look through existing scala cats docs. If you'll feel bad about it - that's totally fine and expectable, fp takes a paradigm shift and not that many dev able to shift their brains way of thought due to basic psychological rigidity) (inability to change habits and to modify concepts/attitudes once developed). And that's purely a staffing and management issue - folks hired randoms out of the blue, and called 'em a team.
  • Going into year 2 of Software Development Foundation Degree, have a particular liking for OOP and SQL, any tips, info or pointers on where to go from there?
    2 projects | /r/cscareerquestions | 29 May 2023
    I'm sorry, but have you ever done functional programming for a real company, like in a functional programming language like Haskell, Scala, or F#? Have you ever used Scala cats or scalaz? Have you ever learned category theory and how to apply its abstractions in software? Listen u/judethedude2106 this person hasn't gone as far down the functional programming rabbit hole as I have. Beyond learning the basics like the difference between pure and impure functions, what are closures, what higher order functions are and the most common ones like .map, .filter, and .flatmap, the immutable collections like immutable linked lists and trees, and what a Monad is and common monads like those used for futures/promises, async programming, and Option (Some or None, which is used instead of null checking), the more advanced functional programming stuff like category theory based abstractions are totally useless for real jobs and is just a giant time suck. Don't waste years on functional programming, spend at most a few months on it and no more.
  • rsmonad: Monads in stable Rust (+ Applicative, Alternative, Functor, Monoid, ...)
    2 projects | /r/rust | 24 May 2023
    As a former functional programmer in Scala, please do not go deep into the Category Theory programming. Scala has libraries like this one called "Cats", a cute shortened name for "Category Theory", but code that makes heavy use of these constructs is not understandable to other programmers. Other than using Monads as a design pattern for things like Options (which can be "Some" or "None"), Futures or Promises (which is used for asynchronous programming), and a few other things, please do not make heavy use of category theory constructs in real programming projects that will have other developers working on them. It is a rabbit hole that may be fun but is not super practical. Sure, write pure functions without side effects, but do not use the words "Bimonad", "Invariant Monoidal", and "Semigroup" in your code. The most common, practical application/use of functional programming is basic things like closures, .map, .filter, maybe chaining maps with like a .flatmap or whatever your programming language uses instead of chain or flatmap, and SQL that uses keywords like WHERE which can be represented in code by using a call to .filter. Like the place where these constructs are used most is in data processing like with SQL, ETL (Extract Transform, Load) jobs, Java's MapReduce on Hadoop, Scala's Apache Spark, and other data processing type things. Haskell is not a popular programming language in real world projects for a number of reasons and one of them is the heavy and sometimes impractical use of Category Theory.
  • Tmux, NeoVim, etc. to write pure Kotlin code?
    2 projects | /r/Kotlin | 30 Apr 2023
    At a previous job of mine we actually had an entirely pure Scala ecosystem using cats which instead uses typeclasses, referential transparency, and other FP concepts as the foundations for how to code. So a lot of flexibility to the language.
  • [E => *] Type
    2 projects | /r/scala | 9 Mar 2023
    Thanks! It's used heavily here
  • for comprehension and some questions
    3 projects | /r/scala | 22 Jan 2023
  • Ask HN: How has functional programming influenced your thinking?
    4 projects | news.ycombinator.com | 16 Jan 2023
    I did work in Scala for a few years. We employed Cats[1], and even a bit of Matryoshka[2] though most of the work I do today is in Python.

    Nowadays I think about computational requirements in terms of relations among behavioral dependencies. Like, "I want to perform operation O on input A and return a B. To do this, I'll need a way to a -> b and a way to b -> b -> b." I often pass these behavioral dependencies in as arguments and it tends to make the inner core of my programs pretty abstract and built up as layers of specificity.

    Zooming out nearly all the way, it makes me feel tethered in a qualitatively unique way to certain deep truths of the universe. In a Platonic sense, invoking certain ideas like a monad make me feel like I'm approaching the divine or at least one instantiation of a timeless universal that operates outside of material existence.

    I'd imagine some mathematicians might see the universe in a similar way - one where immortal relations between ontological forms exist beyond time and space and at the same time can be threaded through the material world by intellectual observation and when those two meet a beautiful collision occurs.

    1. https://typelevel.org/cats/

    2. https://github.com/precog/matryoshka

  • yet another post about type classes in Scala
    2 projects | dev.to | 2 Jan 2023
    Our second type class example attempted to illustrate one last perk: type safety at compile time. It did so with a simplified example of the cats core library for type safety equality comparison between objects. If you're not familiar with cats, go ahead and give it go.
  • What are the design principles of Cargo?
    1 project | /r/rust | 1 Dec 2022

What are some alternatives?

When comparing frameless and cats you can also consider the following projects:

Lantern

Scalaz - Principled Functional Programming in Scala

spark-excel - A Spark plugin for reading and writing Excel files

Shapeless - Generic programming for Scala

deequ - Deequ is a library built on top of Apache Spark for defining "unit tests for data", which measure data quality in large datasets.

ZIO - ZIO — A type-safe, composable library for async and concurrent programming in Scala

azure-kusto-spark - Apache Spark Connector for Azure Kusto

ScalaTest - A testing tool for Scala and Java developers

bebe - Filling in the Spark function gaps across APIs

Monocle - Optics library for Scala

cats-effect - The pure asynchronous runtime for Scala

Scala Async - An asynchronous programming facility for Scala