Wednesday, November 11, 2009

Google has introduced new programming Language "Go".




Google has introduced a new system programming language named as "Go".

It is open source language. You can see more details about this language at http://golang.org/

Google is saying that Computers are fast now but software development is still slow. So it has taken this initiative of introducing this open source experiment language which combines the development speed of working in a dynamic language like Python with the performance and safety of a compiled language like C or C++ and the compiled code runs close to the speed of C.





You can read the "Go" Tutorial here.


Google says "so far Go has not been used in any of Google's publically available applications". Still it is in experimental stage only.

Google's Go began as a group 20% project in 2007, and full-time work began on it last year.

Find below sample code written in "Go".

5    package main


07 import (
08 "os";
09 "flag"; // command line option parser
10 )


12 var omitNewline = flag.Bool("n", false, "don't print final newline")


14 const (
15 Space = " ";
16 Newline = "\n";
17 )


19 func main() {
20 flag.Parse(); // Scans the arg list and sets up flags
21 var s string = "";
22 for i := 0; i <> 0 {
24 s += Space
25 }
26 s += flag.Arg(i)
27 }
28 if !*omitNewline {
29 s += Newline
30 }
31 os.Stdout.WriteString(s);
32 }



You can read the discussion about "Go" here.

Find below the presentation by Rob Pike.



More Articles...

No comments:

Search This Blog