Towards Understanding Bio-Inspired Computing For Optimization And Learning