GOOL: A Generic Object-Oriented Language (extended version)

Jacques Carette, Brooks MacLachlan, W. Spencer Smith
11/26/2019
cs.PL

Official code: JacquesCarette/Drasil (171 stars, Haskell, BSD-2-Clause, last commit 2026-11-17).

Abstract

We present GOOL, a Generic Object-Oriented Language. It demonstrates that a language, with the right abstractions, can capture the essence of object-oriented programs.

Show full abstract

We show how GOOL programs can be used to generate human-readable, documented and idiomatic source code in multiple languages. Moreover, in GOOL, it is possible to express common programming idioms and patterns, from simple library-level functions, to simple tasks (command-line arguments, list processing, printing), to more complex patterns, such as methods with a mixture of input, output and in-out parameters, and finally Design Patterns (such as Observer, State and Strategy). GOOL is an embedded DSL in Haskell that can generate code in Python, Java, C# and C++.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Generate all the things (focusing on research software)

17134Haskell, MakefileSep 7, 20142 weeks agoBSD-2-Clause
code-generationdocumentation-generatordrasil-frameworkdslhaskell+3 more

Similar Papers

Cite this paper

@article{carette2019gool,
  title  = {GOOL: A Generic Object-Oriented Language (extended version)},
  author = {Jacques Carette and Brooks MacLachlan and W. Spencer Smith},
  year   = {2019},
  eprint = {1911.11824},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.11824}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.11824.svg)](https://codeofpaper.com/paper/1911.11824)

Discussion