DPRS¶
Directed percolation-type models in Rust¶
In this project, we implement directed percolation (DP) and similar lattice models in Rust. The Rust code is accessed via a Python wrapper to make experimentation as convenient as possible. Jupyter notebooks are used to implement the Python-wrapped simulations.

We have two motivations for adopting Rust: one is to ensure maximum performance; another is to achieve this in a memory-safe and bug-free fashion (which is not easy to do in C or C++).

Fast run times are achieved through parallelization using the Rayon crate.
We anticipate boosting performance further with GPU-compute using wgpu.
See here for some demos.
See here for some rough "how-to" notes on wrapping Rust with Python.