dotty-cps-async VS Scalafix

Compare dotty-cps-async vs Scalafix and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
dotty-cps-async Scalafix
10 6
170 804
- 0.5%
9.4 9.1
13 days ago 3 days ago
Scala Scala
Apache License 2.0 BSD 3-clause "New" or "Revised" 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.

dotty-cps-async

Posts with mentions or reviews of dotty-cps-async. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-29.
  • Help a Kotlin convert back into Scala world
    7 projects | /r/scala | 29 Jan 2023
    Now in scala we have direct mode transformers: dotty-cps-async [https://github.com/rssh/dotty-cps-async] with cps-async-connect [https://github.com/rssh/cps-async-connect ] supports all well-knowm monad stacks, for ZIO also exists ZIO-direct [https://github.com/zio/zio-direct ] , for IO - cats-effect-cps [https://github.com/typelevel/cats-effect-cps ], for kyo [https://github.com/fwbrasil/kyo ] - kyo-direct.
  • dotty-cps-async 0.9.12 is out
    3 projects | /r/scala | 8 Dec 2022
    dotty-cps-async: https://github.com/rssh/dotty-cps-async
  • The case against Effect Systems (e.g., the IO data type)
    2 projects | /r/scala | 18 Oct 2022
    Hmm, you can write direct-style code with monad: https://github.com/rssh/dotty-cps-async allows this, exists support libraries exist for near all well-known effect systems: https://github.com/rssh/cps-async-connect, so you can use async/await with IO/ZIO the same as with Future. Although in IO style, any operation that mutates state is async, it's hard to write code where you should place `await` near each line. And it looks like automatic coloring is a too radical change of concepts for most functional programmers. The option to allow using <- in the direct style may be more popular, but this requires changes to the scala core. Another question - are we need effective systems to be present in each program in industrial-style development? Here I agree that mostly no.
  • dotty-cps-async 0.9.11 is out. (bugfixes and experimental loom support)
    1 project | /r/scala | 18 Sep 2022
  • dotty-cps-async 0.9.9
    1 project | /r/scala | 5 Jun 2022
  • New Scala 3 Codebases
    6 projects | /r/scala | 17 Feb 2022
  • Also dotty-cps-async 0.9.8 with scala-native support
    1 project | /r/scala | 16 Feb 2022
  • dotty-cps-async 0.9.8 with scala-native support
    1 project | /r/scala | 16 Feb 2022
  • Dotty-cps-async 0.9.7 is released.
    4 projects | /r/scala | 26 Jan 2022
    This is a generic async/await transformer for scala3 which allows using effectful monads in the direct style. URL: (https://github.com/rssh/dotty-cps-async )
  • Language-assisted Flattening
    2 projects | /r/ProgrammingLanguages | 14 Jul 2021
    dotty-cps-async [rssh/dotty-cps-async ] with automatic coloring do something very similar in two steps. Automatic coloring defines implicit conversion F[A] => A as x => await(x)(m). The compiler inserts those awaits inside async blocks and then eliminates them later via cps-transform. Exists some limitations which we need to add for effect monads like IO (we don't want run effect twice and don't want to screw semantics of effects by extra memoizing). So, if your language has a possibility to implement effect monads, then you need a possibility to restrict using Flattenable.

Scalafix

Posts with mentions or reviews of Scalafix. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-11.
  • Security static analysis tooling for Scala?
    3 projects | /r/scala | 11 Aug 2022
    I also recommend using Scalafix. It's a tool which can lint your codebase, checking for potentially problematic things, like
  • Which static analysis tool do you use for Scala?
    8 projects | /r/scala | 12 Jan 2022
    Scalafix
  • Dragging Haskell Kicking and Screaming into the Century of the Fruitbat :: Reasonably Polymorphic
    3 projects | /r/haskell | 13 Nov 2021
    scala-fix seems relevant for the /= removal problem.
  • Newspeak and Domain Modeling
    4 projects | news.ycombinator.com | 29 Jun 2021
    or `NonUnitStatements` without explicit annotation.

    This effectively locks you into writing pure code (you can extend the linter to cover other things like not using `Future` or not using Java libs outside of `MonadError` from cats[4]). The linters operate on typed ASTs at compile time, and have plugins for the most popular scala build tools. Coupled with `-XFatalWarnings', you can guarantee that nothing unexpected happens unless you explicitly pop the escape hatch, for the most part.

    You can still bring in external libraries that haven't been compiled with these safties in place, so you aren't completely safe, but if you use ZIO[5]/Typelevel[6] libraries you can be reasonably assured of referentially transparent code in practice.

    There are three schools of thought, roughly, in the scala community towards the depth of using the type system and linters to provide guarantees and capabilities, currently:

    1) Don't attempt to do this, it makes the barrier to entry to high for Scala juniors. I don't understand this argument - you want to allow runtime footguns you could easily prevent at compile time because the verifiable techniques take time to learn? Why did you even choose to use a typesafe language and pay the compilation time penalty that comes with it?

    2) Abstract everything to the smallest possible dependency interface, including effects (code to an effect runtime, F[_] that implements the methods your code needs to run - if you handle errors, F implements MonadError, if you output do concurrent things, F implements Concurrent, etc.) and you extend the effect with your own services using tagless final or free.

    3) You still use effect wrappers, but you bind the whole project always to use a concrete effect type, avoiding event abstraction, thus making it easier to code, and limiting footguns to a very particular subset (mainly threadpool providers and unsafeRun or equivalent being called eagerly in the internals of applications).

    My opinion is that smallest interface with effect guarantees (#2) is best for very large, long maintenance window apps where thechoice of effect runtime might change(app), or is out of the devs' control (lib); and #3 is best for small apps.

    TL/DR; You can go a really, really long way to guaranteeing effects don't run in user code in scala. Not all the way like Haskell, but far enough that it's painful to code without conforming to referential transparency.

    1. https://github.com/scalacenter/scalafix

    2. https://github.com/scalaz/scalazzi

    3. http://www.wartremover.org/

    4. https://typelevel.org/cats/api/cats/MonadError.html

    5. https://zio.dev/

    6. https://typelevel.org/

  • Scala noob question. Parameter of type Option. Why does scala compiler allows passing null as an argument?
    1 project | /r/scala | 10 May 2021
    I actually still recommend using WartRemover, at least until there's an equivalent ScalaFix ruleset that's as effective.
  • Teaching exercises with custom error messages
    1 project | /r/scala | 2 Mar 2021
    Probably linting rules defined in Scalafix. See https://github.com/scalacenter/scalafix/blob/master/scalafix-rules/src/main/scala/scalafix/internal/rule/DisableSyntax.scala#L11 for an example.

What are some alternatives?

When comparing dotty-cps-async and Scalafix you can also consider the following projects:

scala3-example-project - An example sbt project that compiles using Dotty

scalafmt - This repo is now a fork of --->

cps-async-connect

Scalastyle - scalastyle

scala-3-migration-guide - The Scala 3 migration guide for everyone.

Wartremover - Flexible Scala code linting tool

Rx.NET - The Reactive Extensions for .NET

Scapegoat - Scala compiler plugin for static code analysis

scala-gopher - Implementation of CSP constructions (Communication Sequence Process, i.e. go-like channels) in scala

libretto - Declarative concurrency and stream processing library for Scala

sonar-scala - A free and open-source SonarQube plugin for static code analysis of Scala projects.