Discovery of 2nd ever white dwarf pulsar sheds light on how stars evolve