Simulacrum
First class syntax support for type classes in Scala (by typelevel)
ScalaPB
Protocol buffer compiler for Scala. (by scalapb)
Our great sponsors
Simulacrum | ScalaPB | |
---|---|---|
1 | 3 | |
936 | 1,280 | |
-0.4% | 0.8% | |
3.7 | 9.0 | |
22 days ago | 8 days ago | |
Scala | Scala | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
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.
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.
Simulacrum
Posts with mentions or reviews of Simulacrum.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-10.
-
Friction-less scala - Tell us what is causing friction in your day-to-day life with Scala
The Cats ecosystem offers mature named abstractions providing algebraic laws virtually identical to those offered by Haskell and PureScript and that have stood the test of time, at the cost of relying on a "design pattern" approach to implementation you have to squint a bit to see ("typeclasses" based on higher-kinded types and implicit arguments) and that sometimes doesn't play nicely with Scala's colored local type inference. The selling point of this, coupled with parametricity ("tagless-final style"), is the ability to reason algebraically about your code.
ScalaPB
Posts with mentions or reviews of ScalaPB.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-10.
-
Friction-less scala - Tell us what is causing friction in your day-to-day life with Scala
I've had great experience with ScalaPB and even better with fs2-grpc (which builds on top of ScalaPB).
-
Working with polymorphic data models in a REST API
One way I've solved this is to use Protobuf contracts to serialize json with ScalaPB. They have a way implementing oneof that keeps each object individual and separate. Even if you don't decide to use PB, you can take some inspiration from the implementation.
-
Scala 3.0 serialization
You could try out protocol buffers. Not sure how stable it is, but I noticed they have a Scala3 version of their runtime library. (Disclaimer: I have not tried it out myself)
What are some alternatives?
When comparing Simulacrum and ScalaPB you can also consider the following projects:
Ammonite-Ops - Scala Scripting
scodec - Scala combinator library for working with binary data
scribe - The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.
ScalaBuff - the scala protocol buffers (protobuf) compiler
Quicklens - Modify deeply nested case class fields
µPickle - uPickle: a simple, fast, dependency-free JSON & Binary (MessagePack) serialization library for Scala
Freestyle - A cohesive & pragmatic framework of FP centric Scala libraries
Pickling
Shapeless - Generic programming for Scala
Scrooge - A Thrift parser/generator
LArray - Large off-heap arrays and mmap files for Scala and Java
Avro4s - Avro schema generation and serialization / deserialization for Scala