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

Pages: 1-4041-

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.

Name: Anonymous 2012-08-19 16:31

>>40
good you used the usual tactic of badmouthing the language and trying to encourage debating something else.

Now if someone were to respond to the topic that would be a really surprising turn of events! I don't care if it is the worst language ever, you understand me?
Just give me some useable free documentation.

Name: Anonymous 2012-08-19 16:39

Le Answer to the Ultimate Question of Life, the Universe, and Everything?
>>42

Name: Anonymous 2012-08-19 17:37

OP, just don't use Go as it is not LISP and is thus complete shit, plus it's made by google so it's like a turd that shits crap.

Name: Anonymous 2012-08-19 18:44

>>43
I use forth for this kind of stuff, for being way more badass than lisp in every possible way.

Can we get back to Go please?

Name: !!HH11NN2O7f1IW38 2012-08-20 4:03

lol

Name: Anonymous 2012-08-20 5:53

>>34
Where can I find this phrasebook?

Name: GNU Visual Pyskell++ 2012-08-20 6:08

GNU Visual Pyskell++

Name: Anonymous 2012-08-20 8:58

Effective Go and the tech talks are fine, OP.

You might consider reading about Plan 9 and CSP, however.

Name: Anonymous 2012-08-20 9:40

Name: Anonymous 2012-08-20 9:52

>>49
Do you have much prior programming experience? Perhaps Effective Go is too terse.

Name: Anonymous 2012-08-20 9:59

>>48
'fine', 'good enough'... but it can still be shit.

Name: Anonymous 2012-08-20 10:41

>>50
Variables are declared with the var keyword, followed by the variable name, and finally by the type. The existence of a specific keyword for variable declarations makes it easy to differentiate them from other types of statements.

consider this sentence, it is not in effective go and there is no equivalent to it. That might seem not really problematic but the same practice is kept for non-trivial things too.

Name: Anonymous 2012-08-20 11:01

>>52
Approximately half of that sentence is useless. It can be reduced to:
Variables are declared with the var keyword followed by the variable name its type.

Name: Anonymous 2012-08-20 11:56

>>53
That's not the point. It's missing.

Name: Anonymous 2012-08-20 23:27

You can use Javascript as a shell scripting language on Windows:

http://en.wikipedia.org/wiki/Windows_Script_Host

Name: Anonymous 2012-08-21 3:13

Mac OS X's widgets are XHTML/CSS/JS.

Name: Anonymous 2012-08-21 10:05

>>52
You should also read the spec. It's quite readable and contains everything about the language.

Name: Anonymous 2012-08-21 17:03

>>1                       `
>dealing with statically typed crap when it's slower than Javascript and CL

ISHYGDDT

Name: Anonymous 2012-08-21 17:26

>>58
Back to le imagereddits, ``please!"

Name: Anonymous 2012-08-21 17:51

Go's designers said it feels like a dynamically typed language. What they didn't tell you is that they were talking about the speed!

Name: Anonymous 2012-08-21 18:26

ONE WORD FORCED CAPITALIZATION OF THE PUBLIC VARIABLES THREAD OVER

Name: Anonymous 2012-08-21 18:55

>>61
Seriously, how can /prague/ be so hostile towards force indentation, which is practical, yet completely accepting of the fact that Go forced you to capitalize variables, which nobody in their right mind does in any other programming language?

Name: Anonymous 2012-08-21 18:59

>>62
This is especially troublesome giving that Go pride itself on being 100% UTF-8 compliant, yet you can't even have a Korean variable because there's no way to capitalize it.

Name: Anonymous 2012-08-21 20:18

>>62
Nobody on /prog/ uses Go.

Name: Anonymous 2012-08-21 22:38

>>62`
>implying FIOC isnt the most obtuse unpractical shit ever
>implying anyone on prog accepts Go in any way shape or form

/a seabed camelspore kilobag/

Name: Anonymous 2012-08-21 22:49

>>65
/le backseat bop/, ``greentexter''.

Name: Anonymous 2012-08-30 17:22

FYI I came across some free documentation which is actually usable

http://www.miek.nl/files/go/

Was on the cat-v site, I don't know maybe that's just me but I need documents to tell me exactly what is going on instead of just a sparse description when learning something new.
Maybe that is helpful for somebody.

I learned something from this thread to: even if this is the most popular programming board among the chans it seems generally better to post on some other chan. Sadly that even has become some universal truth.

Name: Anonymous 2012-08-30 21:09

>>65
I'm so sorry to read about your ineptitude. As a mental midget, pPerhaps you'd be more suited to scrubbing toilets.

Name: Anonymous 2012-08-30 22:51

>>68
I'm so sorry to know about your faggotude. As a cockloving homo, cCertainly you'd be more suited to fucking autistic niggers.

Name: Barack Obama 2012-08-31 13:41

>>66
/le backseat GOP/, ``Romney''.

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