Skip to main navigation Skip to search Skip to main content

On the Variations of ChatGPT’s Response Quality for Generating Source Code Across Programming Languages

  • Ángela González de Diego
  • , Franz Wotawa*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference paperpeer-review

Abstract

The rise of Large Language Models, particularly the ChatGPT model, has transformed the field of natural language information processing and has led to widespread adoption in a diverse range of applications and across a multitude of industries. In this paper, we focus on assessing the quality of the responses generated by Chat-GPT for the code generation tasks using seven different programming languages. We selected the languages considering diversity in terms of the fields of application, philosophies, and popularity. We carried out an experimental evaluation utilizing different introductory coding examples for each of the programming languages using the pass@k metric for evaluation. The results indicate a correlation between the effectiveness of the model and the popularity of programming languages.

Original languageEnglish
Title of host publicationTesting Software and Systems - 36th IFIP WG 6.1 International Conference, ICTSS 2024, Proceedings
EditorsHéctor D. Menéndez, Gema Bello-Orgaz, Pepita Barnard, John Robert Bautista, Arya Farahi, Santanu Dash, DongGyun Han, Sophie Fortz, Victor Rodriguez-Fernandez
PublisherSpringer Science and Business Media Deutschland GmbH
Pages63-78
Number of pages16
ISBN (Print)9783031808883
DOIs
Publication statusPublished - 25 Jan 2025
Event36th IFIP WG 6.1 International Conference on Testing Software and Systems, ICTSS 2024 - London, United Kingdom
Duration: 30 Oct 20241 Nov 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume15383 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference36th IFIP WG 6.1 International Conference on Testing Software and Systems, ICTSS 2024
Country/TerritoryUnited Kingdom
CityLondon
Period30/10/241/11/24

Keywords

  • ChatGPT for programming
  • Experimentally evaluating code generation using LLMs
  • Large language models for programming

ASJC Scopus subject areas

  • Theoretical Computer Science
  • General Computer Science

Cite this