1. A computer-implemented method for generating code for real-time stream processing, wherein data is streamed in tuples, wherein each tuple has a timestamp and a value, and wherein the computer-implemented method comprises: receiving, by one or more processors, source code, wherein the source code includes: code to be applied in a sequential series to one or more tuples; a definition of a size of a sequence of tuples to be processed as a processing window; and a size of a sequence of earlier tuples that a current tuple depends upon as a dependence window; and generating, by one or more processors, code for real-time stream processing by: buffering received time sequence tuples in a buffer in accordance with the processing window and the dependence window; and converting the code to be sequentially applied to the one or more tuples into converted code for buffered tuples with a loop construct.