Reproduce “Object Graph Programming” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Aditya Thimmaiah, Leonidas Lampropoulos, Christopher J. Rossbach, Milos Gligoric

Object Graph Programming (OGO) enables declarative querying and modification of a program's in-memory object graph using standard graph query languages like Cypher. The in-memory prototype, OGO_Mem, consistently outperformed the external database-based approach, and OGO implementations reduced code size by up to 5 times for library methods.

Key insights

  • The in-memory program state is inherently an object graph, which can be effectively modeled and treated as a property graph akin to a graph database.
  • Applying declarative graph query languages to the live program's heap enables powerful introspection, analysis, and manipulation previously difficult with imperative approaches.
  • A blend of imperative and declarative abstractions provides more concise and understandable code for tasks involving object traversal and state validation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.