PulseAugur
实时 14:32:04
English(EN) Daring coder gets Doom running with regular expressions at 180 seconds per frame, like playing 'correspondence chess with a shotgun' — nearly 14 million substitutions to render a frame at 80,000 substitutions per second

《毁灭战士》通过正则表达式运行,展现极致编程壮举

一位名叫Artem Lytkin的程序员仅使用正则表达式成功运行了经典电子游戏《毁灭战士》。这种非常规方法涉及一个96MB的文本文件,通过复杂的文本匹配和替换操作来模拟游戏硬件,包括寄存器和内存。虽然功能齐全,并且产生的输出与原版游戏逐字节相同,但该过程极其缓慢,渲染每一帧大约需要180秒,需要近1400万次替换。 AI

影响 通过重新利用文本匹配工具来执行游戏,展示了极致的计算创造力。

排序理由 这是一个利用现有软件和常用工具(正则表达式)以非常规方式实现的利基编程壮举,并非新产品或前沿发布。

在 Tom's Hardware 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

《毁灭战士》通过正则表达式运行,展现极致编程壮举

报道来源 [1]

  1. Tom's Hardware TIER_1 English(EN) · Bruno Ferreira ·

    Daring coder gets Doom running with regular expressions at 180 seconds per frame, like playing 'correspondence chess with a shotgun' — nearly 14 million substitutions to render a frame at 80,000 substitutions per second

    Daring coder gets Doom running with regular expressions at 180 seconds per frame by using one text string to the machine, engine, and video output