|
谷歌周二推出了一种全新的编程语言-GO。早在两年前Google就开始对GO语言的研发,不过目前仍处于测试阶段,Google开放其源代码,实际上也是为了得到外界的帮助。当初将该语言设计为一款系统编程语言,可以被用于网络服务器、存储系统和数据库中。但是谷歌认为,该语言还有望被用于其它领域。
Rob Pike,Google首席软件工程师说:“我们需要更好的程序库和工具,而开源社区能够在这些方面为我们提供很大的帮助。”可以在不损失应用程序性能的情况下降低代码的复杂性。
Google 官方博客上的原文:
引用
Go attempts to combine the development speed of working in adynamic language like Python with the performance and safety of acompiled language like C or C++. In our experiments with Go to date,typical builds feel instantaneous; even large binaries compile in justa few seconds. And the compiled code runs close to the speed of C. Gois designed to let you move fast.
We’re hoping Go turns out tobe a great language for systems programming with support formulti-processing and a fresh and lightweight take on object-orienteddesign, with some cool features like true closures and reflection
更多细节查看:Golang.org.
Hello World示例:
package main |
|