runtime: simplify the API for codecs and io
io: provide convenience function for looping over a read
benchmark: implemented carsales using sync pipe method