Está viendo la página Spain versión del sitio.
Le gustaría cambiar a su sitio local?
23 MIN TIEMPO DE LECTURA

A.I. CODING

Matt Holder spends some time discovering how AI, ML and LLM can be used to help us with our programming – and, yes, he explains what the acronyms mean as well…

Science fiction has been dreaming up stories about artificial intelligence for decades now, covering everything from robots performing household chores through to the computer systems in Star Trek. Meanwhile back on Earth, scientific research within the vast field of artificial intelligence has been ongoing for the past 60 years or so.

One of the best-known applications of artificial intelligence and machine learning is the digital assistant, as launched with the iPhone 4S in the early 2010s. Over the last few years, though, we have seen an explosion of tools that use various aspects of artificial intelligence. These cover a vast range of areas, from image recognition, audio processing, the creation of deep fake videos and digital assistants all the way through to the coding tools we are going to discuss today.

We are looking at artificial intelligence (AI), machine learning (ML) and large language models (LLMs), and how they can be used to improve our professional lives. Programming is a vast field, with a huge range of languages, each of which is best used in a different area. For example, JavaScript is used to add interactivity to websites and can also be used for server-side code, using Node. Python is incredibly popular in data science, while C is excellent for work that needs to interact directly with kernels. The tools we are going to discuss here are designed to help programmers write code and test it for security issues. They are not, however, infallible and care needs to be taken when using them, as we’ll discover…

What is AI?

Discover exactly what AI, ML and LLM are.

Before we start looking at specifics, let’s examine B some terminology. According to John McCarthy of the computer science department at Stanford University, artificial intelligence (AI) is “the science and engineering of making intelligent machines, especially intelligent computer programs”. This definition is incredibly broad, which goes to show what a massive field AI is. Intelligence can mean many things, of course, but the sometimes unreliable Wikipedia states: “Artificial intelligence is intelligence – perceiving, synthesising and inferring information – demonstrated by machines, as opposed to intelligence displayed by humans or by other animals. Intelligence encompasses the ability to learn and to reason, to generalise and to infer meaning.”

Ghost in the machine

The Cambridge Dictionary defines machine learning (ML) as “the process of computers changing the way they carry out tasks by learning from new data, without a human being needing to give instructions in the form of a program”. This covers the ability to ingest huge amounts of information and find patterns. The pattern discovery allows the program to improve its knowledge of a particular topic as time goes by. As human beings, we can take information from many sources and many different contexts ,and our incredible brains can make sense of it all to create a nuanced understanding of a subject. As ML algorithms become more powerful, they improve their knowledge in similar ways to humans.

Deep learning is a technique used within the machine-learning field. It uses neural networks to process information; this model takes its inspiration from the human brain and how neurons are connected.

Finally, the large language model (LLM) is a methodology used to take an input of a sentence or paragraph and use it to provide the computer with instructions. LLMs are trained on huge amounts of language data. If you ask your smart speaker, “Please can you tell me what the ingredients are in lemonade?”, what the computer processing this question actually needs to know is “Lemonade ingredients”.

Definitions out of the way, let’s have a look at some possible uses of artificial intelligence and how they can benefit us. Over the last year or two, a myriad of tools have been released that can aid a programmer’s dayto-day life. What the tools can’t do, at the moment at least (thankfully), is completely replace a programmer. First, we are going to cover how to take code that has been generated by an ML tool and work through how to debug what’s going on, so we can have automatically generated code that we can ensure works as expected.

Desbloquea este artículo y mucho más con
Puedes disfrutar:
Disfrute de esta edición al completo
Acceso instantáneo a más de 600 títulos
Miles de números atrasados
Sin contrato ni compromiso
Inténtalo €1.09
SUSCRÍBETE AHORA
30 días de acceso, luego sólo €11,99 / mes. Cancelación en cualquier momento. Sólo para nuevos abonados.


Más información
Pocketmags Plus
Pocketmags Plus

Este artículo es de...


View Issues
Linux Format
September 2023
VER EN TIENDA

Otros artículos de este número


MEET THE TEAM
MEET THE TEAM
This issue, we’re getting AIs to badly develop ap plications for us. Hurrah! So, what are you going to do with all the spare time your personal AI is going to free up?
Not so smart
A rtificial intelligence is like any other tool
REGULARS AT A GLANCE
Newsdesk
THIS ISSUE: EU threat to open source Plasma features face chop Gnome opens window plans Debian embraces RISC-V
JUST BUGGIN’
Jon Masters is a kernel hacker who’s been
Kernel Watch
Jon Masters keeps up with all the latest happenings in the Linux kernel, so you don’t have to.
ONGOING DEVELOPMENT…
John Ogness posted Wire Up Nbcon Consoles, which
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com
Mailserver
WRITE TO US Do you have a
Hot Picks
Immich
ATTACK OF THE A.I. Pi BOTS
Fun artificial intelligence projects you can build and run at home on the cheapest of hobbyist hardware!
REVIEWS
BarraCuda 8TB HDD
Cheap and cheerful – that’s not how Shane Downing parties.
GeForce RTX 4060
A good graphics card with the wrong name, ponders Chris Szewczyk.
Murena Fairphone 4
Fairest of them all, Jonni Bidwell is excited by an ethical phone with a privacy-respecting operating system.
Peppermint OS
After years of sampling Linux Mint, Nate Drake opts for something spicier in the hybrid Peppermint OS, which integrates cloud-based apps.
Fatdog64 Linux 814
Nate Drake decides to look in on Fatdog, a Puppy-based OS that’s grown into a very credible canine in its own right.
ROUNDUP
Media-creation distros
Michael Reed examines five distributions, aimed at creative types, that come packed with applications, utilities and plugins.
Customisations & extra features
How much does each distro add?
Base distro and package repros
We need a strong foundation with access to the latest software.
Using the user interface
Creative flow is paramount.
System efficiency
It’s a shame if the distro starts gobbling up resources before you’ve even started.
Audio, music and plugins
Showcasing what Linux can do in this realm and saving installation effort.
Video and graphics apps
Ready-to-go drawing and painting applications are always welcome.
Documentation and support
Information on how to get things running and overcome difficulties.
The verdict
Media-creation distributions
Pi USER
Pi Foundation open sources its Code Editor
Accelerating feature development and generally doing the right thing all round, hurrah!
RP2040 ETH Mini Dev
Les Pounder loves all his Pi collection, but sometimes there’s some he simply can’t love as much…
Sonic Mini 8K S
Always on the lookout for upgrades, Denise Bertacchi doubly likes it when there’s a bargain, too.
Build a flashy dice roller with NeoPixels
Les Pounder is learning to multitask but we think he misunderstood the instructions.
Smart management for smart kiosks
Tam Hanna takes a look at how Ubuntu Frame harnesses Wayland’s strengths to make smart display management more comfortable.
TUTORIALS
Best kept secrets
A man who keeps his cards close to his chest, we struggled to persuade Shashank Sharma to reveal how he protects his passwords.
Upgrade your Steam Deck SSD
Neil Mohr asked hardcore PC gamers Tony Polanco and Katie Wickens to upgrade a Linux device – what could possibly go wrong?
Access services with Nginx reverse proxy
Nick Peers discovers how to open your network services to the internet with this user-friendly implementation of Nginx.
Add Raspberry Pi GPIO to your PC
PCs don’t offer a GPIO header like the Raspberry Pi, but Mike Bedford reveals that a low-cost add-on is all you need to join in the fun.
Render real-world 3D maps in Blender
Credit: www.blender.org
ADMINISTERIA
A ROCKY ROAD AHEAD?
Stuart Burns is a Linux administrator for a
Docker is dead, long live Docker
Docker has been the king of containers but could Podman put an end to Docker’s reign?
LXD gobbled up by Canonical
LXD ownership is transferred to Canonical in the hope of making great strides.
Who installed that?
Yum is more than just a way to install applications – it can do all sorts of interesting stuff.
HostPapa
Ruby P Jane tries this paternal web host provider that offers a range of services for both personal and business use.
Cloudways
A competent host offering scalable cloud-based solutions that has Ruby P Jane loving what she sees.
IN DEPTH
AWS vs Azure
What’s the difference? Not all cloud providers are the same. Steve Cassidy compares the two biggest platforms
CODING ACADEMY
Text adventure combat mechanics
Often found making love and not war, this month Nate Drake takes our interactive text adventure down a dark, violent path.
Code your own Breakout retro game
Matt Holder discovers that writing a ’70s-style classic game isn’t as simple as he first thought.
Creating Flutter apps
David Bolton shows how to set up a Flutter development environment on Linux and then how to build a simple calculator in Flutter.
Chat
X
Soporte Pocketmags