Categories
Gemini News

Sty

“Sty” is the Pygmalion runtime. The name applies both to the interface provided to Pygmalion’s data files and to the daemon application used to allow Pyg applications to communicate.

Pygmalion uses a central directory, the “Pygdir,” to hold information about the game’s current state, packages, etc. Sty provides a uniform method with which to access this directory. Right now, Sty is written entirely in Ruby; eventually, it may become a C library for speed and greater code reuse.

As I mentioned, Sty is both an interface and an application. Used simply as a library, Sty allows a single application to have access to any given Pygdir at once, using file-based locking. However, the Sty daemon is designed to coordinate multiple applications using a single Pygdir at once.

Currently, the Sty daemon uses DRb. There are certain amounts of overhead inherent in using a generic protocol like DRb’s, so I may eventually implement a custom protocol.