Nested Arc RwLocks in Rust

Posted on April 18, 2022 in blog • Tagged with rust, prettypileofbones, devlog

In my attempt to create what amounts to an in-memory database in rust for a game project, I ran in to a topic for which I could find no explicit documentation.

"Can I nest RWLocks, read the inner lock out of the outer lock, and then read/write the inner …


Continue reading

Rust Implementation of Latin Square Generation

Posted on March 18, 2022 in blog • Tagged with rust, mathematics, prettypileofbones, devlog

While working on a multiplayer browser game using a rust websocket server, I ran to unexpected difficulty in trying to determine the turn order for a variable sized group of people.

The solution to my issue is a balanced latin square, which allows me to predetermine turn order for my …


Continue reading