Programmers, beware: ChatGPT has

2023-04-04  本文已影响0人  我是聪

The generative AI tool can write code on request, making the specialist skill of programming open to everyone

Benedict Evans, a tech analyst whose newsletter is required reading for those who follow the industry, made an interesting point this week. He had, he said, been talking to generalist journalists who “were still under the impression that ChatGPT was a trivial parlour trick and the whole thing was about as interesting as a new iPhone app”. On the other hand, he continued, “most people in tech are walking around slowly, holding on to the top of their head with both hands to stop it flying off. But within that, I think we can see a range of attitudes.”(Benedict Evans,一位技术分析师,他的新闻通讯是关注该行业的必读资料,本周提出了一个有趣的观点。他说他曾与一些通才型记者交谈,这些人仍然认为ChatGPT只是一个微不足道的魔术表演,就像一个新的iPhone应用程序一样毫无意义。但是,他接着说,“技术领域的大多数人都在缓慢地走着,双手紧握头顶,以防止它飞出去。但在其中,我认为我们可以看到一系列态度。”)

We certainly can – on a spectrum ranging from the view that this “generative AI” is going to be the biggest bonanza since the invention of the wheel, to fears that it augurs an existential risk to humanity, and numerous opinions in between. Seeking a respite from the firehose of contradictory commentary, I suddenly remembered an interview that Steve Jobs – the nearest thing to a visionary the tech industry has ever had – gave in 1990, and dug it out on YouTube.

Last week, Steve Yegge, a renowned software engineer who – like all uber-geeks – uses the ultra-programmable Emacs text editor, conducted an instructive experiment. He typed the following prompt into ChatGPT: “Write an interactive Emacs Lisp function that pops to a new buffer, prints out the first paragraph of A Tale of Two Cities, and changes all words with ‘i’ in them red. Just print the code without explanation.”(写计算机程序,例如。

上周,著名软件工程师史蒂夫·耶格(Steve Yegge)进行了一项有教育意义的实验,他和所有超级极客一样使用可超级编程的Emacs文本编辑器。他在ChatGPT中输入了以下提示:“编写一个交互式的Emacs Lisp函数,它弹出一个新缓冲区,打印《双城记》的第一段,并将其中所有带有'i'的单词变为红色。只需打印代码,不需要解释。”)
ChatGPT did its stuff and spat out the code. Yegge copied and pasted it into his Emacs session and published a screenshot of the result. “In one shot,” he writes, “ChatGPT has produced completely working code from a sloppy English description! With voice input wired up, I could have written this program by asking my computer to do it. And not only does it work correctly, the code that it wrote is actually pretty decent Emacs Lisp code. It’s not complicated, sure. But it’s good code.”(ChatGPT完成了它的任务并生成了代码。Yegge将它复制粘贴到他的Emacs会话中,并发布了结果的截图。他写道:“一次性,ChatGPT从一个粗略的英文描述中生成了完全可运行的代码!如果语音输入连接好了,我可以通过让我的电脑来写程序。它不仅正确地工作,而且生成的代码实际上是相当不错的Emacs Lisp代码。当然,它并不复杂。但是它是好的代码。”)
Ponder the significance of this for a moment, as tech investors such as Paul Kedrosky are already doing. He likens tools such as ChatGPT to “a missile aimed, however unintentionally, directly at software production itself. Sure, chat AIs can perform swimmingly at producing undergraduate essays, or spinning up marketing materials and blog posts (like we need more of either), but such technologies are terrific to the point of dark magic at producing, debugging, and accelerating software production quickly and almost costlessly.”(请思考一下这一点的意义,就像像保罗·凯德罗斯基(Paul Kedrosky)等科技投资者已经在做的那样。他将ChatGPT等工具比作“一枚导弹,无论是有意还是无意地瞄准着软件制作本身。当然,聊天AI在生产本科论文、撰写营销材料和博客文章方面表现得非常出色(就像我们需要更多的这些一样),但是这种技术在快速、几乎不花费成本地生产、调试和加速软件制作方面是非常了不起的,几乎到了黑魔法的地步。”)

https://www.theguardian.com/commentisfree/2023/apr/01/chatgpt-write-code-computer-programmer-software

上一篇 下一篇

猜你喜欢

热点阅读