1. A method performed by a processing system for processing a data stream comprising events, the method comprising: receiving a tuple; determining a tuple specification defining a layout of the tuple, wherein the layout identifies one or more data types included in the tuple; dynamically, during runtime of the processing system, determining a tuple class corresponding to the tuple specification; instantiating a tuple object based on the tuple class; and storing the tuple object in a memory.