5 ms·
This isn't as bad as it looks. Think of it like an additional experimental scalac that is more ready to integrate into mainline scala than Dotty is. I'm fully
by saosebastiao 10y ago
This isn't as bad as it looks. Think of it like an additional experimental scalac that is more ready to integrate into mainline scala than Dotty is.
I'm fully on board with you...I think Scalaz as a library is a virus, and it's community is toxic, and it's desperate desire to turn Scala into Haskell ends up turning an awesome ML-inspired language into a vastly inferior religious (...ahem, pure) language.
But Cats and Shapeless aren't Scalaz. They have concepts that happen to exist in Haskell, but they aren't Haskell's concepts to own any more than C owns imperative programming. If anything, Mathematics owns the concepts and Haskell happened to borrow them to make a terrible purist concept slightly more practical. It turns out that when you need the concepts (and I have, on a couple of occasions), it makes Scala slightly more practical as well.
- runT1ME 10y agoYou happen to think the most popular scala library is a virus? We use it extensively at Verizon, and it exists just fine with 'impure' code, Akka code, or whatever else various teams decide to also pull in. Codebases that don't use Scalaz end up re-inventing it, usually in a more buggy way and at a waste of developer effort. Reinventing is fine on your own for a learning exercise and I certainly did it a few times, but in production code, just use Scalaz. Or sure, I suppose if you want to use a copy and pasted into a new repo version of Scalaz, go for Cats. I don't even know why Shapeless is brought into the conversation, it has a much more narrow use case and I almost never reach for it. I've also found the Scalaz community and chat room on IRC quite helpful, whereas I've had some really unpleasant interactions with Cats committers. To go around spreading FUD and promoting an alpha level library that's less than half as popular as Scalaz (according to Github stars) is just irresponsible.
- AzzieElbab 10y agoExactly. Practically every interesting scala lib (from scalatest to play to sbt) has internal implementation of functional patterns.
- kod 10y agoSorry, but there's no way scalaz is a more popular library than Spark.
- premium-concern 10y agoI'll be so happy when scalaz has finally gone the way of Lift.
- whateveracct 10y agoThe overlap between cats and scalaz is gigantic idk why you seem to think they are distinct? I'd bet that the overlap between the most commonly used parts of cats and scalaz is even larger. The main thing scalaz has that cats doesn't is scalaz.concurrent.Task, and there are multiple typelevel-endorsed alternatives to it being worked on as well (in monix and fs2). Task is wonderful btw. fwiw we use scalaz at work and haven't upgraded to cats because it isn't ready. cats just fixed a performance bug that would have destroyed us (Map union mappend was ridiculously unoptimized compared to scalaz's). We .foldMap(/* make a small Map*/) all the time and it's one of our favorite parts of scalaz. see https://github.com/typelevel/cats/issues/1290 https://github.com/typelevel/cats/issues/1290 for the bug.
- GFK_of_xmaspast 10y agoThe main thing that scalaz has that cats doesn't is Tony Morris.
- yummyfajitas 10y agoHow are Cats and Scalaz different? I haven't played with Cats lately, but last I looked it was just a reimplementation of Scalaz. Typelevel didn't even want to fork Scalaz to begin with. That was only their plan B, plan A was to take over the community with code of conduct/social justice shenanigans, and then expel people they didn't like. The fork is just what they came up with after dibblegate failed.
- premium-concern 10y agoThis desperate rewriting of history is one if the reasons why large parts of the Scala community are happy to get rid of these nutjobs. They need to move their lazy asses to Haskell and start fixing and implementing the tooling there instead of enjoying their free ride in Scala while constantly shitting on the language and its community.
- yummyfajitas 10y agoIt's not a rewriting of history. The dibblegate conflict occurred at the end of 2014. https://groups.google.com/forum/#!topic/scalaz/9X_putSGoCY https://groups.google.com/forum/#!topic/scalaz/9X_putSGoCY https://groups.google.com/forum/#!searchin/scalaz/code$20of$20conduct|sort:relevance/scalaz/EBP_7sfB2ks/DL7NnrwSPD4J https://groups.google.com/forum/#!searchin/scalaz/code$20of$... Calling Tony Morris a rapist was probably the highlight of the affair: https://twitter.com/shajra/status/544712807220908032 https://twitter.com/shajra/status/544712807220908032 Up until they realized they couldn't take over the community, Lars Hupel and Miles Sabin had no publicly stated plans to leave Scalaz. Cats initial commit is early 2015. https://github.com/typelevel/cats/commits/master?page=74 https://github.com/typelevel/cats/commits/master?page=74 I have no idea why everyone dislikes them so much. I use Scalaz, and it's pretty great. From what I've seen Cats is nearly the same thing, I just saw no reason to switch. In what way do you believe Cats is significantly different from Scalaz, beyond the fact that you apparently dislike the people involved? Incidentally, scalaz-streaming was also pretty nice - mathematically I liked it but it was simply not as performant as Akka streaming. I'd love to use it if it becomes fast.
- 10y ago