Cross-Language Code Development with Generative AI: A Source-to-Source Translation Perspective

8Citations
Citations of this article
14Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Since the release of ChatGPT in November 2022, there is growing interest around the world on exploring the capabilities of generative AI tools. In addition to text, image, audio, and video generation, these tools are also able to generate program codes. In this paper, strategies for students, programmers and enthusiasts to understand the prompting methods to generate codes in multiple languages by translating source code written in one language to another target language using generative AI is explored. The prompts are created to test the ability of generative AI to create codes in C, Java, C++, and Python. Some of the methods of generating the complete program using limited original source code statements is presented. In summary, while generating source code in a target language, generative AI tools downplay the significance of accuracy of statements written in original language, syntax, semantics, as well as missing statements in a program. Irrespective of these, generative AI tools are still able to generate complete code in a target language by correcting errors.

Cite

CITATION STYLE

APA

Rai, L., Khatiwada, S., Deng, C., & Liu, F. (2024). Cross-Language Code Development with Generative AI: A Source-to-Source Translation Perspective. In 2024 IEEE 7th International Conference on Electronic Information and Communication Technology, ICEICT 2024 (pp. 562–565). Institute of Electrical and Electronics Engineers Inc. https://doi.org/10.1109/ICEICT61637.2024.10671366

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free