The initial version was written in C++ (after an earlier start in C), but another version was written in Ruby.
As an example, within NEMO we have adopted their nbody_sh1(1NEMO) hermite integrator with shared but variable time step. This version was written in C++.
http://www.artcompsci.org/