A Comparative Study of Programming Languages in Rosetta Code
Not on the map. Why?
Abstract (arXiv)
Sometimes debates on programming languages are more religious than scientific. Questions about which language is more succinct or efficient, or makes developers more productive are discussed with fervor, and their answers are too often based on anecdotes and unsubstantiated beliefs. In this study, we use the largely untapped research potential of Rosetta Code, a code repository of solutions to common programming tasks in various languages, to draw a fair and well-founded comparison. Rosetta Code offers a large data set for analysis. Our study is based on 7087 solution programs corresponding to 745 tasks in 8 widely used languages representing the major programming paradigms (procedural: C and Go; object-oriented: C# and Java; functional: F# and Haskell; scripting: Python and Ruby). Our statistical analysis reveals, most notably, that: functional and scripting languages are more concise than procedural and object-oriented languages; C is hard to beat when it comes to raw speed on large inputs, but performance differences over inputs of moderate size are less pronounced and allow even interpreted languages to be competitive; compiled strongly-typed languages, where more defects can be caught at compile time, are less prone to runtime failures than interpreted or weakly-typed languages. We discuss implications of these results for developers, language designers, and educators.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). First posted on arXiv 31 Aug 2014.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 4; 2023: 1; 2024: 2; 2025: 3; 2026: 4.
19 papers.
Sort:
By area:
- 2024LLAssist: Simple Tools for Automating Literature Review Using Large Language Modelscited by 4
- 2021End to End Software Engineering Researchcited by 2
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Qualitycited by 1
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injectioncited by 1
- 2026RLGT: A reinforcement learning framework for extremal graph theorycited by 1
- 2021Content-Based Textual File Type Detection at Scalecited by 0
- 2021SINGA-Easy: An Easy-to-Use Framework for MultiModal Analysiscited by 0
- 2021VisualTextRank: Unsupervised Graph-based Content Extraction for Automating Ad Text to Image Searchcited by 0
- 2021Text is NOT Enough: Integrating Visual Impressions into Open-domain Dialogue Generationcited by 0
- 2022Discovering Personalized Semantics for Soft Attributes in Recommender Systems using Concept Activation Vectorscited by 0
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networkscited by 0
- 2022Explanation-Guided Fairness Testing through Genetic Algorithmcited by 0
7 more
- 2022Using Graph Neural Networks for Program Terminationcited by 0
- 2023Tribe or Not? Critical Inspection of Group Differences Using TribalGramcited by 0
- 2025CrossTL: A Universal Programming Language Translator with Unified Intermediate Representationcited by 0
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measurescited by 0
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signalscited by 0
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectorscited by 0
- 2026LangSelect: Cost-Aware Target-Language Routing for LLM Code Generationcited by 0
- 2026Semantic Overlays: Mitigating Prompt Injection with Annotations Beyond Tokens and Steering Vectors24 Aug 2026
- 2026LangSelect: Cost-Aware Target-Language Routing for LLM Code Generation15 Jul 2026
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signals5 May 2026
- 2026RLGT: A reinforcement learning framework for extremal graph theory19 Feb 2026
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measures8 Sep 2025
- 2025CrossTL: A Universal Programming Language Translator with Unified Intermediate Representation28 Aug 2025
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injection9 May 2025
- 2024LLAssist: Simple Tools for Automating Literature Review Using Large Language Models19 Jul 2024
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Quality7 Jul 2024
- 2023Tribe or Not? Critical Inspection of Group Differences Using TribalGram16 Mar 2023
- 2022Using Graph Neural Networks for Program Termination28 Jul 2022
- 2022Explanation-Guided Fairness Testing through Genetic Algorithm16 May 2022
7 more
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networks8 Mar 2022
- 2022Discovering Personalized Semantics for Soft Attributes in Recommender Systems using Concept Activation Vectors6 Feb 2022
- 2021End to End Software Engineering Research22 Dec 2021
- 2021Text is NOT Enough: Integrating Visual Impressions into Open-domain Dialogue Generation13 Sep 2021
- 2021VisualTextRank: Unsupervised Graph-based Content Extraction for Automating Ad Text to Image Search5 Aug 2021
- 2021SINGA-Easy: An Easy-to-Use Framework for MultiModal Analysis3 Aug 2021
- 2021Content-Based Textual File Type Detection at Scale21 Jan 2021
- 2024LLAssist: Simple Tools for Automating Literature Review Using Large Language Modelscited by 4
- 2021End to End Software Engineering Researchcited by 2
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Qualitycited by 1
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injectioncited by 1
- 2026RLGT: A reinforcement learning framework for extremal graph theorycited by 1
- 2021Content-Based Textual File Type Detection at Scalecited by 0
- 2021SINGA-Easy: An Easy-to-Use Framework for MultiModal Analysiscited by 0
- 2021VisualTextRank: Unsupervised Graph-based Content Extraction for Automating Ad Text to Image Searchcited by 0
- 2021Text is NOT Enough: Integrating Visual Impressions into Open-domain Dialogue Generationcited by 0
- 2022Discovering Personalized Semantics for Soft Attributes in Recommender Systems using Concept Activation Vectorscited by 0
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networkscited by 0
- 2022Explanation-Guided Fairness Testing through Genetic Algorithmcited by 0
12 most cited of 18 All 18 (JSON)
- 2026LangSelect: Cost-Aware Target-Language Routing for LLM Code Generation15 Jul 2026
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signals5 May 2026
- 2026RLGT: A reinforcement learning framework for extremal graph theory19 Feb 2026
- 2025How Small Transformation Expose the Weakness of Semantic Similarity Measures8 Sep 2025
- 2025CrossTL: A Universal Programming Language Translator with Unified Intermediate Representation28 Aug 2025
- 2025PyResBugs: A Dataset of Residual Python Bugs for Natural Language-Driven Fault Injection9 May 2025
- 2024LLAssist: Simple Tools for Automating Literature Review Using Large Language Models19 Jul 2024
- 2024Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Quality7 Jul 2024
- 2023Tribe or Not? Critical Inspection of Group Differences Using TribalGram16 Mar 2023
- 2022Using Graph Neural Networks for Program Termination28 Jul 2022
- 2022Explanation-Guided Fairness Testing through Genetic Algorithm16 May 2022
- 2022Reinforced MOOCs Concept Recommendation in Heterogeneous Information Networks8 Mar 2022
12 newest of 18 All 18 (JSON)