通过现代编程智能体实现新旧应用更替,作者:陶哲轩
Old and new apps, via modern coding agents by Terry Tao

原始链接: https://terrytao.wordpress.com/2026/07/11/old-and-new-apps-via-modern-coding-agents/

自1999年起,我便开始探索利用数字工具实现数学可视化,尽管我早期的Java小程序最终因过时而无法使用。最近,我利用AI辅助编程对这些旧项目进行了现代化改造,成功将二十多个小程序移植为功能完备的JavaScript代码。AI的表现令人印象深刻,它不仅保持了高质量的代码水准,甚至还发现了原代码中的漏洞。 除了修复工作,这项技术还使我能够重启过去那些雄心勃勃但未完成的项目——例如闵可夫斯基空间(Minkowski space)的可视化工具,并能为当前的研究(包括吉尔布雷斯猜想)快速开发新的交互式辅助工具。 虽然这些由AI生成的工具可能存在微小的缺陷,但它们作为辅助视觉工具极具价值。鉴于这种工作流程的高效与便捷,我计划在未来的数学论文中集成类似的交互式可视化内容。欢迎各位针对这些“Alpha”版本工具提供反馈,我将持续对它们进行完善。

```Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 旧应用与新应用:通过现代编程智能体 作者:陶哲轩 (terrytao.wordpress.com) 23 点,由 subset 发布于 16 分钟前 | 隐藏 | 过往 | 收藏 | 1 条评论 luciana1u 3 分钟前 [–] 陶哲轩都开始用编程智能体来构建应用了,这意味着离菲尔兹奖得主像我们其他人一样去问大模型“为什么我的 Docker 容器起不来”只差一步之遥了。 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 加入 YC | 联系 搜索:```
相关文章

原文

I have been interested in machine-assisted ways to do and teach mathematics from as far back as 1999, when I started coding several applets in Java 1.0, both for my complex analysis and linear algebra courses, to visualize various mathematical objects I was interested in (such as honeycombs or Besicovitch sets). This was moderately successful; but the applets were time-consuming to program, and eventually the standards for web pages stopped supporting this version of Java, and the applets became non-functional.

However, in the last few days I have begun the process of migrating much of my old web page and blog data to a more maintainable repository, using modern AI assistance. As an experiment, I asked the agent to port my old applets to a modern supported language (we landed on Javascript), and it managed to do so in a matter of hours, with all of my old applets now functional again, with even a few graphical upgrades (for instance, the Besicovitch set applet is now colorized, in contrast to my original monochrome version). I am particularly pleased to see the honeycomb applet that I wrote with Allen Knutson in 1999 come back to life, as this was a particularly tricky one to code by hand:

Notoriously, LLM-based coding agents can create various blatant or subtle bugs in their code; but in the porting of these two dozen or so applets, I could only find one minor bug (the handling of a drag event in one of the complex analysis applets had unwanted behavior when dragging outside of the main box), and in fact the agent identified two bugs in the original code that I was not aware of, so it ended up being a net wash as far as code quality was concerned. In any event, as these applets are meant to be secondary visual aids rather than critical components of a mathematical argument, the downside risk of such bugs is relatively low.

The process was painless enough that I decided to also try coding some new apps, in addition to porting the old ones. Back in 1999 I had an ambitious idea for a visualization tool for special relativity; this was before the release of the software tool Inkscape, but the idea I had in mind was basically “Inkscape, but in Minkowski space”. I had even started writing Java code for this app, but the code complexity became too much for me, and I abandoned the project. However, after a couple hours of “vibe coding” with an AI agent, I was finally able to generate an applet that matched the vision I had back in 1999, which can now be found here. A summary of the conversation I had with the agent to generate this code can be found here (it has been edited down to remove a large number of tedious technical implementation reports). While I have playtested the app somewhat, I would be interested in receiving further feedback on this “alpha” version of the applet, as I am sure (especially given the LLM-generated nature of the code) that there are still some bugs and rough edges to be ironed out.

After writing my blog post on the Gilbreath conjecture paper earlier today, I realized that I could similarly ask the agent to code a visualization tool for the Gilbreath conjecture to accompany the paper and blog post. After another few hours of conversation, this is now done; you can try out the visualization here. Again, the procedure was quite painless (see this transcript of the process), and I think I may add such interactive visualizations as supplements for future papers; as such supplements are not mission-critical to the core of the paper, I again feel that the downside risk of using guided interaction with LLM agents to generate such visualizations is acceptable.

联系我们 contact @ memedata.com