This is a massive particle system driven completely by the GPU. Without connections, it can simulate up to 11 million particles. With connections, 20.000.

You can take a look at the source code here:

The project is easy to set up and build with cmake on Windows.  Mac and Linux where supported, but not any more.