Programming with data streams of different frequencies