"Hello world"来自哪里? [英] Where does 'Hello world' come from?

查看:84
本文介绍了"Hello world"来自哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'hello, world'通常是任何编程语言的第一个示例.我一直想知道这句话是从哪里来的,最初是在哪里使用的.

'hello, world' is usually the first example for any programming language. I've always wondered where this sentence came from and where was it first used.

曾经有人告诉我,这是有史以来在计算机屏幕上显示的第一句话,但是我至今找不到任何引用.

I've once been told that it was the first sentence ever to be displayed on a computer screen, but I've not been able to find any reference to this.

所以我的问题是:
用作计算机语言的第一个示例的实践源自何处?
第一次在哪里使用的?

So my question is:
Where does the practice to use 'hello, world' as the first example for computer languages originate from?
Where was it first used?

更新
尽管答案很有趣,但我应该注意到我已经阅读了Wikipedia文章.它确实回答了有关文献中首次使用的问题,但没有回答首次使用 时的情况.
因此,我认为可以得出结论,它不是计算机屏幕上显示的第一句话,并且没有关于何时使用的记录.

Update
Although the answers are quite interesting, I should have noted that I had read the Wikipedia article. It does answer the question about the first use in literature, but does not answer when 'hello world' was first used.
So I think that it is safe to conclude that it was not the first sentence ever to be displayed on a computer screen and that there is no record about when it was first used?

推荐答案

Brian Kernighan实际上编写了第一个"hello,world"程序,作为Martin Richards开发的BCPL编程语言文档的一部分.在1972年出版Kernighan和Ritchie的C书之前的几年,在贝尔实验室开发C时就使用了BCPL.

Brian Kernighan actually wrote the first "hello, world" program as part of the documentation for the BCPL programming language developed by Martin Richards. BCPL was used while C was being developed at Bell Labs a few years before the publication of Kernighan and Ritchie's C book in 1972.

作为我正在写的有关Alice编程环境的一本书的研究的一部分,我与普林斯顿大学的Kernighan教授和剑桥大学的马丁·理查兹(Martin Richards)进行了通讯(当时我在1990年代在那里举办的一个研讨会).他们帮助我跟踪了记录在案的首次使用代码,以打印消息"Hello,World!". Brian Kernighan记得为BCPL手册的I/O部分编写了代码,马丁·理查兹(Martin Richards)似乎有很多笔记,旧文件等,他找到了手册,并确认这是原始的.该程序的外观.该代码用于C编译器的早期测试,并进入了Kernighan和Ritchie的书,后来,它是用于测试Bjarne Stroustrup的C ++编译器的首批程序之一.

As part of the research for a book I was writing about the Alice programming environment, I corresponded with both Prof. Kernighan at Princeton and Martin Richards at Cambridge (when I was teaching a seminar there in the 1990’s). They helped me to track the first documented use of code to print the message "Hello, World!" Brian Kernighan remembered writing the code for part of the I/O section of the BCPL manual. Martin Richards -- who seems to have a treasure trove of notes, old documents, etc. -- found the manual and confirmed that this was the original appearance of the program. The code was used for early testing of the C compiler and made its way into Kernighan and Ritchie's book. Later, it was one of the first programs used to test Bjarne Stroustrup's C++ compiler.

在Kernighan和Ritchie中出现后,它成为新程序员的标准, 可能是有史以来最畅销的编程入门.

It became a standard for new programmers after it appeared in Kernighan and Ritchie, which is probably the best selling introduction to programming of all time.

这篇关于"Hello world"来自哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆