The Yosemite system is a lottery now. It was first-come-first-serve but tour companies (read: scalpers) would buy them all up. There were a couple of years where it was incredibly difficult to get a permit. The lottery system is pretty great and we've been able to consistently get Half Dome permits (yearly trip) since.