SAN FRANCISCO — A Chinese supercomputer has been ranked as the world’s second-fastest machine, surpassing European and Japanese systems and underscoring China’s aggressive commitment to science and technology.