I've lived in Toronto and Portland (Oregon). Portland had more vagrants than I've experienced in Toronto. I'm sure the absolute number is probably higher, but the distribution doesn't seem the same. From what I hear, SF also has a large problem with vagrants / homeless. I'm not sure that "move to SF" is the solution to the "I don't want to be around these vagrants" problem.
Just making sure, my point was not "I don't want to be around these people". My point was that I don't want to partake in a system which such a big income-gap.
In the Netherlands (where I come from) the average saleries for programmers are even lower, but in return you get a pretty great social system and a much saner work/life balance.