Opus 5.5 用 185 行 JS 渲染星系碰撞
作者让 Claude Opus 5.5 用 185 行 JavaScript 写出两个星系十亿年碰撞的引力模拟,含物理、3D 相机、辉光与字幕,除 ffmpeg 外无任何库,22 秒 1080p 视频在 Mac 上渲染 100 秒。
Two galaxies collide over a billion years. 60,000 stars, and the only force in the code is gravity. The tails come from tides. Each galaxy pulls harder on the near side of the other's disk than on the far side, and the rim stars get stretched into long streams. Alar and Juri Toomre worked this out in 1972 and used it to explain the tails of the Antennae galaxies. Claude Opus 5.5 wrote the whole thing in 185 lines of JavaScript: the physics, the 3D camera, the glow, the titles. No libraries except ffmpeg for encoding. 22 seconds of 1080p video render in 100 seconds on my Mac.
这条是引用着另一条写的:「用 Opus 5.5 做的 3D 基因组编辑可视化界面」