Always use a `main` proc in Nim. Speeds up the execution from 0.80 s to 0.15 s 
in this case for me, compared to 0.20 s for the C++ version (compiled with `g++ 
-Ofast -flto -o main main.cpp ArrayHelpers.cpp NeuralNetwork.cpp 
OptimizationProblems.cpp RandomGenerators.cpp`). You can also use `int32` 
instead of `int`, but doesn't have a huge effect here.

Reply via email to