Holy cow: the Second Life client has just gone open-source:
[W]e welcome the inevitable with open arms.
Stepping up the development of the Second Life Grid to everyone interested, I am proud to announce the availability of the Second Life client source code for you to download, inspect, compile, modify, and use within the guidelines of the GNU GPL version 2.