Fastest Prime Sieve, in Nim

2021-12-22 Thread Knaque
Well, as long as `g_primes` is read-only, I think this is a perfectly reasonable solution. `{.gcsafe.}` is essentially a way of saying "I know this code _looks_ unsafe to the compiler, but I, the programmer, promise that it is actually safe." So, as long as you can keep that promise, there's rea

Donation matching drive via HN

2021-10-25 Thread Knaque
Donated £7.27 GBP (≈ $10 USD) via PayPal.

Nim 1.6.0 RC2

2021-10-01 Thread Knaque
I don't care about signing the binaries that I make myself, but I do care that the Nim compiler and toolchain themselves aren't flagged as malicious. I had a friend who was put off from learning Nim because of Windows Defender complaining about it. Even if getting it signed isn't the be-all, end

Call parent `$` from overwritten converter?

2021-09-10 Thread Knaque
`system.`$`(a) ` Run