There was a [great article] about how react implements it's virtual DOM. There are some really interesting ideas in there but they are deeply buried in the implementation of the React framework.
However, it's possible to implement just the virtual DOM and diff algorithm on it's own as a set of independent modules.
|echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc|
|curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1|
|make install # ok, fine, this step probably takes more than 30 seconds...|
|curl https://www.npmjs.org/install.sh | sh|