Structured Data Representation for Multiple Programming Languages on Java VM
Kazuaki Mæda · 2011
This paper describes RugsOn, a new representation written in a text-based data format. The design principle of RugsOn is good readability and simplicity of structured data representation. One feature of RugsOn is a domain specific language to represent structured data. It is similar as JSON, but syntax of RugsOn is carefully chosen for multiple programming languages. Another feature is an executable representation. Once RugsOn-related definitions are loaded into a runtime environment, the representation can be executed corresponding to the definitions. Utility programs are available to read/write structured data to persistent storage-media, or to traverse the structured data. A program generator was developed to create Ruby, Groovy, Scala and Java programs from RugsOn definitions. In the author's experience, productivity was improved in the design and implementation of programs that manipulate structured data.