#model #right #life #lattice #conway #ising #messages

bin+lib ising_toy

A generalizable Ising model in Rust. Will also do Conway's game of life right out of the box.

1 unstable release

0.2.0 Mar 29, 2024

#207 in Games

Download history 183/week @ 2024-03-28 13/week @ 2024-04-04

196 downloads per month

GPL-2.0-or-later

47KB
696 lines

I wanted to explore programming in Rust. As I am wont to do, I used the Ising Model of a lattice of interacting spins as my simulation test bed.

It ran fine single-threaded, but part of my learning plan was to get a taste of multithreading in Rust, so I made it multithreaded, with the commands as passed messages and data access via shared memory.

I don't claim any of this is done the right way--code or simulation algorithm--but I got a taste of Rust and had some fun! Enjoy.

The code is reasonably well commented and has some rust documentation, so I encourage you to look there.

Dependencies

~9.5MB
~112K SLoC