2024-03-21 18:09:34 Ran across a video of a guy doing some Enigma cracking. He used a neat trick - he concatenated three copies of his "alphabet mappings" and worked off of the middle copy, which prevented him from having to do any modulo operations. 2024-03-21 18:10:41 see also: slide rules having completely duplicate scales 2024-03-21 18:11:17 and by "duplicate" I mean end-to-end, in case it wasn't clear 2024-03-21 18:11:23 slide rules have fewer problems with cache coherency issues 2024-03-21 18:11:49 :-) 2024-03-21 18:13:16 I improved mine a little. On the first cut I was computing the reverse maps every time I needed one. I modified it a bit to memoize those. Of course, they could be straight up "pre-computed," but I didn't bother with that - computing them once each time I run the thing doesn't seem too bad to me.