| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=44159166
Cloudflare借助Anthropic的Claude AI模型构建了一个OAuth库,并公开了使用的提示词。Cloudflare工程师Kenton Varda最初对此持怀疑态度,但Claude生成的代码质量让他感到惊讶。尽管代码经过安全专家的严格审查并与RFC进行了交叉比对,但这整个过程仍然突显了AI在编码方面的潜力。 虽然有些人质疑AI工具是否真的能够超越现有数据集进行创新,但另一些人认为AI可以显著加快开发速度,尤其是在与经验丰富的工程师配合使用时。Kenton Varda强调了人工监督和专业知识的重要性,尤其是在OAuth实现等关键系统中,但也指出了AI在安全、沙盒环境中赋能非专业人士的潜力。该项目成为当前AI模型在软件开发中能力和局限性的一个案例研究。
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
"NOOOOOOOO!!!! You can't just use an LLM to write an auth library!"
"haha gpus go brrr"
In all seriousness, two months ago (January 2025), I (@kentonv) would have agreed. I was an AI skeptic. I thoughts LLMs were glorified Markov chain generators that didn't actually understand code and couldn't produce anything novel. I started this project on a lark, fully expecting the AI to produce terrible code for me to laugh at. And then, uh... the code actually looked pretty good. Not perfect, but I just told the AI to fix things, and it did. I was shocked.
To emphasize, this is not "vibe coded". Every line was thoroughly reviewed and cross-referenced with relevant RFCs, by security experts with previous experience with those RFCs. I was trying to validate my skepticism. I ended up proving myself wrong.
Again, please check out the commit history -- especially early commits -- to understand how this went.
reply