While I wait for another phase of the competition to develop a multicycle RISC-V processor on an FPGA to come to an end, I decided to look at the other side of the table. After spending weeks counting clock cycles, analysing bus hazards, and optimising register use so that the CPU makes physical sense, opening a desktop messaging app and seeing a collection of processes devour gigabytes of RAM feels deeply unsettling.

The truth is that modern developers have grown used to working under the illusion that users’ hardware is an infinite resource.

There is a brutal historical contrast in our profession. Decades ago, engineers worked under a microscope: with just 2 MB of RAM in consoles such as the PlayStation 1 or Super Nintendo, they created entire 3D worlds, optimising every byte and calculating matrices by hand. Today, with 16 GB or 32 GB of RAM and eight-core processors running above 4.0 GHz, software development at many companies has come to resemble blunt, careless work — piling abstraction upon abstraction to draw a simple text chat box.

Calling this bloatware is easy. It is more interesting to investigate what consumes resources, why it does, who benefits from that choice, and who ultimately pays the bill.


1. What Is Bloatware? The Selfish Software

The term bloatware also refers to unwanted programs preinstalled by computer and phone manufacturers. Here I am discussing a software engineering problem: applications whose resource use, execution time, and complexity grow by orders of magnitude beyond the actual value delivered by their primary task.

This is selfish software: software that acts as if the customer’s machine exists for it alone. It allocates enormous arrays in RAM, starts dozens of background tasks, and loads entire web browser runtimes to solve trivial problems.

There is no magic number of megabytes separating lean software from bloated software. A serious analysis compares the same task under controlled conditions, looking at:

  • Startup time (cold start and warm start);
  • Responsiveness to user input (UI latency);
  • Private and shared memory allocated at rest and under load;
  • Unnecessary CPU use and GPU cycles;
  • Energy consumption and battery impact on mobile devices.

A screenshot of Windows Task Manager or Linux htop is a starting point. It is not a verdict, but it can reveal the anatomy of waste.

flowchart LR
    A["User Task (e.g. Send a Message)"] --> B["Essential Work (Logic + UI)"]
    A --> C["Optional Features (Animations, Telemetry)"]
    A --> D["Runtime Overhead (Embedded Browser, GC, JIT)"]
    A --> E["Avoidable Waste (Memory Leaks, Re-renders)"]

    B --> F["Resources Consumed"]
    C --> F
    D --> F
    E --> F

    F --> G["Time · RAM · Battery · CPU Cycles"]

    classDef necessary fill:#d9f1e5,stroke:#438364,color:#173b2a
    classDef optional fill:#e2ecfb,stroke:#5577a2,color:#193452
    classDef waste fill:#fae2db,stroke:#b45b47,color:#51241a
    class B necessary
    class C,D optional
    class E waste

2. The Foundations: Wirth’s Law and the Physics of Waste

Software bloat is not an inevitable consequence of modernity; it is a symptom of abandoning engineering rigour.

Wirth’s Law

In 1995, computer scientist Niklaus Wirth formulated what became one of technology’s most uncomfortable laws:

“Software gets slower faster than hardware gets faster.”

While Moore’s Law and advances in microelectronics gave us nanometre-scale transistors, NVMe SSDs, and gigabytes of affordable memory, software efficiency regressed at a similar rate. The abundance of resources removed the pressure on developers to think about what they consumed.

The Physics of Hardware vs. Inefficient Software

What happens inside a machine when we replace compiled native code with heavy stacks of abstraction?

  1. CPU cache misses (Instruction Cache Misses): Modern processors depend heavily on their L1 and L2 caches to keep the pipeline full. Compact compiled code can fit in the instruction cache. Massive runtimes such as Chromium/V8 have such a large code footprint that they cause repeated cache misses, forcing the CPU to fetch instructions from RAM and losing hundreds of clock cycles per access.
  2. Competing garbage collectors (GC): If you keep four JavaScript/Node-based applications open, you have four V8 engines running their own garbage collectors. Each collector periodically scans its heap, competing for CPU cycles and introducing small pauses during execution.

Dijkstra’s Provocation

In “On the Cruelty of Really Teaching Computing Science” (EWD1036), Edsger W. Dijkstra sharply criticised the transformation of computing education into mere operational training for the job market.

Dijkstra argued that programming is an exercise in logical rigour and strict mathematical control over the machine. When universities produce “assembly technicians” — professionals who can connect blocks of code without understanding the execution costs beneath the abstractions — the industry loses its ability to ensure efficiency. The result is software developed through trial and error.


3. The Economics of the Problem: Startup Survival vs. Complacency at Scale

To understand the root causes of software bloat, we need to distinguish the reality of small companies from the dynamics of large corporations.

The Startup Reality: A Means of Survival

It would be naive and unfair to expect a startup with three or four developers to hire 20 specialists to build, maintain, and test separate native codebases for iOS, Android, Windows, macOS, and Linux.

In that context, reusing code through cross-platform frameworks such as Electron, React Native, or Tauri is not engineering laziness; it is what makes the product possible. Without these frameworks, a small company may simply be unable to ship its software or validate its idea before it runs out of money. Choosing heavier abstractions early on can be legitimate economic pragmatism.

flowchart TD
    subgraph SmallCompany["Startups & Small Teams (Survival)"]
        A1["Limited Budget and Team"] --> A2["Code Reuse with Cross-Platform Frameworks"]
        A2 --> A3["Product Reaches the Market"]
    end

    subgraph LargeCorporation["Big Tech & Scale (Complacency)"]
        B1["Thousands of Developers & Billions in Cash"] --> B2["Indefinite Maintenance of Heavy Runtimes"]
        B2 --> B3["Execution Cost Passed on to Users"]
    end

    classDef startup fill:#d9f1e5,stroke:#438364,color:#173b2a
    classDef bigtech fill:#fae2db,stroke:#b45b47,color:#51241a
    class SmallCompany startup
    class LargeCorporation bigtech

Complacency at Scale and the Externalised Cost

The real problem appears when the product scales, the company reaches a valuation in the billions, hires hundreds of engineers, and continues to treat a provisionally heavy runtime as its permanent architecture.

For large companies in winner-take-all markets, the rush to create network effects replaces a commitment to technical quality. The company saves time and payroll during maintenance while passing the execution bill on to users:

  • The company captures the benefit of shipping faster;
  • Users pay through RAM consumption, frozen machines, shorter battery life, and the need to replace their computers sooner.

4. The Anatomy of Bloat: A Look at the Frameworks

To understand how inefficiency materialises, we need to examine the engineering behind some of the most popular cross-platform frameworks.

A. Electron (Desktop)

Electron made it possible to build desktop applications with web technologies (HTML, CSS, and JavaScript). Its execution model, however, imposes an expensive baseline.

It combines Chromium (for interface rendering) with Node.js (for operating system access). It uses Chromium’s multiprocess architecture:

flowchart LR
    subgraph ElectronApp["Electron Application"]
        MAIN["Main Process (Node.js)<br/>Lifecycle and Native APIs"] <-->|"IPC (Inter-Process Communication)"| PRE["Preload Script<br/>Security Boundary"]
        PRE <-->|"Controlled Calls"| R1["Renderer 1<br/>Main Window (Chromium)"]
        MAIN <-->|"IPC"| R2["Renderer 2<br/>Secondary Window / Worker"]
        AUX["Auxiliary Processes<br/>GPU, Network, Audio"]
        R1 --> AUX
        R2 --> AUX
    end
    ElectronApp --> OS["Operating System<br/>(RAM · CPU · GPU)"]

    classDef core fill:#e2ecfb,stroke:#5577a2,color:#193452
    classDef ui fill:#d9f1e5,stroke:#438364,color:#173b2a
    classDef cost fill:#fae2db,stroke:#b45b47,color:#51241a
    class MAIN,PRE core
    class R1,R2 ui
    class AUX,OS cost

The baseline-cost problem: If you keep four Electron applications open (for example, VS Code, Slack, Discord, and Spotify), you are not running four lightweight applications. You are running four complete, independent Chromium browsers in the background, each duplicating V8 engine instances, layout managers, rendering pipelines, and process structures.

B. React Native (Mobile)

On mobile, React Native aims to reuse JavaScript/TypeScript logic while rendering native components on iOS and Android.

In its modern architecture, the JavaScript engine communicates with native code through the JSI (JavaScript Interface), with Fabric handling rendering and TurboModules exposing hardware APIs.

flowchart LR
    JS["Logic and State<br/>(JavaScript / V8 / Hermes)"] <-->|"JSI (C++)"| CORE["Shared Layer<br/>(C++)"]
    CORE --> TM["TurboModules"] --> API["Native APIs<br/>(Camera, Bluetooth, Sensors)"]
    CORE --> FAB["Fabric"] --> VIEW["Native UI Components<br/>(UIView / Android View)"]

    classDef code fill:#e2ecfb,stroke:#5577a2,color:#193452
    classDef native fill:#d9f1e5,stroke:#438364,color:#173b2a
    class JS,CORE code
    class TM,FAB,API,VIEW native

The problem: Although JSI removes the old JSON serialisation queue of the legacy Bridge, it does not remove the overhead of running a JavaScript engine (Hermes/V8) alongside the platform’s native runtime. If the JavaScript code performs heavy state reconciliation or handles enormous lists without virtualisation, the application will still stutter.

C. Ionic and Capacitor (Mobile)

Ionic uses Capacitor to package a web application inside a WebView supplied by the operating system itself.

flowchart LR
    TOUCH["User Touch"] --> WEB["System WebView<br/>(HTML / CSS / JS)"]
    WEB --> DOM["DOM Manipulation, Layout, and Rendering"] --> SCREEN["Screen"]
    WEB <-->|"Capacitor Bridge"| PLUG["Native Plugin"] <-->|"OS APIs"| DEV["Device Features"]

    classDef ui fill:#d9f1e5,stroke:#438364,color:#173b2a
    classDef bridge fill:#e2ecfb,stroke:#5577a2,color:#193452
    class WEB,DOM,SCREEN ui
    class PLUG bridge

The problem: Because the entire interface runs inside an embedded browser, complex animations, direct manipulation of large DOM trees, or heavy rendering depend on what the device’s WebView engine can handle. On mid-range devices, that can become visible stutter.


5. Real Case Studies: When the Architecture Could No Longer Bear Its Own Weight

Case 1: Microsoft Teams — An Admission of Failure

Microsoft Teams is an emblematic case. The original Teams client was built on Electron and AngularJS. As features accumulated, the application became notoriously heavy, easily using more than 2 GB of RAM and taking tens of seconds to open.

In 2023, Microsoft was forced to announce a complete rewrite: the new Teams replaced the classic foundation with a native host coupled to Edge WebView2 and React.

flowchart LR
    A["Classic Teams<br/>(Electron + AngularJS)"] -->|"Performance Failure and Rewrite"| B["New Teams<br/>(Native Host + WebView2 + React)"]
    B --> C["Official Preview Metrics:<br/>· Joining meetings ~2× faster<br/>· Memory use down ~50%"]

    classDef before fill:#fae2db,stroke:#b45b47,color:#51241a
    classDef after fill:#d9f1e5,stroke:#438364,color:#173b2a
    class A before
    class B,C after

The lesson: That one of the world’s largest technology companies had to spend millions of dollars rewriting the application from scratch proves that the original architecture was unsustainable. The convenience of the initial choice came due as technical debt and user frustration.

Case 2: Discord — The Continuing Fight for Hardware Resources

Discord faces a particular challenge: its application must run in the background while the user plays a demanding 3D game that can push the CPU and GPU to their limits.

In its engineering reports, Discord has described several strategies for working around Electron’s bottlenecks:

  • Code splitting and lazy loading (2018): Modules load on demand to improve startup time.
  • A Chromium memory cap: The team imposed allocation limits on the web engine to keep the chat client from consuming RAM needed by games.
  • A move to 64-bit: The old 32-bit version would sometimes reach its process memory limit and crash.
  • The September 2026 update: Upgrading and tuning Electron brought a ~17% reduction in median CPU use, at the cost of a ~4% increase in median memory use.
flowchart LR
    GOAL["Goal: Run Alongside Demanding Games"] --> S1["Lazy-Load Modules"]
    GOAL --> S2["Limit Chromium's Heap"]
    GOAL --> S3["Tune Electron Rendering"]

    S1 --> R1["Faster Startup"]
    S2 --> R2["Leaves Memory for the Game"]
    S3 --> R3["Trade-off: Less CPU vs. More RAM"]

    classDef action fill:#d9f1e5,stroke:#438364,color:#173b2a
    class S1,S2,S3 action

Discord’s case shows that making an Electron application run acceptably requires an enormous engineering effort — effort often spent fighting the limitations of the framework itself instead of adding direct value to the product.


6. AI Acceleration and the Jevons Paradox of Code

As AI-based coding assistants and LLMs advance, the discussion about bloatware gains a new and potentially dangerous dimension.

The Jevons Paradox

In economics, the Jevons paradox describes how making a resource cheaper or more efficient to use can increase its total consumption rather than reduce it.

Applied to modern software development:

  1. Generating code became cheap: With language models, a prompt can produce new screens, routines, and third-party package integrations in seconds.
  2. The volume of code surged: As the cost of writing code approached zero, teams began packing far more code, libraries, and abstractions into each development cycle.
flowchart LR
    AI["AI Reduces the Cost of GENERATING Code"] --> VOL["Much More Code and More Dependencies"]
    VOL --> BOTTLE{"Where Is the New Bottleneck?"}

    BOTTLE -->|"No Measurement"| BLOAT["Dead Code Accumulates and Binaries Grow"]
    BOTTLE -->|"Performance Budget"| OPT["Use AI to Refactor and Optimise"]

    classDef risk fill:#fae2db,stroke:#b45b47,color:#51241a
    classDef good fill:#d9f1e5,stroke:#438364,color:#173b2a
    class BLOAT risk
    class OPT good

The Bottleneck Moves

Generating code has become a commodity. The real engineering bottleneck has shifted to the ability to audit, measure, and profile what actually runs.

If a team spends the time saved by AI merely approving more pull requests without measuring their memory footprint or CPU use, AI becomes a bloatware amplifier. Generated code does not get an exemption from the laws of physics simply because it appeared quickly on a screen.


7. Fighting Back: Where Engineering Needs to Go

Fortunately, a growing part of the software community is pushing back against this culture of waste.

The Age of Rust, Zig, and High-Performance Languages

Languages such as Rust and Zig are leading a revival of lean systems. They offer memory safety without requiring a heavy garbage collector, making it possible to build modern interfaces that work close to the processor’s instructions.

Lighter Alternatives to Electron: Tauri

Projects such as Tauri have transformed cross-platform desktop development:

  • Rather than packaging all of Chromium inside the binary, Tauri uses a backend compiled in Rust and the operating system’s native WebView (such as WebKit on macOS or WebView2 on Windows).
  • The result: Binaries occupying 10 MB to 15 MB of disk space and consuming a fraction of the RAM of a comparable Electron application.

High-Performance Editors: The Case of Zed

While VS Code (Electron) needs hundreds of megabytes of RAM just after startup, newer projects such as the Zed editor demonstrate what real engineering looks like:

  • Written from scratch in Rust;
  • UI rendered directly on the GPU (Metal / Vulkan) through a custom pipeline in C++;
  • Nearly instant startup and memory use in the tens of megabytes.
Characteristic NATIVE / Optimised Software (e.g. Zed / Sublime) BLOATED Software (e.g. Traditional Electron)
Language / Foundation Rust / C++ / Native GUIs JavaScript / Node.js + Chromium
Binary Size ~10 MB–30 MB ~150 MB–500 MB
Initial RAM Use ~30 MB–80 MB ~400 MB–1.5 GB
Rendering Direct GPU / OS-Level DOM Layers / Browser Engine
Garbage Collector None (Direct Management / Ownership) Multiple Competing GCs (V8 Engine)

8. Making the Thesis Testable: Performance Budgets

If we call software bloated, we need to demonstrate its inefficiency with empirical, reproducible methods.

A serious measurement exercise requires:

  1. A defined journey: Choose a clear task (for example, open the app, sign in, send a text message, and close it).
  2. A controlled environment: Use the same machine and operating system version, and account for network activity.
  3. Key metrics:
    • Private memory (Private Bytes): Memory allocated exclusively to the process, excluding pages shared by the OS.
    • Instructions per cycle (IPC) and cache misses: Monitor them with tools such as perf on Linux or Instruments on macOS.
    • p95 UI latency: Ensure that 95% of interactions respond in less than 16 ms (60 FPS).

Defining a Performance Budget

Mature teams do not leave resource use to chance; they define a non-negotiable performance budget during architectural design:

“This chat application must use no more than 120 MB of RAM at rest and no more than 5% of a single CPU thread during voice calls.”

If a new pull request exceeds that budget, the CI/CD build fails. Performance becomes a product requirement rather than something to think about “later”.


9. Conclusion: Respecting Hardware Again

Cross-platform frameworks were created to solve a real and legitimate problem: helping small teams and startups build viable products for multiple platforms. Recognising the value of that initial viability does not mean accepting persistent inefficiency once the product reaches scale.

The idea that customers’ hardware is an infinite resource is an illusion maintained by companies that would rather save on architectural maintenance than deliver a genuinely optimised product. The user’s machine resources — RAM, clock cycles, temperature, battery life — are real assets that deserve respect.

We do not need to write every application in Assembly or plain C to show that respect. We need to understand the cost of the abstractions we choose early on, evolve the architecture as the product grows, and reject a culture of software complacency.

As engineers and developers, our role is not merely to assemble ready-made parts. It is to make sure that every byte allocated in memory and every CPU cycle spent has a real purpose.


In your day-to-day development, is software efficiency still treated as an architectural requirement, or has the urgency of time to market swallowed it? Share your perspective in the comments.