HP will eliminate up to 6,000 jobs as it moves towards artificial intelligence — an upsetting example of AI-driven job loss.