Interestingly, each time we have lost jobs, we have diversified into many more types of jobs that cannot be swept away with a single automation breakthrough. ~90% of workforce were once farmers and almost every single one of them lost their job when mechanization came. Now, with self-driving cars, we are worried about the ~2% of the workforce who drive for a living. That is already a big change from the past, and each iteration how shown that a smaller and smaller portion of the workforce will be affected by automation at any given point in time. That is not to say that everyone will go unscathed, but mass unemployment becomes less and less likely.