Linear-time Codes