Hey thank you for taking a look at this!
I owe you an apology. I read the article a couple days ago, then came back to
it last night just before falling asleep and, blithely ignoring all the text,
C&P'ed my way into the problem.
It for sure still works. You just have to, you know, read it...
Here's the M2 Pro 12 core stats
nim r -d:release -d:danger unrolled_loop_demo.nim
Found 23000 primes to 262146 for 1225 loops in 42 milliseconds.
Run
Fastest Rust run in comparison (compiled with release)
Found 23000 primes up to 262146 for 1225 loops in 51 milliseconds.
Run
I bet you're leaving some performance on the table without disabling danger
checks.
Very cool language, I look forward to exploring it more!