Guide

Inside the Machine: A Hardware Primer

What a computer physically is, from the transistor up: how processors, memory, storage and firmware work together, why instruction sets matter and what happens to machines at the end of their lives.

Why hardware still matters

Software can feel weightless, but every program runs on physical matter: silicon patterned with billions of switches, copper traces, magnetic platters or flash cells, all drawing power and shedding heat. Understanding hardware explains things that otherwise look arbitrary, such as why a phone slows down when it is hot, why some programs run only on certain chips, why storage fails and why an old laptop can be revived with more memory. It also clarifies wider questions about energy use, supply chains, repair and the environmental cost of short-lived devices.

At its simplest, a computer is a machine that stores information as binary numbers and transforms it according to stored instructions. That design, often called the von Neumann architecture after John von Neumann's 1945 report on the EDVAC, keeps programs and data in the same memory. Nearly every general-purpose computer since the first stored-program machines of the late 1940s, from mainframes to smartwatches, follows a version of that model, and the sections below follow it from the smallest component upward.

From transistors to chips

The basic building block is the transistor, a semiconductor device that acts as an electrically controlled switch. The first working transistor was demonstrated at Bell Labs in 1947, and transistors went on to replace bulky, unreliable vacuum tubes. Combining transistors produces logic gates that implement Boolean operations such as AND, OR and NOT; combining gates produces adders and memory cells and, eventually, whole processors. Everything a computer does reduces to enormous numbers of these switches changing state billions of times per second.

The integrated circuit, developed independently by Jack Kilby at Texas Instruments in 1958 and Robert Noyce at Fairchild Semiconductor in 1959, put many transistors on a single piece of silicon. In 1965 Gordon Moore observed that the number of components on a chip was doubling at a regular pace, a forecast he revised in 1975 to roughly every two years. Moore's law held for decades as an industry roadmap rather than a law of nature. Since the mid-2000s clock speeds have largely plateaued because of power and heat limits, and progress has come from more cores, specialized units and advanced packaging. Marketing names for manufacturing processes, such as "3 nanometer", no longer correspond to any single physical dimension.

Processors: CPU, GPU and NPU

The CPU is a general-purpose processor optimized for running a sequence of varied instructions quickly, using techniques such as pipelining, branch prediction and large caches. The first commercial single-chip microprocessor, the Intel 4004, appeared in 1971. A GPU takes the opposite approach: thousands of simpler cores performing the same operation on many pieces of data at once. Designed to draw 3D graphics, GPUs turned out to suit any highly parallel arithmetic, and NVIDIA's CUDA platform, first released in 2007, made them programmable for general computation. That shift made GPUs the main engine of deep learning.

An NPU (neural processing unit) is a further specialization, built to run neural network inference efficiently at low power, and appears in many phones and laptops. Phones and a growing number of laptops build these elements into a system on a chip (SoC) that integrates CPU cores, GPU, NPU, memory controllers and other functions in a single package. Specialization trades flexibility for efficiency: the more narrowly a circuit is designed for one task, as with an application-specific integrated circuit (ASIC), the less energy it spends per operation.

Memory, storage and the hierarchy of speed

Processors are much faster than the places data is kept, so computers use a hierarchy. Registers inside the CPU hold the values being worked on; several levels of cache hold frequently used data; main memory, or RAM, holds running programs and their data but loses its contents when power is cut. Storage keeps data permanently. A hard disk drive records data magnetically on spinning platters read by a moving head, while a solid-state drive stores it in NAND flash cells with no moving parts, making it far faster at random access and more resistant to shocks.

Each step down the hierarchy is larger, cheaper per byte and slower. Reading a value from a CPU register takes well under a nanosecond, while reading from a hard disk can take several milliseconds, a difference of millions of times. Much performance engineering consists of keeping the right data close to the processor. The motherboard ties these parts together, providing the sockets, slots and buses through which processor, memory, storage and peripherals communicate.

Firmware and the boot process

When a computer is switched on, the processor begins executing code stored in firmware on a chip on the motherboard. Older PCs used the BIOS; most PCs since the early 2010s use UEFI, a more capable specification that can read disk partitions, load drivers and present graphical setup menus. The firmware tests and initializes the hardware, then hands control to a bootloader, which loads the operating system kernel. From there the operating system takes over management of memory, processes and devices.

Because firmware runs before anything else, it is both a foundation of trust and a valuable target for attackers. Secure Boot checks the digital signatures of boot components such as bootloaders before running them, and a trusted platform module can store keys and record measurements of what was loaded. Firmware also contains much of the proprietary code in otherwise open systems, which is why projects aiming for fully free computers pay close attention to it.

Instruction set architectures

An instruction set architecture (ISA) is the contract between hardware and software: the set of instructions a processor understands, its registers and the way it addresses memory. Software compiled for one ISA will not run natively on another, so the choice of ISA shapes whole ecosystems of operating systems, compilers and applications. Three families, summarized below, matter most for general computing.

Each family has a stronghold, but the boundaries have blurred. Apple began moving its Mac line from x86 to its own ARM-based chips in 2020, showing that ARM designs could compete in laptops and desktops, and major cloud providers offer ARM-based servers. RISC-V has spread quickly in microcontrollers and embedded systems, where license costs and customization matter most, and its specifications are maintained by the nonprofit RISC-V International.

  • X86 descends from Intel's 8086 of 1978 and dominates desktop PCs and servers, with Intel and AMD as its main designers.
  • ARM began at Acorn Computers in the 1980s; its owner licenses designs rather than making chips, and it dominates phones and tablets.
  • RISC-V originated at the University of California, Berkeley in 2010 as an open standard that anyone can implement without license fees.

Small computers: boards and microcontrollers

Not every computer is a PC. A single-board computer puts a complete system (processor, memory, storage interface and input and output) on one circuit board. The Raspberry Pi, launched in 2012 by the Raspberry Pi Foundation as a low-cost machine for teaching computing, runs a full Linux operating system and has sold tens of millions of units to hobbyists, schools and industry. Boards like it are used as home servers, media players, robot controllers and industrial gateways.

A microcontroller is smaller still: a single chip with a modest processor, a little memory and pins for reading sensors and driving motors or lights, typically running one program with no operating system at all. The Arduino platform, created in Italy in 2005, made microcontroller programming accessible to artists, designers and students. Microcontrollers sit inside appliances, cars, toys and keyboards and far outnumber general-purpose computers; they are the quiet substrate of embedded systems and the Internet of Things.

Variation, repair and e-waste

Chips of the same model are not identical. Microscopic variations in manufacturing mean that some dies run faster or at lower voltage than others, so manufacturers test and sort, or bin, chips into different product tiers. Enthusiasts call the remaining variation the silicon lottery: two processors bought on the same day may overclock very differently. The same physics sets limits on lifespan, since heat, voltage and age gradually degrade circuits, and every storage medium eventually wears out.

Hardware also has a life after purchase. Devices that are glued shut, use parts paired to a single unit by software or lack spare parts and manuals tend to be discarded early. The right to repair movement, supported by groups such as iFixit, argues for access to parts, tools and documentation, and jurisdictions including the European Union and a number of US states have passed repair-related laws. The stakes are large: the United Nations' Global E-waste Monitor 2024 estimated that the world generated about 62 million tonnes of electronic waste in 2022, with less than a quarter documented as properly collected and recycled.

Key takeaways

  1. Every computer is built from transistors combined into logic gates, and Moore's law described decades of growth in how many fit on a chip.
  2. CPUs, GPUs and NPUs trade generality for efficiency, and most consumer devices combine them in a single system on a chip.
  3. Computers rely on a hierarchy of memory and storage in which each level is larger, cheaper and slower than the one above.
  4. The instruction set architecture, whether x86, ARM or RISC-V, determines which software can run natively on a processor.
  5. Repairability and electronic waste are hardware questions with large social and environmental consequences.

Further reading in the atlas

Glossary term

Material whose electrical conductivity lies between that of a conductor and an insulator and can be precisely controlled, forming the basis of electronic chips.

Person

Gordon Moore

Hardware

American chemist and businessman who co-founded Intel and formulated Moore's law, the observation that transistor counts on chips double at a regular pace.

Glossary term

Integrated circuit that combines most components of a computer, such as processor cores, graphics, memory controllers and input and output, on one chip.

Glossary term

Secure Boot

CybersecurityHardware

Firmware feature that lets a computer start only bootloaders and system software signed with trusted keys, protecting against boot-level malware.

Glossary term

Motherboard

Hardware

Main printed circuit board of a computer, connecting the processor, memory, storage, expansion cards and peripherals and distributing power among them.

Glossary term

Data storage device that records information magnetically on rapidly spinning platters, read and written by heads on a moving arm.

Glossary term

Electronic Waste

HardwareIdeas and Culture

Discarded electrical and electronic devices and their components, a fast-growing waste stream containing both valuable materials and hazardous substances.

Glossary term

Overclocking

HardwareVideo Games

Practice of running a processor, graphics card or memory at a higher clock speed than its manufacturer's rating to gain performance.

Organization

iFixit

HardwareIdeas and Culture

American company that publishes free repair guides, sells repair tools and parts and campaigns for people's right to repair their own devices.

Technology

Framework Laptop

HardwareIdeas and Culture

Line of modular laptops designed so owners can repair, upgrade and customize nearly every part, from ports to the mainboard.

Person

John von Neumann

HardwareProgramming

Hungarian-American mathematician who shaped quantum theory, game theory and computing, describing the stored-program design used by most computers.

Organization

Bell Labs

HardwareProgrammingIdeas and Culture

Industrial research laboratory, founded in 1925, where the transistor, information theory, Unix and the C programming language were created.

More guides

All guides
Guide

Downloading a model and running it on a personal computer trades convenience for privacy, control and fixed costs. This guide explains the memory math, the hardware, the software and what to expect.

AIHardwareFOSS
Guide

A homelab is a small personal infrastructure for learning and self-hosting. Planning it around clear goals keeps it useful, affordable, quiet and safe.

HardwareDevOps