An excuse to try out nim
.
First install the dependencies.
nimble install cligen
Then, from now on, you can do the following to compile:
nimble build
If you want to run the code with nimble
.
nimble run -- --sampleSize=10000 < corpus |& less
or
reservoir_samplingnim --sampleSize=10000 < corpus |& less