arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.04332cs.HCcs.SE
收藏

EcoAssist:将可持续性嵌入AI辅助前端开发

EcoAssist: Embedding Sustainability into AI-Assisted Frontend Development

Carnegie Mellon University(卡内基梅隆大学)

André Barrocas, Nuno Jardim Nunes, Valentina Nisi, Nikolas Martelaro

AI总结:

EcoAssist通过IDE分析AI生成的前端代码,估算其能耗并提出优化建议,减少网站能耗13-16%,提升开发者能源意识而不影响效率。

摘要:

前端代码在数百万页面视图中重复使用,消耗大量能源并直接贡献数字排放。当前AI代码助手如GitHub Copilot和Amazon CodeWhisperer侧重于开发者速度和便利性,能源影响尚未成为主要关注点。现有以能源为导向的指南和指标在实践中应用有限,存在研究与日常编码实践之间的差距。为此,我们引入EcoAssist,一种集成在IDE中的能源感知助手,分析AI生成的前端代码,估算其能源足迹,并提出针对性优化。我们通过500个网站基准测试和20名开发者的控制研究评估了EcoAssist。结果表明,EcoAssist平均减少每个网站的能耗13-16%,提高开发者对能源使用的意识,并保持开发者生产力。这项工作展示了如何将能源考虑直接嵌入AI辅助的编码工作流中,支持开发者通过可操作的反馈与能源影响互动。

英文摘要:

Frontend code, replicated across millions of page views, consumes significant energy and contributes directly to digital emissions. Yet current AI coding assistants, such as GitHub Copilot and Amazon CodeWhisperer, emphasize developer speed and convenience, with energy impact not yet a primary focus. At the same time, existing energy-focused guidelines and metrics have seen limited adoption among practitioners, leaving a gap between research and everyday coding practice. To address this gap, we introduce EcoAssist, an energy-aware assistant integrated into an IDE that analyzes AI-generated frontend code, estimates its energy footprint, and proposes targeted optimizations. We evaluated EcoAssist through benchmarks of 500 websites and a controlled study with 20 developers. Results show that EcoAssist reduced per-website energy by 13-16% on average, increased developers' awareness of energy use, and maintained developer productivity. This work demonstrates how energy considerations can be embedded directly into AI-assisted coding workflows, supporting developers as they engage with energy implications through actionable feedback.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑