RAM Is Getting Expensive. Maybe Software Should Get Leaner.
Memory prices are rising as AI infrastructure demand redirects supply, and even a 16GB Raspberry Pi 5 costs more than three times its launch price. The author reflects on software bloat and his own efforts to make applications smaller through Go, Alpine Linux, lightweight desktops, and AI-assisted rewrites backed by measurement and tests.
· Blaize Stewart · #ram #memory #software-efficiency #go #linux #alpine-linux #ai-infrastructure #refactoring
For a long time, RAM was one of those things I didn't think about all that much when building an application. Obviously, if something had a memory leak or was consuming ridiculous amounts of it, that was a problem. Otherwise, RAM was relatively cheap. If an application needed more memory, it usually wasn't that difficult to give it more. We've gotten pretty comfortable with that approach, and I think a lot of our software reflects it.
That's changing.
Memory prices are climbing. AI companies are building enormous data centers, and those systems need an incredible amount of RAM. Memory manufacturers have strong incentives to direct production toward high-margin server products, while ordinary computers, phones, and other devices are competing for capacity. TrendForce reported that conventional DRAM contract prices were expected to rise another 10 to 15 percent in the fourth quarter of 2026.
The Raspberry Pi is a good example. The 16GB Raspberry Pi 5 launched in January 2025 at $120. In November 2026, Raspberry Pi raised its official price to $385. That's more than three times what that particular model cost at launch. We're talking about a little single-board computer that became popular in large part because it was inexpensive. Raspberry Pi has even started encouraging people to consider lower-memory configurations and optimize their applications to get by with less.
The same pressure is hitting other devices. IDC expects PC and phone manufacturers to cut memory and storage configurations on some new devices as costs rise. One of its examples is a phone that might previously have shipped with 12GB of RAM and 256GB of storage arriving instead with 8GB and 128GB at the same price. That's a forecast rather than a specific phone announcement.
Sam Altman even managed to stir up a controversy recently by talking about the amount of scarce RAM sitting in personal computers instead of being used more heavily in data centers. His comments were specifically about the economics of local AI inference versus shared infrastructure, and he later clarified that he wants people to have plenty of RAM in their own computers. We're at the point where even how RAM gets allocated has become a public argument.
We've gotten used to using more RAM
AI is driving demand. Our software has gotten pretty bloated, too.
For years, we haven't had much reason to care about memory efficiency except in specialized situations. We keep adding frameworks, dependencies, background services, runtimes, abstraction layers, and whatever else makes development easier. Sometimes those choices make perfect sense. Developer time has a cost, too, and a framework that saves weeks of work can easily justify using a little more RAM. But when you make enough of those decisions, the overhead starts adding up.
Think about a small web service. It might have a fairly straightforward job, but it runs inside a fairly substantial application framework, loads dozens or hundreds of dependencies, and brings along a runtime and a bunch of other things that have little to do with what that service actually needs to accomplish. Break it into several services, each with its own copy of that overhead, and a modest application can end up using quite a bit of memory just to sit there waiting for requests.
Desktop operating systems have followed a similar pattern. There's nothing inherently wrong with a modern desktop doing more than an older one did, but we've accepted a tremendous amount of background activity and memory consumption as normal. Some of that extra software isn't doing much for us.
I don't think every application needs to be rewritten in C++ or that we should go back to counting every byte. But I do think we've lost some discipline around resource consumption. When memory was inexpensive, we could afford to ignore a lot of that overhead.
Rethinking some of my own software
I've been doing that with some of my own applications. I've started paying more attention to how much RAM they use and whether the framework or language I'm using is a good fit for what the application needs to do. Sometimes a heavy framework is justified. Other times I'm using a lot of machinery for something that really doesn't require it.
I've been gravitating toward Go, particularly for services and backend applications. I like it because I can build a native executable with relatively little runtime baggage, and the language is straightforward enough that development doesn't turn into an exercise in low-level systems programming. I don't have to become a Rust or C++ expert just to write something reasonably efficient. Go still has garbage collection and its own runtime, of course, but it's a useful middle ground between developer productivity and controlling resource use.
I've been looking at some Node.js applications and asking whether they really need to be Node.js applications. I'm not claiming that every Go program uses less memory than JavaScript, Java, or .NET. A well-written application in any of those languages can be efficient. The framework, dependencies, workload, caching, and process model all matter. In some cases the sensible answer is to refactor the application you already have rather than move it to another language.
If I can deliver the same functionality with a simpler runtime, fewer dependencies, and a much smaller memory footprint, why wouldn't I at least consider it? That can mean more applications running on the same hardware, smaller cloud instances, or simply getting a few more years out of a machine that's otherwise perfectly capable of doing the job.
I'm looking at operating systems the same way. I already use Linux quite a bit, but lately I've been favoring more minimal distributions, especially for servers. Alpine Linux has been a favorite because it's a small, fairly straightforward foundation for a service. It gives me what I need without a lot of extras. There are tradeoffs, particularly around musl compatibility and available packages, so it isn't the answer to everything. A smaller container image doesn't guarantee lower RAM use. I like starting with what the workload needs and adding only what makes sense.
On desktops, I've come back around to lightweight Linux environments such as Xfce. I want a desktop that handles the usual things well, without consuming a huge chunk of the computer's resources just to present windows, menus, and a taskbar. The hardware doesn't have to be new or particularly powerful if the software isn't constantly getting in its way.
AI can actually help with this
AI is helping drive the demand for RAM, and I'm also using it to help make software more efficient.
One thing I've found AI to be pretty good at is taking an existing application and helping reimplement it in another language or framework. I can take a service written in Node.js, give an AI coding tool the code and its requirements, and ask it to produce an equivalent implementation in Go. That used to mean a lot of mechanical work, particularly with numerous API endpoints, data models, and integrations. AI can do a surprising amount of that translation.
A rewrite isn't always necessary. I can ask it to examine the dependency tree, look for unnecessary allocations, identify expensive patterns, or suggest ways to reduce the application's memory usage. It can help generate tests to compare the old implementation against the new one. That's more useful than asking it to make the code faster. I can measure the result.
A rewrite won't necessarily improve performance, and AI-generated code still needs review. An application may look simpler while doing something subtly different, especially around concurrency, error handling, authentication, or data access. A migration can also cost far more in engineering time than it ever saves in RAM. I still need regression tests, benchmarks, and enough understanding of the code to know whether the change was worth making.
I also don't want to optimize for the wrong number. An application using memory for an effective cache may be doing exactly what it should. A low idle-memory figure doesn't tell me what happens under load. I'd rather look at actual resident memory, what happens when concurrency increases, whether the application starts swapping, and how much useful work I can get out of a given machine. There are cases where deliberately using more memory makes an application faster and cheaper to operate overall.
I'm now looking at memory use when I make architecture decisions. I still care about functionality, maintainability, reliability, and developer productivity. But I also want to know what it costs to run the software and whether I'm spending resources on things that add any value.
I don't have much control over how much RAM the AI industry buys or what the memory manufacturers charge for it. I do have some control over how efficiently the software I build uses the resources available to it. So I'm going back through some of those applications, measuring their footprints, and reconsidering a few choices I probably wouldn't have questioned a couple of years ago. Some of them will stay exactly as they are. Others may get a smaller framework, a lighter operating system, or a rewrite in Go. I think it's time to start paying attention to RAM again.
Further reading
- Raspberry Pi, 16GB Raspberry Pi 5 launched at $120
- Raspberry Pi, November 2026 price increase for the 16GB model
- TrendForce, Q4 2026 memory contract price outlook
- IDC, the memory shortage's impact on PCs and smartphones
- The Verge, Sam Altman's clarification about PC memory
- Go documentation, a guide to the garbage collector
- Alpine Linux, About