跳到正文
Leo· 来源· @Leo100x · X·· 15 小时前精选AI 评分80
推荐理由

展示了Claude Code在复杂逆向工程与跨平台移植中的极限能力,为AI辅助开发提供了具体参考。

正文 · 原文

THIS IS INSANE

someone just ported battlefield 1942 to the browser with claude code

nobody had ever ported it before

@levelsio tried 6 months ago and gave up

this time he asked opus 5.5:
"can you try port the BF1942 demo in this folder to web"

what claude code did:

- disassembled the raw machine code into 57,000 x86 functions

- translated each one into C

- output 100,000 lines of C

- compiled it to webassembly

- rewrote ~300 windows + direct3d calls for webgl 2

- built its own websocket network stack for multiplayer

cost: about 1m output tokens. roughly $100 at api prices, on a $100/mo claude plan

the catch: it's the free shareware demo, not the full game

𝗻𝗼 𝗼𝗽𝗲𝗻 𝘀𝗼𝘂𝗿𝗰𝗲 𝗲𝗻𝗴𝗶𝗻𝗲. 𝗻𝗼 𝗽𝗿𝗶𝗼𝗿 𝗽𝗼𝗿𝘁.

the "too hard for ai" list keeps getting shorter

https://x.com/levelsio/status/2117374984192512391 https://x.com/levelsio/status/2117374984192512391/video/1

来源:Leo · x.com