Ghost Coder
Linux Magazine|#289/December 2024: Coding with AI
Artificial intelligence is increasingly supporting programmers in their daily work. How effective are these tools? What are the dangers? And how can you benefit from Al-assisted development today?
Tim Schürmann
Ghost Coder

Developers have been using artificial intelligence for decades. Even text editors such as Kate offer syntax highlighting and auto-completion. Under the hood, these tools are based on predefined rules. If the editor encounters the "for" character string, for example, it highlights the string in green. Modern AI assistants are far smarter, opening up completely new possibilities for developers.

For instance, what happens if you want to convert your existing program code from C to the more modern Rust? No problem for CodeConvert [1]. The cloud service can translate source code between many programming languages (Figure 1). In addition to well-known representatives such as Go and Python, you can also translate code from more exotic languages such as Ocaml, Cobol, and Tcl. Other translators, such as Refraction [2], Codeium [3], and Figstack [4] also help you beam your code to different languages, but these tools can do far more.

The translator tools use plugins to connect to the development environment, monitor the programmer’s work in the background, and then make coding suggestions while the developer is typing. The additions will complete lines started by developers and typically even finish off whole functions. The snippets that GitHub Copilot [5] outputs also stick to the coding conventions of the rest of the document. AI coding thus goes far beyond conventional rule-based autocompletion.

In order to autonomously complete a function, the wizards use the existing or surrounding code as a reference point. Tabnine [6] is based on both the signature of a function and on a comment above it. Programmers can use hint lines to steer the AI to the right results. Keep in mind that many providers don’t bother describing the working methods of their AI tools. In the case of Codeium (Figure 2), for example, it is unclear which lines the wizard takes into account when it generates code.

This story is from the #289/December 2024: Coding with AI edition of Linux Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the #289/December 2024: Coding with AI edition of Linux Magazine.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM LINUX MAGAZINEView All
MADDOG'S DOGHOUSE
Linux Magazine

MADDOG'S DOGHOUSE

The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.

time-read
3 mins  |
#289/December 2024: Coding with AI
MakerSpace
Linux Magazine

MakerSpace

Rust, a potential successor to C/C++, claims to solve some memory safety issues while maintaining high performance. We look at Rust on embedded systems, where memory safety, concurrency, and security are equally important

time-read
10+ mins  |
#289/December 2024: Coding with AI
In Harmony
Linux Magazine

In Harmony

Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.

time-read
9 mins  |
#289/December 2024: Coding with AI
Monkey Business
Linux Magazine

Monkey Business

Even small changes in a web page can improve the browsing experience. Your preferred web browser provides all the tools you need to inject JavaScript to adapt the page. You just need a browser with its debugging tools, some knowledge of scripting, and the browser extension Tampermonkey.

time-read
10+ mins  |
#289/December 2024: Coding with AI
Smarter Navigation
Linux Magazine

Smarter Navigation

Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.

time-read
4 mins  |
#289/December 2024: Coding with AI
Through the Back Door
Linux Magazine

Through the Back Door

Cybercriminals are increasingly discovering Linux and adapting malware previously designed for Windows systems. We take you inside the Linux version of a famous Windows ransomware tool.

time-read
9 mins  |
#289/December 2024: Coding with AI
Page Pulse
Linux Magazine

Page Pulse

Do you want to be alerted when a product is back in stock on your favorite online store? Do you want to know when a website without an RSS feed gets an update? With changedetection.io, you can stay up-to-date on website changes.

time-read
8 mins  |
#289/December 2024: Coding with AI
Arco Linux
Linux Magazine

Arco Linux

ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.

time-read
5 mins  |
#289/December 2024: Coding with AI
Ghost Coder
Linux Magazine

Ghost Coder

Artificial intelligence is increasingly supporting programmers in their daily work. How effective are these tools? What are the dangers? And how can you benefit from Al-assisted development today?

time-read
10+ mins  |
#289/December 2024: Coding with AI
Zack's Kernel News
Linux Magazine

Zack's Kernel News

Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.

time-read
9 mins  |
#289/December 2024: Coding with AI