Hi @rafaqz
I reimplemented the Potjan's Diesmann synaptic wiring rules from Python (https://github.com/nest/nest-simulator/blob/master/pynest/examples/Potjans_2014/network_params.py) to Julia below.
The result actually works with the SNN package, we were talking about in Signal.
Its supposed to wire up to millions of cells, it comfortably wires 500,000 cells in less than 0.4seconds, but for 5,000,000 it takes an hour to create the matrix on a machine with 64GB of RAM.