The same question came up just a little while ago:
https://news.ycombinator.com/item?id=9836376
Check out those threads and start digging. Patio11 is a good person to read up on.
Check out those threads and start digging. Patio11 is a good person to read up on.