← 返回技术雷达
Hacker News tech

Beating the compiler (2024)

Hacker News 热议:Beating the compiler (2024)(57 赞 / 38 评论,来源 mattkeeter.com)

原文开头节选

In modern times, everyone knows that writing assembly is a fool’s errand: compilers are the result of literal engineer-centuries of work, and they know the processor much better than you do.

Written in ancient tomes , muttered in quiet watering holes , scrawled on the walls of bygone temples , hinted at by mysterious texts ; the rumors paint a specific picture:

Compilers are bad at generating code for interpreters, and it’s possible to outperform them by writing your interpreter in assembly.

I recently wrote a fast interpreter for the Uxn CPU , a stack-based architecture with 256 opcodes. The interpreter is a simple loop which reads a byte from RAM then selects the appropriate instruction:

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(57 赞 / 38 评论,来源 mattkeeter.com)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务