Supplementary files for "Translating short-form Python exercises to other programming languages using diverse prompting strategies"

This repository contains supplementary information for the Gigascience article by Stephen R. Piccolo and Harlan P. Stevens titled, "Translating short-form Python exercises to other programming languages using diverse prompting strategies." In this paper, we describe an effort to use a large language model to translate Python exercises to the Rust, Julia, Javascript, and C++ programming languages in a semi-automated manner. This repository contains the programming task instructions, Python solution code, Python test code, and data files (where relevant) for the exercises, as well as translated solutions for each language. The `run.sh` bash script orchestrates the process of executing the scripts to parse the data and perform the translations and then generate the manuscript figures. If you wish to perform the translations, you must have an OpenAI key and store it in a local file called `openai_key.txt`. The contents of this file would look something like this: `sk-7x1RbL5YBTSab6h1uFq3T5CinmGYWFnMvLPt0lBXpJlE6tal`. A previous version was uploaded to https://osf.io/4yxrf, but this Zenodo archive is the current version.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-11-26
DOI
https://doi.org/10.5281/zenodo.17723732
Primary Topic
Computational Physics and Python Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Supplementary files for "Translating short-form Python exercises to other programming languages using diverse prompting strategies"

Zenodo (CERN European Organization for Nuclear Research)
Computational Physics and Python Applications
article

Supplementary files for "Translating short-form Python exercises to other programming languages using diverse prompting strategies"

article en

Abstract

This repository contains supplementary information for the Gigascience article by Stephen R. Piccolo and Harlan P. Stevens titled, "Translating short-form Python exercises to other programming languages using diverse prompting strategies." In this paper, we describe an effort to use a large language model to translate Python exercises to the Rust, Julia, Javascript, and C++ programming languages in a semi-automated manner. This repository contains the programming task instructions, Python solution code, Python test code, and data files (where relevant) for the exercises, as well as translated solutions for each language. The `run.sh` bash script orchestrates the process of executing the scripts to parse the data and perform the translations and then generate the manuscript figures. If you wish to perform the translations, you must have an OpenAI key and store it in a local file called `openai_key.txt`. The contents of this file would look something like this: `sk-7x1RbL5YBTSab6h1uFq3T5CinmGYWFnMvLPt0lBXpJlE6tal`. A previous version was uploaded to https://osf.io/4yxrf, but this Zenodo archive is the current version.

Zenodo (CERN European Organization for Nuclear Research)
Brigham Young University (US)
Quality Education
Openalex Percentile: Top 22%
Computational Physics and Python Applications
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.