PC6下载站

分类分类

谷歌推出新的编程语言- Go

关注+2009-11-11作者:

谷歌周二推出了一种全新的编程语言-GO。早在两年前Google就开始对GO语言的研发,不过目前仍处于测试阶段,Google开放其源代码,实际上也是为了得到外界的帮助。当初将该语言设计为一款系统编程语言,可以被用于网络服务器、存储系统和数据库中。但是谷歌认为,该语言还有望被用于其它领域。

 

Rob Pike,Google首席软件工程师说:“我们需要更好的程序库和工具,而开源社区能够在这些方面为我们提供很大的帮助。”可以在不损失应用程序性能的情况下降低代码的复杂性。

 

Google 官方博客上的原文:

引用

Go attempts to combine the development speed of working in a dynamic language like Python with the performance and safety of a compiled language like C or C++. In our experiments with Go to date, typical builds feel instantaneous; even large binaries compile in just a few seconds. And the compiled code runs close to the speed of C. Go is designed to let you move fast.

We’re hoping Go turns out to be a great language for systems programming with support for multi-processing and a fresh and lightweight take on object-oriented design, with some cool features like true closures and reflection
 


更多细节查看:Golang.org.

Hello World示例:

Java代码 复制代码
  1. 05 package main   
  2.   
  3. 07 import fmt “fmt” // Package implementing formatted I/O.   
  4.   
  5. 09 func main() {   
  6. 10 fmt.Printf(”Hello, world; or Καλημέρα κόσμε; or こんにちは 世界n”);   
  7. 11 }  
05 package main

07 import fmt “fmt” // Package implementing formatted I/O.

09 func main() {
10 fmt.Printf(”Hello, world; or Καλημέρα κόσμε; or こんにちは 世界n”);
11 }

 

展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消