Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A no bullshit way to Go

Name: Anonymous 2012-08-17 0:06

It has been suggested I should try out Go, it was someone on /prog/

Please share any intensely commented code you know of written in it. Or any documentation besides the tutorial, effective go, and the google tech talks which are all shit.

The only thing remotely useful is the reference manual but it suffers from the same issue: They describe everything as a concept not a function and the examples have context.

Name: Anonymous 2012-08-17 0:08

I mena the examples have no concept

Name: Anonymous 2012-08-17 0:08

context

I need sleep.

Name: Anonymous 2012-08-17 0:30

Go is a piece of shit. That's all you need to know.

Name: Anonymous 2012-08-17 1:10

Id like to see C programs like games re-written in Go to see how it compares in speed

Name: Anonymous 2012-08-17 1:35

>>5
I bet that sounded really intelligent in your head before you posted it.

Name: Anonymous 2012-08-17 5:19

>>6
tell me something about Go, whoops you cant, you dont know shit about anything except whatever youre currently pleasuring your anus with

Name: Anonymous 2012-08-17 5:59

Code: $GOROOT/src/pkg
Documentation: $GOROOT/doc/go_spec.html

Name: Anonymous 2012-08-17 6:16

Why Go is still not a viable option for mission-critical systems:

1. GC
2. Shit implementation of said GC
3. OP's faggotry

Name: Anonymous 2012-08-17 6:31

>>9
Don't delude yourself, it's not viable for shit.

Name: Anonymous 2012-08-17 9:04

>>1
Don't blame Go for your lack of braincells.

Name: Anonymous 2012-08-17 11:43

>>11
So I am not smart enough?
that's sad so I should stick to C and never ever learn something else?

>>8
Code: Not commented enough, written for an by people who already know it
Documentation: Again they provide not enough context for the examples and the explanations are descriptive not functional.

I am looking at the 2011 Ants AI challenge example that seems helpful.

Name: Professional Go Ninja 2012-08-17 13:36


package main

import (
    "net/http"
)

func main() {
    http.Handle("/", http.FileServer(http.Dir(".")))
    http.ListenAndServe(":9080", nil)
}

Name: Anonymous 2012-08-17 13:56

Don't trust the Google jews, >>1-san

Name: Anonymous 2012-08-17 17:57

>>10 it's viable for getting your thinly-veiled startup marketing to the front page of Le Hacker News!

Name: Anonymous 2012-08-17 19:08

>>9
again, it would be nice to have benchmarks instead of peoples baseless claims

Name: Anonymous 2012-08-17 19:48

>>16
again, it would be nice to have benchmarks instead of peoples baseless claims
Okay, you asked.

http://shootout.alioth.debian.org/u32q/which-programming-languages-are-fastest.php

Go is slower than Common Lisp. So much for being a ``systems language.''

Name: Anonymous 2012-08-17 20:34

>>17
When you have a natively compiled language that's even slower than Java or Lisp, you're better off using Java or Lisp.

Name: Anonymous 2012-08-17 20:35

Go is shit, it's broken for long lived processes on 32 bit.

Name: Anonymous 2012-08-18 0:39

>>17
>>18
>>19
First, the 32-bit version of Go is stillborn, and the authors are open about this. Look at 64-bit instead. http://shootout.alioth.debian.org/u64q/which-programming-languages-are-fastest.php

Second, why not look at the direct language comparisons? http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=sbcl http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=go&lang2=java Go is slower in the memory-allocation-intensive benchmarks, because it's garbage collector is still unoptimized, again something the authors are open about. Go's regex is also unoptimized, hence the slow regex-dna results.

Name: Anonymous 2012-08-18 1:03

>>20
Stillborn and unoptimized. Surely not a candidate for serious mission-critical apps.

The syntax sucks. Admit it. Pike was never a good language designer to begin with. If memory serves me right, they had a few WTFs early on regarding Go's syntax. Obviously a hack job, it was never designed with solid understanding of what they're trying to achieve. It's practically PHP all over again.

My advice is to stick with modern C.

Name: Anonymous 2012-08-18 1:08

doesn't Go have semicolon insertion?

Name: Anonymous 2012-08-18 1:09

semicolon insertion
eeeeeeeeeew

Name: Anonymous 2012-08-18 1:13

>>23
it's the most useful javascript feature

why don't more languages do this?

Name: Anonymous 2012-08-18 1:34

>>21
modern C
By that you mean Objective-C, right?

Name: Anonymous 2012-08-18 3:30

>>25
Oh you!

Name: Anonymous 2012-08-18 7:13

>>21
Go has the cleanest and simplest syntaxes of all C-like languages I've seen so far; it has Jo garbage syntax lying around and is easy to parse.

Name: Anonymous 2012-08-18 8:14

>>22
no! its a systems programming language with one expression per line lol

oh that kills me, sorry, cant put any more isolated statements or expressions on that line, only one per line

Name: Anonymous 2012-08-18 9:01

>>28
What are you on about? Go can accommodate a bunch of statements on a line in a few more places than C actually.

package main; import "fmt"; func main () { if fmt.Println("jabba"); true { fmt.Println("shit") } }

Name: Anonymous 2012-08-18 9:04

how else erlang program make fast?

Name: Anonymous 2012-08-18 16:17

>>30
you cant make Erlang run faster, they tried making an Erlang compiler that compiled to machine code and it only ran slightly faster than the regular interpreted one

Name: Anonymous 2012-08-18 20:16

Read le SICP.

Name: Anonymous 2012-08-18 20:58

>>32
check le dubs

Name: Anonymous 2012-08-19 9:53

FYI I just downloaded a ripped version of the Go Programming Language Phrasebook that seems to be helping.

Somehow it's sad, but I don't have the 25USD nor the time to wait for it.

Name: Anonymous 2012-08-19 10:42

>>34
What is even sadder is that you think Go is a good language

Name: Anonymous 2012-08-19 11:08

>>35
I don't

Name: Anonymous 2012-08-19 11:16

>>35
I just think it's better than Python and Java

Name: Anonymous 2012-08-19 11:29

>>37
Both of those are far superior to Go

Name: Anonymous 2012-08-19 11:40

>>38
you mind telling me why?

Forced OOP is where I draw the line. And python has version bloat, I rage about it even when I am just a user not a developer.

Go could turn out to be worse, but you never know till you try it.

Name: Anonymous 2012-08-19 15:01

>>39
If you'd bother to use them you'd actually know they're excellent languages, it's all about using the right tool for the job.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List