Something strange is happening in tech right now. Companies are posting record profits and revenue while laying off tens of thousands of people,.