HN 精选

CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”

CppCon
13 人推荐 · 跨 10 个月 · 2016–2024
系统编程语言(C/C++、Rust、Go)复古计算与 Demoscene编译器、解释器与程序分析
CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”

中文导读

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 上的提及

rec voltagex_ · 2016-10 · HN 原文
C++17 for the Commodore 64.
critical fredsanford · 2016-10 · HN 原文
Take a look at the useless features and bloat in this video.
rec beached_whale · 2016-10 · HN 原文
Cool presentation too, and uses Godbolt's tool
reference scoopr · 2016-10 · HN 原文
Approach converting x86 asm to 6502 asm.
strong_rec dmit · 2016-10 · HN 原文
there is a wonderful talk by Jason Turner about writing a simple Pong clone for the Commodore 64 in modern C++

相关视频