• Google introduces new programming language called "Go"
    124 replies, posted
As they say themselves: [quote] Go is … … simple [code] package main import "fmt" func main() { fmt.Printf("Hello, 世界\n") }[/code] … fast Go compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code. … safe Go is type safe and memory safe. Go has pointers but no pointer arithmetic. For random access, use slices, which know their limits. … concurrent Go promotes writing systems and servers as sets of lightweight communicating processes, called goroutines, with strong support from the language. Run thousands of goroutines if you want—and say good-bye to stack overflows. … fun Go has fast builds, clean syntax, garbage collection, methods for any type, and run-time reflection. It feels like a dynamic language but has the speed and safety of a static language. It's a joy to use. … open source [/quote] [url=http://golang.org/]Website[/url] [url=http://golang.org/doc/go_tutorial.html]Tutorial[/url] tl;dr Google introduces pretty much a C++/Python hybrid language I'm certainly trying this out
Awesome, I'll try his later. [B]Edit:[/B] What the hell? OSX support but no Windows support?
If microsoft created this, people would go berserk and say microsoft sucks. It's true. :smug:
No semicolons. :frown: [editline]05:03PM[/editline] Oh wait, you can apparently use them.
Pretty interesting but I've never been able to code.
-snip-
When I first read about it I was pretty excited ... until I noticed that no windows compatible version exists. :(
[QUOTE=Dj-J3;18315061]If microsoft created this, people would go berserk and say microsoft sucks. It's true. :smug:[/QUOTE] I never saw anyone complaining about Microsoft's C#.
[QUOTE=Dominik93;18315117]When I first read about it I was pretty excited ... until I noticed that no windows compatible version exists. :([/QUOTE] Relax, it only came out today. It's open source and based on gcc so creating a Windows version of the compiler is pretty easy
I like the Plan 9 puns :v: Will look into this later/tomorrow.
I started working with it last night on my mac. Super fast compiling makes me happy and it runs fast as hell. It will be something I may try to get a good application going in to help "Introduce" the community to Google's new Go!
Looks cool, but i personally don't like the syntax.
Why is Google trying to do everything that everyone else does? Just some examples: Web browser Email Programming language IM And it is not cool leaving out windows developers.
I guess because they're awesome. Maybe because they want monies. And I'm pretty sure that they do care about Windows developers, but everything needs time.
[QUOTE=Denzo;18315051] tl;dr Google introduces pretty much a C++/Python hybrid language [/QUOTE] Looks like a cross between Java and Javascript to me.
[QUOTE=PvtCupcakes;18317337]Looks like a cross between Java and Javascript to me.[/QUOTE] Minus the whole "comparable to C++/C speed" part :downs:
[QUOTE=PvtCupcakes;18317337]Looks like a cross between Java and Javascript to me.[/QUOTE] [quote=http://golang.org/doc/go_lang_faq.html]What are Go's ancestors? Go is mostly in the C family (basic syntax), with significant input from the Pascal/Modula/Oberon family (declarations, packages), plus some ideas from languages inspired by Tony Hoare's CSP, such as Newsqueak and Limbo (concurrency). However, it is a new language across the board. In every respect the language was designed by thinking about what programmers do and how to make programming, at least the kind of programming we do, more effective, which means more fun.[/quote] Well... they didn't mention C++ (though C), Python, Java nor JavaScript :P
I tried this out. Compiled it and tried out the Hello World application shown in the tutorial. [quote] &#9484;[20:24:47] &#9492; wms@wms:[~/Desktop/golang]$ cat >hello.go <<EOF > package main > import "fmt" > func main() { > fmt.Printf("Hello, world!\n") > } > EOF &#9484;[20:25:32] &#9492; wms@wms:[~/Desktop/golang]$ 8g hello.go &#9484;[20:25:35] &#9492; wms@wms:[~/Desktop/golang]$ 8l hello.8 &#9484;[20:25:40] &#9492; wms@wms:[~/Desktop/golang]$ ./8.out Hello, world! &#9484;[20:25:43] &#9492; wms@wms:[~/Desktop/golang]$ wc -c ./8.out 581713 ./8.out &#9484;[20:25:46] &#9492; wms@wms:[~/Desktop/golang]$ ~7~ cd . bash: ~7~: command not found &#9484;[20:25:51] &#9492; wms@wms:[~/Desktop/golang]$ .cd .. bash: .cd: command not found &#9484;[20:25:52] &#9492; wms@wms:[~/Desktop/golang]$ cd .. &#9484;[20:25:53] &#9492; wms@wms:[~/Desktop]$ rm -rf golang/ [/quote] In other words.. 581kB for a Hello World application? Seriously.
I'll probably check it out when I get around to installing Arch.
[QUOTE=Alternative Account;18318608]I tried this out. Compiled it and tried out the Hello World application shown in the tutorial. In other words.. 581kB for a Hello World application? Seriously.[/QUOTE] But it's a super-fast hello world application! :v:
[img]http://golang.org/doc/logo-153x55.png[/img]
Hopefully this will help kill certain myths about garbage collection.
[img]http://golang.org/doc/go-logo-black.png[/img] and stay away from this
[QUOTE=efeX;18319463][img]http://golang.org/doc/go-logo-black.png[/img] and stay away from this[/QUOTE] And exactly why?
care to explain why it warrants use over any other language that's out right now? oh its google it must be good right
[QUOTE=efeX;18320479]oh its google it must be good right[/QUOTE] Yes. :geno:
Doesn't mean it's a bad language just because everyone likes it because it's made by Google.
Suck shit windows users, time to learn what it's like when companies ignore your platform.
i don't see anything about it being from google
[QUOTE=gngbng;18320834]i don't see anything about it being from google[/QUOTE] [url]http://golang.org/doc/go_faq.html#Is_Google_using_go_internally[/url]
Sorry, you need to Log In to post a reply to this thread.