Persistent storage!?!?

No interest in scripting?  You might like to skip this article 🙂

For those of you who have done any advanced programming in LSL, you’ll know that one of the big things missing from the language is that there is no persistent storage mechanism.  For example, you can read a notecard, but you cannot write one from script, so there is no way to store information that will survive a script reset unless you resort to using an external database via http (or other depreciated) functions.

All that might be about to change, as Rider Linden has just created a wiki page called LSL Linkset Data, in which he describes a set of LSL functions for writing, reading, and deleting up to 64K of key/values pairs associated with a linkset.  The memory to support this is not associated with any script memory, so it will survive script resets.  It will also survive object copy and the transfer of the object to a new owner!

This is very exciting news!  Using http to talk to a script on a webserver is slow, and programming it is cumbersome and difficult to debug.  This new functionality is something we scripters have been dreaming of for years.  Let’s hope it’s not just a proposal but the real deal!