| Crates.io | backgammon-simd |
| lib.rs | backgammon-simd |
| version | 0.1.1 |
| created_at | 2023-10-01 01:02:51.182909+00 |
| updated_at | 2023-10-01 01:09:53.353424+00 |
| description | Type-safe valid move generator for backgammon using SIMD instructions. Useful for e.g. ML stuff. |
| homepage | https://github.com/valyagolev/backgammon-simd |
| repository | https://github.com/valyagolev/backgammon-simd |
| max_upload_size | |
| id | 988964 |
| size | 57,479 |
Type-safe valid move generator for backgammon using SIMD instructions. Useful for e.g. ML stuff.
Also has a (slow?) random board generator as a useful utility.
Doesn't handle cubes and matches.
Is it actually very fast? Probably not. Currently takes 7µs per board on my slow box (~140k/s). Let me know who to compete with. But it's nice to use and doesn't feel like a complete waste, performance-wise.
I only tested it using nightly, it wants #![feature(portable_simd)].
Probably a lot of room for improvement ;-)