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

谷歌周二推出了一种全新的编程语言-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代码

05 package main

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

09 func main() {
10 fmt.Printf(”Hello, world; or Καλημέρα κόσμε; or こんにちは 世界n”);
11 }
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值