40x Faster! We rewrote our project with Rust!

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • Sonar - Write Clean Python Code. Always.
  • SaaSHub - Software Alternatives and Reviews
  • Numba

    NumPy aware dynamic Python compiler using LLVM

    Our project is dominated by I/O, and the bits that are CPU bound can be optimized using tools like numba (we do some serious math in parts of the code base). We actually did a performance comparison between Rust and Python for computation, and we ended up having comparable performance. Rust was 2-3x faster, but when we turned on parallelization, Python ended up being 2-3x faster than single-threaded Rust, and the effort involved was almost zero (didn't test parallel Rust).

  • ZIO

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

    The one advantage Rust has over Scala is that it detects data races at compile time, and that's a big time saver if you use low level thread synchronization. However, if you write pure FP code with ZIO or Cats Effect that's basically a non-issue anyway.

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • cats-effect

    The pure asynchronous runtime for Scala

    The one advantage Rust has over Scala is that it detects data races at compile time, and that's a big time saver if you use low level thread synchronization. However, if you write pure FP code with ZIO or Cats Effect that's basically a non-issue anyway.

  • pyright

    Static Type Checker for Python

    I use pyright as my LSP in Neovim for Python code, so I just use mypy for static type checking within CI/CD and GitHub actions.

  • mypy

    Optional static typing for Python

    I use pyright as my LSP in Neovim for Python code, so I just use mypy for static type checking within CI/CD and GitHub actions.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts