My favorite 2D liquid simulator is this IOCCC2012 submission [1]... simply astonishing.
That is the source file shown at the beginning of the video... it compiles without warnings, runs a full blown fluid dynamics sim with surface tension and everything, can take itself as its own input... truly a work of art.