Parallel Computing in Rust and C++ part 1

Parallelism in Rust usually means one of three things:

  1. Data-parallel CPU work (split work across cores)
  2. Task parallelism (run independent CPU tasks concurrently)
  3. Async concurrency (lots of I/O, not CPU parallel by default)

When making things go parallel, there are following things to consider. Safe parallel code comes from being …

Rust notes

crate and trait

Crate
  1. Definition

Rust Coding notes

BTreeMap

std::collections::BTreeMap

BTreeMap is a type from Rust’s standard …