Intent Preserving Generation of Diverse and Idiomatic (Code-)Artifacts

When automatically generating programming exercise tasks one often also needs to automatically generate programs.At the very least when providing sample solutions is part of automated feedback.But programs can also be used as part of the exercise task description to communicate a task's requirements [15].Writing good program generators that produce varied yet idiomatic code while being easily adaptable for new tasks is challenging.The challenges are intensified if task generation requires additional artifacts, like a more general behavior specification for testing or additional textual descriptions.Manually writing generators for multiple different but strongly related artifacts gets complicated quickly.We present an approach where instead of writing monolithic generators for multiple connected artifacts one specifies a small set of abstract building blocks and for each such building block defines sets of concrete realizations for various kinds of artifacts.Then the intended structure of the resulting artifacts is specified as a composition of the small abstract building blocks.This abstract description then serves as the common source from which related artifacts can be derived automatically.The approach is generic in the kind of artifacts it can produce and is therefore adaptable to a wide range of contexts.

Authors

Institutions

Publication Details

Journal
Electronic Proceedings in Theoretical Computer Science
Published
2025-08-04
DOI
https://doi.org/10.4204/eptcs.424.6
Citations
1
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Intent Preserving Generation of Diverse and Idiomatic (Code-)Artifacts

Oliver Westphal
1 citations
Electronic Proceedings in Theoretical Computer Science
Natural Language Processing Techniques
2.48
article

Intent Preserving Generation of Diverse and Idiomatic (Code-)Artifacts

Oliver Westphal
article en
1 citations

Abstract

When automatically generating programming exercise tasks one often also needs to automatically generate programs.At the very least when providing sample solutions is part of automated feedback.But programs can also be used as part of the exercise task description to communicate a task's requirements [15].Writing good program generators that produce varied yet idiomatic code while being easily adaptable for new tasks is challenging.The challenges are intensified if task generation requires additional artifacts, like a more general behavior specification for testing or additional textual descriptions.Manually writing generators for multiple different but strongly related artifacts gets complicated quickly.We present an approach where instead of writing monolithic generators for multiple connected artifacts one specifies a small set of abstract building blocks and for each such building block defines sets of concrete realizations for various kinds of artifacts.Then the intended structure of the resulting artifacts is specified as a composition of the small abstract building blocks.This abstract description then serves as the common source from which related artifacts can be derived automatically.The approach is generic in the kind of artifacts it can produce and is therefore adaptable to a wide range of contexts.

Electronic Proceedings in Theoretical Computer ScienceVol. 424
University of Duisburg-Essen (DE)
Reduced inequalities
Openalex Percentile: Top 9%
Natural Language Processing Techniques
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Intent Preserving Generation of Diverse and Idiomatic (Code-)Artifacts — Oliver Westphal · Electronic Proceedings in Theoretical Computer Science (2025) | TGRS Research Map | TGRS