Researchers have designed a programming language for energy-harvesting computers, which rely on the intermittent power supply of their environment.