CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”
13 人推荐 · 跨 10 个月 · 2016–2024

中文导读
Jason Turner 在 CppCon 2016 上的高口碑演讲。他用 C++17 为古老的 Commodore 64 现场编写了一款简易游戏,展示现代编译器如何借助 constexpr 与 const 把现代抽象彻底消除,直接生成极致紧凑的 6502 汇编指令。
为什么 HN 推它
程序员圈里百看不厌的常青神作,生动证明了富有表现力的现代 C++ 绝非性能负担,哪怕在算力逼仄的复古硬件上也能榨出极致性能。
「Jason Turner 有场非常精彩的演讲,讲的就是用现代 C++ 为 Commodore 64 写一个简易 Pong 弹球游戏。」HN 网友原话:there is a wonderful talk by Jason Turner about writing a simple Pong clone for the Commodore 64 in modern C++
英文原摘要(HackerTube / Claude 整理)
Jason Turner's CppCon 2016 talk builds a simple Commodore 64 game using C++17, showing how constexpr and const let a modern compiler produce tight 6502 code. He walks through assembly output to show abstractions being optimized away.
A perennial favorite, recommended as proof that expressive modern C++ can compile to efficient code even on tiny retro hardware.
HN 上的提及
C++17 for the Commodore 64.
Take a look at the useless features and bloat in this video.
Cool presentation too, and uses Godbolt's tool
Approach converting x86 asm to 6502 asm.
there is a wonderful talk by Jason Turner about writing a simple Pong clone for the Commodore 64 in modern C++