50 年前,Hello World 发明者第一次提交的Go 代码长这样……

Posted Java技术栈

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了50 年前,Hello World 发明者第一次提交的Go 代码长这样……相关的知识,希望对你有一定的参考价值。

点击关注公众号,Java干货及时送达

作为Unix的研发者与传奇代码“Hello World”的发明者,普林斯顿大学计算机科学系教授布莱恩·克尼汉(Brian W. Kernighan)是编程界的传奇人物。

他曾参与创造了AMPL(数学编程语言)和AWK(文本处理工具),也曾和C语言之父丹尼斯·里奇(Dennis MacAlistair Ritchie)共同编写《C程序设计语言》(The C Programming Language)。

不仅如此,据调查,Brian W. Kernighan竟在1972年7月18日首次提交Go代码。

commit 7d7c6a97f815e9279d08cfaea7d5efb5e90695a8
Author: Brian Kernighan <bwk>
Date:   Tue Jul 18 19:05:45 1972 -0500


    hello, world


    R=ken
    DELTA=7  (7 added, 0 deleted, 0 changed)


diff --git a/src/pkg/debug/macho/testdata/hello.b b/src/pkg/debug/macho/testdata/hello.b
new file mode 100644
index 0000000000..05c4140424
--- /dev/null
+++ b/src/pkg/debug/macho/testdata/hello.b
@@ -0,0 +1,7 @@
+main( ) 
+       extrn a, b, c;
+       putchar(a); putchar(b); putchar(c); putchar('!*n');
+ 
+a 'hell';
+b 'o, w';
+c 'orld';

在接下来的十多年中,布莱恩仍在不断进行修改:

直到现在,这些早期提交的文件(即最终的ANSI C 版本)仍保留在Go repo中。

作者 | 郭露       责编 | 张红月

出品 | CSDN(ID:CSDNnews)

来源:https://blog.csdn.net/csdndevelopers/article/details/122941245?spm=1000.2115.3001.5927

参考资料:

  • https://repography.com/blog/go-first-commit

  • https://github.com/golang/go/commit/0bb0b61d6a85b2a1a33dcbc418089656f2754d32

  • https://github.com/golang/go/commit/0744ac969119db8a0ad3253951d375eb77cfce9e

  • https://github.com/golang/go/commit/d82b11e4a46307f1f1415024f33263e819c222b8


疯了!Spring 再官宣惊天大漏洞。。

2021 年发生的 10 件技术大事!!

23 种设计模式实战(很全)

Spring Boot 保护敏感配置的 4 种方法!

再见单身狗!Java 创建对象的 6 种方式

阿里为什么推荐使用 LongAdder?

AnotherRedisDesktopManager 开始收费了?

别再写爆爆爆炸类了,试试装饰器模式!

Java 18 发布,默认 UTF-8,finalize 被弃用。

Spring Boot 3.0 M1 发布,正式弃用 Java 8

Spring Boot 学习笔记,这个太全了!

关注Java技术栈看更多干货

获取 Spring Boot 实战笔记!

与50位技术专家面对面 20年技术见证,附赠技术全景图

以上是关于50 年前,Hello World 发明者第一次提交的Go 代码长这样……的主要内容,如果未能解决你的问题,请参考以下文章