Added: 2 years ago
From: GoogleDevelopers
Views: 357,939
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (312)

Sign In or Sign Up now to post a comment!
  • go func() { println("Go is amazing!") }() // <-- Anonymous, non-blocking, *concurrent*, powerful, trivial

  • Go Programming language looks exciting.

  • when will it end. I qould like to program by voice. That the future.

  • extensible?

  • what is the name of this language

    is code language

    «0ØÆSî1”

  • Why does Google think they can build something better C++, ECMAScript and Java at same time?

  • @dannotemail Because they can? C++ has needlessly convulted syntax for archaic reasons, Java has needlessly verbose syntax for odd reasons and ECMAScript has needless syntax for stupid reasons.

    Not everything has to be curly brackets, and I feel sad that Go uses them too...

  • @Magnetohydrodynamics C++ and Java are awesome , don't rip on languages just because the only language you can code in is VB...

  • Compiles in under a second on just a 900-machine cluster

  • Weird how the example on the go page looks just like C. Hmm...

  • @Dar1066 nice one, sherlock.

    I can see you're paying a lot of attention.

  • go = similar to c.

  • cool promo....

    but wait.....

    about under a second compiled sources..., with what machine u compile that source codes? just Macbook Pro or heavy advanced custom Macbook Pro?

  • @AtapGenteng Try doing it yourself. It's that fast everywhere.

  • Comment removed

  • When I saw GO programming language before I knew Google was involved I immediately thought "Google Objective" or something along those lines.

  • I can't code. What should I do?

  • @jhtrico1850 Buy a mac! Pretend like you're way too creative to be productive!

  • @jhtrico1850 Get a degree?

  • 1 easy to develop, fast to execute ,does not exists

    2 easy to develop, python, ruby but slow.

    3 difficut to develop, fast C

    4 more difficult to develop, less fast c++

    5 Difficult to develop and slow, java

  • Comment removed

  • fast to compile, slow to execute,

    2x-30x more tah java

  • do you write all those lines down yourself pleaze reply

  • I dunno whats more fail.. The hamser "mascot", graphic design on his tshirt, his hairstyle or the name of the program.

  • oh thats what fast means, that it compiles fast. but does the actual code run fast?

  • @zombierobopirate The code I've made with Go typically comes within a 20% speed gap with C code. Given that I write less code in Go to do something pretty complex, and that Go is faster than Python or Erlang by a lot, it's hitting a nice sweet spot for many applications.

  • c++ meets python-

    NICE. finally ppl are giving programming languages (and programmers) some importance and not just concentrating on stupid new glossy products that are flooding the markets

  • The Go compiler is based on the plan 9 compilers, which were written from scratch. It's easy to install on linux, osx, and freebsd. It doesn't need lots of dependencies (if any). Compile speed is not the coolest aspect of it. Fast compile times are strongly due to the language design, not only the compiler. Changes are still being made to the language, but they are mostly small. It is staticly compiled, but has runtime reflection. It can call C code. It can compile to nacl.

  • iyhdfedrdcdfdcc

  • I'm not questioning the language but this feature(i think is cool though)... "When builds are fast, I can get a lot done in a day"? More productive because of fast compilation? Please correct me if I'm wrong here, but if you need to rebuild your whole code every time a modification is made, you're doing it wrong. This doesn't seem to be a useful feature.

  • No type inheritance, no exceptions, no generics, no method overloading, no Win support. Its said that its main advantage is concurrency but I preffer solutions proposed by Intel or Microsoft(great PLINQ/TPL in C#). Moreover, it uses backend taken from GCC which isn known for creating slow programs. I will stay with ICC, VC++ and C#.

  • @MoroJesha: Generics are a bad joke. They work terribly outside of their original realm, which is parametric polymorphism in functional languages with immutable values. For example, take a look at the problems with Java arrays, for examples. Exceptions are also quite hard to get right, more so in a language where the focus is not huge stacks with many intermediate stack frames but many communicating processes instead. PLINQ is a "sexy selling point", not a general mechanism like channels.

  • Google does some solid stuff. From what i see so far, this looks promising. Curios how it'll end up.

  • Oh great! Another company, another programming language... Can't wait for Go++, Go script, and go basic >.>

    Anyways, I will surely try it.

  • So... No more chair jousting during compile sessions?

    Isn't progress great? [/sarcasm]

  • @robotguy4 Haha! I loved that XKCD but it sucks that my app's compile way too fast!

  • c# . . that was created by microsoft who are reputable for their slow, unsecure, inefficient, unreliable and above all buggy, programs . . yes thats right c# is better than Go. fool

  • @thezufomec Hahah... compare code prouced by VC++ and GCC (Go uses GCC backend). Compare C++0x support in VC++ and in GCC (a lot of nasty bugs). You know nothing about programming... fool.

  • well that's funny, cause the c++0x standard isnt in place yet. Go only uses the GCC backend while they develop their own, and if you knew anything about the GCC backend you'd know its actually an assembler not a compiler, with the c++ parser converting C++ code into assembly code, the fact that this doesn't conform to a standard that doesn't exist yet seems kinda trivial when you apply some thought, what's the point of makin somthing if it's likely to need changing in the near future??

  • You said that MS tools are slow, buggy etc so I gave you a simple comparision VC++ vs. GCC. I know that there is no compiler with full C++0x support, but both VC++10 and GCC 4.5 implement some of its parts so I think that this comparision has sense. Moreover GCC backend is not only a simple assembler. Main optimizations are done at the level of RTL in the backend. Which is only one of internal rerpresentations which are used in GCC.

  • actually C# is better than Google Go

  • really. i still doesn't figured out why there are so much criticism about go.

    have you all ever TRIED it before saying all this shit?

    java is at the top today, such as c++ was someday. the best quote i've heard about programming languages up today is: "the best programming language is that which makes what you need".

    java is not god.

  • @Ekopgnol you got the second part right.

  • I agree with someone who said that Go would have been completely ignored if it wasn't Google who made it.

  • I remember how IBM's "jikes" compiler could compile Java code just as fast as this go compiler.

    The problem at the time was the Java startup / warmup time - you know, that time when the jvm was still busy compiling bytecodes to machine code, before it starts to run fast.

    One workaround is to run the Java compiler inside a compiler-server. It then too can compile lots of code in under a second.

    Is anyone interested in any of this or is this yet another place where people throw around bullshit...

  • Comment removed

  • Oh. also, consider the Java Eclipse IDE (probably Netbeans too). The code is compiled the moment you hit save - or even before then !

    0 second compile time...

  • Actually the language its fun, and it's a lot more productive than C. Try it! And then pronounce yourself!

  • Ok, it's great because you reduced things and make it fast and simple. But I think it loses the philosophy of programming. I can't imagine programming within secs!

  • @gnugenti I thought the idea behind computer science is efficiency; not long, complicated workloads :p

  • All I can say is fast as Go! lol

    GOod Google, hope to get it working on my no MS-DOS machine :)

  • Try installing the apache server or other softwares on linux by the source. It takes so long sometimes I take a walk or leave my computer ON doing the job.

  • First of all , I still don't understand what's the point.I mean I know why java created.Why python created.But go :S ...

    And besides Its ok compile time is fast.What about the runtime ? I mean , Can we process video using this language ? Or It's just 4 db developers.

  • as far as i know, google always aimed to release/maintain light applications and as-faster-as-possible tools. and always for free. if you really think compile-time is not important, you can not entitle yourself as a programmer.

  • it sucks

  • It compiles fast? That's the selling point? That's the only selling point? I think I am missing something.

  • I really hate it when programming languages are judged on the basis of irrelevant things such as compilers, IDEs, virtual machines, and libraries. I'm thinking of making the worst compiler, IDE, and application stack in the history of computing. I'll call it Supremely Horrible Information Technology (SHIT), and I'll add support for languages one at a time. Each time I add one, I'm going to say that it "sucks" and prove it by showing how slow my apps are and how long they take to build.

  • Ok, so we're waiting. What is the official release date? Will it be hosted on sourceforge?

  • We will be releasing a beta as soon as we can. The source is on an Advanced Revision System, a RCS that combines the stability of VSS with the user friendliness of the ALTAIR. We are the only project to fork after every line of code, usually due to personality conflicts. It may take a while.

  • @CrazyHorseInvincible is not so im in the business for 10 years and I can say that libs & IDE matter everyone requests software yesterday and you cant really make a buck if you dont work fast, i doubt with c and joe can do the same thing in the same time as you do with java and eclipse, VMs also matter a lot since you don't need to recompile for every platform in the world which really helps at deploying, and when u compile 10k lines of code at each 10m you really need a fast compiler.

  • @octavzaharia I have no idea what you're saying. What does " i doubt with c and joe can do..." mean? I wasn't saying libraries don't matter. I'm saying they're irrelevant when judging a language.

  • @CrazyHorseInvincible You don't seem to be aware that time is money in business but doesn't mean anything to you in mom's basement.

  • @emptycorp I don't just seem to unaware, I'm totally oblivious. I had no idea that time had any value to business. How did you discover this blind spot I had? Can you help me, please, by pointing out exactly what gave me away?

  • Because the Go team is small and doesn't have time to develop a whole new Windows port. There are some community ports though.

  • hahahahahahaha - nice one :)

  • decent compiler FTW

  • Idarwin/amd64 FTW

    Google must support us now @ Hackintosh :)

  • WTF DARWIN AMD64??? Hackintosh @ Google.

  • Its ugly and not very functional.

    And 10 seconds is not really fast. I can compile 240.000 lines of Eiffel code in 22 sec. and incremental in less then 10 sec on a dual 3,2Ghz Core2Duo

  • Comment removed

  • The name is stolen . it must "go!"

    The avatar looks stupid and retarded. Please get a decent avatar. Badly drawn avatars/mascots are NOT COOL.

    Seems hacky, but at least we have something new for the fanbois to gush over for another year or so.

  • Pay back time. Start a company named "Google!"

  • or.... you could just strucutre your code such that you dont need to build THE WHOLE THING everytime you make even the smallest addition

  • Cool language, we need more thinking around multicore utilization. Love the logo too, best yet for a programming language :)

  • Yeah it looks really nice. I'm excited about this.

  • How much time you wasted with the logo???

  • Yeah, I agree that from what I've read, it seems pretty cool...

    My problem is that they are just marketing it in a way that makes no sense! It's like if someone from marketing overheard developers talking about how fast it compiled and decided to make it a selling point because they didn't understand anything else.

  • I know. It's not that fast anyway. Who cares if it takes 200ms for 1000 loc. I've compiled 10000 loc faster than that ten years ago.

  • I think Google will pleasantly surprise us .

  • yeah i guess , but i looked at the go syntax , looks a lot like c , so why switch???

    i mean the time they build and add the libraries for Gui's and 3d libraries it will be just as slow and probably more unstable than c++ or c

    so why switch??

    -die hard c++ PROgrammer

  • How is it when compared to Java?

  • Java runs on a vm = slow. Go compiles to machine code.

  • @mk123600:you do not understand how a vm works. Java is faster or as fast as C++ today.

  • I'm not dismissing java because it's too slow, I'm simply saying go is faster because it compiles to machine code... I never said anything about C++. Would you want every application on your computer written in Java?

  • NO Java, is not "too slow".

    Again, the jvm compiles bytecodes to machine code at runtime !

    That means you don't have to ship different versions of the program for different microprocessors or OS's.

    The jvm is AMAZING !

  • But it interprets it at runtime, which takes longer than if you already have machine code. And I'd rather have multiple versions of an application than have one in Java. For instance, a Java application can't replace a real native Cocoa Application with the Aqua UI, even if it was as fast.

  • The JVM compiles bytecodes to machine code at runtime. You end up with highly optimized machine code, that's actually better optimized, then what a traditional compiler can accomplish.

    That bytecode can be used on any platform on any processor. The JVM takes care of the translation process.

    Java is *much* *MUCH* faster than what many people realize. This is really very frustrating to see so many people think all the wrong things about Java - really very frustrating.

  • I know that's true. The religious ignorant idiots pressing the thumbs down button on you don't.

  • the jvm comiles bytecodes to machine code while running in a way where it can optimize that a C compiler can't. eg. changing the code to do inlining and a ton of other things.

    It's a shame that so many know so little about the jvm.

  • Java can't do everything, and it's the wrong tool for the job for many things. I don't care how amazing the jvm is, the fact is Java application are generally slow, and have a sluggish feeling associated with them. You can't make a good 3d game in Java. You can with C++. Why?

  • But there are good 3D games written in Java.

    Can you at least admit that you were wrong about the jvm, that it DOES compile bytecodes to machine code? That at least must change your mind somewhat.

    I can point you to some research papers from both Sun and IBM to show you how it can optimize better than C++ compilers can if need be...

  • My first comment was wrong, but I'm still pretty sure Go will generally be faster than Java in practical use.

  • Maybe. But why couldn't Java be just as good, or better?

    Garbage collection, machine code - and years of experience and maturity?

    Seriously, isn't the only thing going against Java this anti cult prejudice?

    I mean, ask any Linux python lover, and ask what they think of Java. You simply can not get them to respect it - purely and utterly ONLY for religious reasons and nothing else.

    This is very very frustrating !

  • Fact is, the JVM is *amazing*. And if you're not happy with the limitations of the Java language, remember that Java itself is just a language. The JVM is what it's all about.

    A great alternative is Scala, which runs on the JVM.

    Check out JRuby's performance over native Ruby's.

    And check out the JVM version of PHP - way faster than the native PHP - including that special commercial version even.

  • @mk123600 You actually can do a good 3d game in java, it's just that nobody has done it before. im working on a project which is a 3d FPS/mmorpg in java so i know what im talking about. java can handle 3D just fine.

  • Actually, it's the Java programs that are slow, even if the compiler can produce code that is more optimized than C or C++, Java is so wrapped in layers and layers of abstractions, design patterns, wrappers of wrappers that, in the end, it's unpleasant to use. Sorry Java, perception is reality.

  • I guess, that's because there aren't libraries for that yet

  • nice

    eyebrows

  • wanna get dat shirt

  • The only advantage I can think of is not in that it compiles for a developer faster, but maybe it might generate machine code for dynamic sections of another program faster versus scripting?

  • this was the stupid thing i have ever read. Ever.

  • Google (cloud) bunkers are counting through the world, prepare yourself... Btw, don't forget to take your google t-shirt outside ;)

  • So... We get this brand new language in beta version and they are marketing it as "it builds fast". Do you expect me to build anything relevant with a language that's in beta? Then what's the point of having my hello worlds compile in nanoseconds? This is ridiculous!

    Give me anything that improves productivity and I'll be writing all my maintenance scripts and small internal applications with it. I won't gamble a project big enough to benefit from quick compilation on a new beta language!

  • This guy is a living proof that Google hires engineers just to give them something to do, whatever they want. This doesn't mean we should just take everything they made :)

  • C has a lot of years on duty. Nowadays, it sure can be done a lot better. If it succeds, I can't imagine the number of new solutions that will come up based on Go. Like a new PHP, which is written based on C...

  • haha... he said cocks =P

  • total NERD XD

  • @madmax10101 total fag

  • So this combines the style of Python, the syntax of vBasic, and the speed of C?

  • hope so! :P

  • Comment removed

  • anybody knows the manual learning GO language? like a pdf file or a website or anythingelse... ?

  • irgendwie goil heute lol wer will chatn hab auch bilder usw

  • What's wrong with inventing yet another language to get the task done? Even if there are dozens of popular languages out there...

  • He looks like Truman from the Truman Show

  • This video was absolutely lame and weak. Who cares how fast it compiled? Fast is relative, is it not? Developers want to know about the language itself and how it "shines" with respect to other languages. Looks like a typical c/c++ makefile build going on. Nothing special there. You need to "Go" and delete this video and re-create it over again guys. Seriously, It's beyond pathetic and is an embarrassment to Google.

  • I agree. It's nice to know that the whole thing is fast, but what other technical features does it give us? What advantages or disadvantages are there over other languages? Etcetera.

  • "Who cares how fast it compiled?"

    Time waiting for code to compile is time wasted, sure it's not much for each person, but add it up through a whole company for a whole year, and that's probably a lot of time/money being wasted.

  • Come on xhiggy. Are you serious? Please tell me you're joking, right? No one cares about speed these days, just throw ram and CPU power at it. The days of developers writing optimized code died years ago. Same goes with compilation. If it's not running fast enough just throw more ram and CPU at it, problem solved. Windows is a prime example. Just throw CPU and memory at it and the operating sytem seems to behave okay (I said "seems").

    Hope that clarified my argument some.

  • its all about optimzation today

  • the exact reason why vista failed. please don't start a debate on this because u know its true

  • fair point, but is faster compilation and optimization bad? of course not, so thats a pro of this programming language is all I'm saying. If you don't think it's worth it, then don't use it, but if you do go for it, it brings a new good quality. I don't see the problem.

  • You are most indeed correct xhiggy, it's not bad. My gripe about the video wasn't so much about how fast it compiled but how that seemed to be the only thing they spoke on. Just because it compiled fast doesn't mean the compiled program will execute fast. This seemed like a thrown together video with a non-developer target audience in mind (IMHO).

  • "writing optimized code died years ago" Try making some apps for mobile devices.

    It saddens me that a lot of good programming practices have died because now, with all that CPU power, a second year student can vomit some code and make it work anyway.

  • Comment removed

  • @qsfx Fact of the matter is that CPU time is vastly cheaper than Programmer time. Optimization is not really needed, but needlessly inefficient code is still inelegant... You should try looking into functional programming to get a feel of why "think fast, write fast, debug little" is a nice thing for a language.

  • Well considering it's a new language and in true Google style still in beta it works nice...

    Huge drawback for me is lack of OOP :(. Recently I started programing in Python so this syntax looks really ugly to me. But the purposes these programing languages are completely different so they are not really for comparison.

  • Go is what Digital Mars D was 10 years ago.

  • That's nothing new or exiting. Delphi compilers do 1 Mio lines per minute (and that was already in the 90's and with much simpler boxes).

  • what does building have to do with execution? they are unrelated.

  • As mentioned at the beginning of Pike's talk (the longer Go talk), slow compilation is often caused by uncontrolled dependencies. C/C++ project controls dependencies at the file level by makefiles. This granularity may turn out to be too coarse when you just modify a small part of a big file, in which case a lot of unnecessary recompilation happens.

  • I also accused the video being misleading among discussion with my colleagues, but hey, it is google, it is Ken Thompson, Rob Pike and our cute Ross :-) Decisions by large chance are well logically reasoned. It's just that we didn't see it from the first glance.

  • @1337Hacker That's a very good question. I guess time will tell?

  • this is deceptive to the core. WHAT IS THE COMPUTER SPECS USED.

  • Note that he is using a Mac and states that it is on his laptop. That maxes him out at 8 GB of RAM and a 3.06 GHz Core 2 Duo.

  • r$ goatse

  • Y?!

  • Some reasons are that it was rushed, contains toxins like mercury, its suspected of causing a range of adverse effects, 1976 swine flu vaccinations led to hundreds of people developing Guillan-Barre syndrome, and the companies that made the current vaccine have been given legal immunity from any liability.

  • nice background colour

  • you look like a geeky Will Young

  • nice hair Russ

  • woosh

  • but google still suck

  • Learn German

  • Why don't you have an implementation on Windows? and no exception handling! are you out of your freaking mind Google?

  • Oh google,

    you already have my first and second born child. why do you want more?

  • Rass Cocks?

    LOL

  • The future looks bleak, Google going to take over everything.

    And when is Youtube going to add texting of videos, so you can translate other peoples videos and stuff. That would be cool.

  • What????

  • i speek english, do i need 2 no moe langwages???

  • you will have to learn Chinese soon:)

  • Great for you.

  • it will be a lot faster if you dont run it on a mac

  • What does the Mac have to do with it? Even the low-end Macs have decent specs.

  • cant build a mac u cunt

  • You don't need to. If you really want to build it yourself then use linux. Notice I didn't resort to flaming to get my opinion across...

  • sorry mate - It made me laugh though - have you seen a film called pirates of teh valley or triunph of the nerds v interesting facts about the beginnings of jobs and gates - also windows are sold more so statistically will break down more often - IMHO

  • WTF is up with that hamster thing?

  • Don't say its a hamster or my girlfriend will digg that language.

  • hamsterdance?!

  • HTML FTW

  • Yea I laughed my ass off. And I don't even know if that's a reference to someone real. It just seemed funny as it was.

  • lol cocks

  • Tenho certeza que tem mão do Sullivan nessa programação...ele é tão esquisito quanto GoPro...