The brain's secret to lifelong learning can now come as hardware for artificial intelligence