Despite dismal forecasts for PCs and servers, tech stocks have been doing well on optimism about cloud technology and mobile devices.