首页›Matt Godbolt›文章

How Compiler Explorer Runs on AWS in 2026

Matt Godbolt · 2026年8月5日

AI 摘要 AI 生成,可能有误

本文介绍了 2026 年 Compiler Explorer 在 AWS 上的运行方式:浏览器流量经由 CloudFront 和 WAF 到达一个 Application Load Balancer(应用负载均衡器),由其路由到以廉价竞价型实例(spot 实例)为主的蓝绿自动扩缩容集群;而其覆盖 93 种语言、约 6000 个从不删除的编译器二进制文件,则通过一个自定义的内容寻址镜像系统(CEFS)存储在 EFS 上,该系统大幅缩短了启动时间。每晚的编译器构建(nightly builds)在自托管的 GitHub Actions EC2 runner 上运行;部分部署的“CE Router”最终将把 HTTP 处理与编译解耦;而 DynamoDB、S3 和 Lambda 等服务则负责处理短链接、缓存以及各种零碎事务。过去一年,该网站共处理了 7870 万次编译,每月成本约 3600 美元(每次编译约 0.0007 美元),这些成本主要由 AWS 开源资助积分和赞助商承担;不过网站流量一直在下滑,作者也无法完全解释原因,因为该网站刻意不追踪用户。

Written with LLM assistance.
Details at end.

I've been meaning to write an update on how Compiler Explorer actually runs on Amazon's cloud, and it's been sat on my list for a good while now, somewhere behind the other random things that take up what laughably I refer to as my spare time1.

The last time I wrote about this was 2016, when the whole site was a load balancer, a couple of instances and some Docker containers I built on my laptop. I wrote a much longer how it works last summer, but that one is mostly about Compiler Explorer and only incidentally about the cloud it sits on.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Matt Godbolt

Advent of Microarchitecture 2026

AI 摘要The author announces the Advent of Microarchitecture 2026, a YouTube series in lieu of the previous Advent of Compiler Optimisations, which was too time-consuming (about 10 hours per episode) to produce again. The new series consists of low-effort, ad-libbed videos recorded straight to camera with minimal editing, some help from an LLM, and as much automation as possible. The introduction video is already available, and daily videos will be released each morning throughout December.

Recreating a 2010 Experiment

AI 摘要The author recounts recreating a fun 2010 experiment from their Google days, when they hooked a BBC Master up as a dumb terminal over serial to browse the web, jokingly claiming to be the only person who googled Google on a BBC Micro from inside Google. Since Google no longer supports non-JavaScript browsers like lynx, they used DuckDuckGo's lite mode at home, working around cabling mistakes, the inadequate built-in *TERMINAL program, and baud rate limits to get the setup running with the Acornsoft Termulator ROM. Along the way they also improved jsbeeb's audio and video emulation using feedback from their PALindrome PAL decoder, making it more authentic even if it sounds and looks objectively worse.

Walking the dog with Claude

AI 摘要The author, Matt, recounts interviewing himself with Claude (dictating via voice-to-text) during a dog walk about the gap between accurate-but-impenetrable technical content and polished-but-slightly-wrong material. He discusses his explanation philosophy—including his 'tell my mum' test, childhood mental models from Usborne books, and the real costs in hours or conceptual distillation that explain his infrequent video output—and admits his motivations range from showing off to the joy of someone finally understanding. He concludes that Compiler Explorer shares the same impulse as his videos and talks, and notes that the LLM-as-interviewer experiment sent him home with a new thought, which is more than most dog walks achieve.

2025 in Review

AI 摘要In his 2025 year-in-review, Matt Godbolt recounts a busy year featuring numerous conference talks and keynotes, appearances in Computerphile videos, and Compiler Explorer milestones such as solving the CEFS mounting problem and launching the experimental Claude Explain feature. He also kept up his monthly Two's Complement podcast, appeared in a Tom7 video, and produced a 27-video Advent of Code Optimisation YouTube series. The year ended with him starting a new job at Hudson River Trading, where he is delighted with the technology, interesting problems, and kind colleagues.

Thank you

AI 摘要This final post of Matt Godbolt's Advent of Compiler Optimisations 2025 series, published on the 25th, offers holiday wishes and reflects on the substantial work involved in producing the 25-day series on compiler optimizations, noting possible future follow-ups if time allows. He thanks numerous contributors—including Jason Turner, his reviewers and video-production mentors, compiler maintainers, Compiler Explorer's patrons and volunteer team, and especially his wife Ness—for their support throughout the project.