Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Programming with ChatGPT: How far can we go?
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.ORCID iD: 0000-0002-8027-0611
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems.
Mälardalen University, School of Innovation, Design and Engineering, Embedded Systems. Mälardalen Univ, Västerås, Sweden.
Univ Laquila, Dept Informat Engn Comp Sci & Math, Laquila, Italy.
2024 (English)In: Machine Learning with Applications, E-ISSN 2666-8270, Vol. 15, article id 100526Article in journal (Refereed) Published
Abstract [en]

Artificial intelligence (AI) has made remarkable strides, giving rise to the development of large language models such as ChatGPT. The chatbot has garnered significant attention from academia, industry, and the general public, marking the beginning of a new era in AI applications. This work explores how well ChatGPT can write source code. To this end, we performed a series of experiments to assess the extent to which ChatGPT is capable of solving general programming problems. Our objective is to assess ChatGPT's capabilities in two different programming languages, namely C++ and Java, by providing it with a set of programming problem, encompassing various types and difficulty levels. We focus on evaluating ChatGPT's performance in terms of code correctness, run-time efficiency, and memory usage. The experimental results show that, while ChatGPT is good at solving easy and medium programming problems written in C++ and Java, it encounters some difficulties with more complicated tasks in the two languages. Compared to code written by humans, the one generated by ChatGPT is of lower quality, with respect to runtime and memory usage.

Place, publisher, year, edition, pages
Elsevier BV , 2024. Vol. 15, article id 100526
Keywords [en]
ChatGPT, Large language models, Programming
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:mdh:diva-68204DOI: 10.1016/j.mlwa.2024.100526ISI: 001291587000001Scopus ID: 2-s2.0-105027879588OAI: oai:DiVA.org:mdh-68204DiVA, id: diva2:1891039
Available from: 2024-08-21 Created: 2024-08-21 Last updated: 2026-10-16Bibliographically approved

Open Access in DiVA

fulltext(1581 kB)5 downloads
File information
File name FULLTEXT01.pdfFile size 1581 kBChecksum SHA-512
37d378f65f6acdfe3b6d042b465c742c07bab7291e9788869ef962a4fc6847579bbcf326779428fabf12448b4c21f46f30b611bb1fb5f28eb46c77f2cfb2487c
Type fulltextMimetype application/pdf

Other links

Publisher's full textScopus

Search in DiVA

By author/editor
Bucaioni, AlessioEkedahl, HampusHelander, Vilma
By organisation
Embedded Systems
In the same journal
Machine Learning with Applications
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 5 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

doi
urn-nbn

Altmetric score

doi
urn-nbn
Total: 486 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf