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.
Esta historia es de la edición #289/December 2024: Coding with AI de Linux Magazine.
Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.
Ya eres suscriptor ? Conectar
Esta historia es de la edición #289/December 2024: Coding with AI de Linux Magazine.
Comience su prueba gratuita de Magzter GOLD de 7 días para acceder a miles de historias premium seleccionadas y a más de 9,000 revistas y periódicos.
Ya eres suscriptor? Conectar
MADDOG'S DOGHOUSE
The stakeholder approach of open source broadens the pool of who can access, influence, and benefit from information technologies.
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
In Harmony
Using the Go Interface mechanism, Mike demonstrates its practical application with a refresh program for local copies of Git repositories.
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.
Smarter Navigation
Zoxide, a modern version of cd, lets you navigate long directory paths with less typing.
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.
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.
Arco Linux
ArcoLinux, an Arch derivative, offers easier installs while educating users about Arch Linux along the way.
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?
Zack's Kernel News
Chronicler Zack Brown reports on the latest news, views, dilemmas, and developments within the Linux kernel community.