« first day (2426 days earlier)      last day (1283 days later) » 

06:13
Morning!
 
5 hours later…
11:10
0
Q: Rust concurrency (with std::thread) is much slower than a for loop

EpacnossI'm trying to learn rust, and I'm doing well, so I decided to make a version of Conway's game of Life. That all works well, and is on my master branch. I decided however, to try and make it multi-threaded - each cell would check the number of neighbours and give the new state on a seperate thread...

Game of life... by creating a thread for each cell and cloning the whole board for each cell... at every generations...
@DenysSéguret He :-)
@DenysSéguret I had this small challenge a while ago which required the grid to be dynamic, i.e. resize based on the bounds of the cells, possibly being infinite. I couldn't come up with an efficient solution to it at the time.
The Lapin game is infinite. This comes with special challenges, especially as each agent (rabbit, wolves, dragons, foxes, hunters, etc.) has its own objectives and computes paths (using A*)
The world has a special adaptive representation with some elements in a grid and some off the grid in a map because you can't have an infinitely growing grid
 
4 hours later…
15:52
Expecting a job offer very soon and I have all this weekend to stress about it. :-|
a real embarrassment of riches I guess
Is it a Rust job @trentcl? :-)
@Jason Not at the moment, but it may well be when I'm done with it
I expect some greenfield development and that I will have more influence than in my previous role, if I do accept it
@DenysSéguret Hum, I don't think I've heard of that game :-)
@trentcl That sounds exciting! Hoping it turns out great :-)
Thanks!
 
2 hours later…
18:23
@Jason You don't know the immensely famous Lapin ?
 
5 hours later…
23:06
@DenysSéguret Haha, I love this
> A game I built under direction of my kids

« first day (2426 days earlier)      last day (1283 days later) »