Compilers Were Never Homomorphic Encryption's Problem
HEIR's polish improves FHE ergonomics, but the field's real bottleneck is a compute tax no compiler can compile away.
Every few years the encrypted-computing crowd rediscovers the same hope: that friction, not physics, is what has kept homomorphic encryption out of production. A better compiler, a friendlier IR, a way to write normal-looking code that quietly becomes lattice arithmetic underneath — do that, the thinking goes, and adoption follows. HEIR is a well-built instance of that hope. It is also not going to be the one that ends the wait, and it's worth being precise about why.
The bottleneck was never syntax
Fully homomorphic encryption schemes — BGV, BFV, CKKS, the TFHE family — have had usable libraries for close to a decade: Microsoft SEAL, IBM HElib, PALISADE, Zama's Concrete. None of them lacked an API. What they lacked, and still lack, was speed. Depending on the scheme and the operation, FHE workloads run somewhere between three and five orders of magnitude slower than their plaintext equivalents, with ciphertext expansion adding memory and bandwidth costs on top. That gap is not a tooling defect. It is the price of doing arithmetic on numbers wrapped in noise that grows every time you touch them, requiring periodic "bootstrapping" operations that are themselves expensive homomorphic computations. A compiler can schedule that noise budget more cleverly, fuse operations, pick better rotation keys, and shave a meaningful constant factor off the total. It cannot make the underlying multiplication cheap. HEIR, built on Google's MLIR infrastructure, is aimed squarely at that scheduling and lowering problem — genuinely useful systems work, and harder than it looks — but the framing that keeps attaching to projects like it, that better developer experience is the unlock, has been wrong every previous time it was made.
A decade of "just wait for the tooling"
This is a pattern with a history. Quantum computing went through the identical phase: once qubit counts stalled and error rates refused to cooperate, the industry's attention rotated toward compiler stacks — Qiskit, tket, Cirq — that made it easier to write circuits for hardware that still couldn't run them at useful scale. The tooling was excellent and the fundamental constraint didn't move an inch until the hardware and error-correction work caught up years later. WebAssembly told a milder version of the same story: a beautifully designed compile target that took years to matter because the bottleneck was never "can you compile C to a portable bytecode," it was runtime integration and ecosystem gravity around JavaScript. In each case, tooling investment was mistaken, in the retelling, for progress on the actual constraint. It's an understandable mistake, because tooling is legible and shippable in a way that "we need the underlying primitive to get five times faster" is not. You can cut a release of a compiler. You cannot cut a release of a cheaper NTT.
Who actually buys encrypted compute
Suppose HEIR succeeds completely at its own goal: a developer writes ordinary-looking code and gets correct, reasonably optimized FHE out the other end, no cryptography PhD required. Who is that for? Not general application developers wanting default privacy — a hundred-to-ten-thousand-times slowdown rules out anything latency-sensitive or high-volume. It's for a narrow band of use cases where the slowdown is tolerable because the alternative is legally or contractually impossible: cross-institution genomic matching, multi-party financial fraud analytics, government data-sharing arrangements bound by statute. That's a real market, but it's a compliance market, and compliance markets are dominated by whoever can sell a managed, indemnified product to a risk-averse enterprise buyer — which in practice means the cloud vendors, not an open ecosystem of independent developers building on a shared compiler. Good tooling here mostly lowers Google's and Microsoft's own cost of building FHE-as-a-service offerings. That's a legitimate reason for Google to fund HEIR. It's a different claim than "this broadens who can use encrypted computation," and the two get conflated constantly.
The MLIR land grab, and the honest counter-argument
There's a broader trend worth naming: MLIR has become the default answer to almost every domain-specific compiler problem — ML graphs, quantum circuits, now FHE schemes — because building a retargetable IR on shared infrastructure is cheaper than building a bespoke compiler from scratch. That's a genuine efficiency gain for compiler teams, and it means the differentiating work in FHE is quietly moving down-stack, into scheme selection and hardware acceleration: DARPA's DPRIVE program and a handful of startups building FHE-specific ASICs are, more than any compiler, where an order-of-magnitude improvement is plausible in this decade.
The strongest objection to all this is that tooling is a genuine precondition even when it isn't sufficient — nobody wrote production CUDA against raw PTX, nobody built the Ethereum ecosystem on hand-assembled EVM bytecode, and in both cases better compilers preceded rather than followed the applications that made the platform matter. That's fair, and it's the reason HEIR is worth funding rather than worth mocking. But there's a real cost to letting "necessary" get quietly upgraded to "sufficient" in the public narrative: it's an easy way to keep declaring progress on a field whose hard constraint hasn't moved, and it directs attention and funding toward the part of the problem that's pleasant to work on instead of the part that's expensive and slow.
The real signal is the six points
A well-documented update on a serious project drawing six points on Hacker News says something too. It isn't that the work is unimportant — MLIR-based compiler engineering rarely trends regardless of merit. But it's a useful marker of where the developer-attention economy actually sits in 2026: FHE had its moment as the privacy-tech story everyone name-checked around 2020–2022, and the discourse oxygen has since gone almost entirely to model context protocols and agent tooling. The underlying compute-tax problem in FHE is exactly as unsolved as it was then. The compilers have simply gotten quieter about admitting it.
Sources & further reading
The analysis above is our own. The underlying reporting and primary documents are credited here.