[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: 1515248391357.jpg (119 KB, 1431x901)
119 KB
119 KB JPG
https://golang.org/
https://gobyexample.com/

func main() {
words := []string{"Let's", "love", "Go"}
rand.Seed(time.Now().UnixNano())
q := make(chan string)
for _, w := range words {
go func(w string) {
time.Sleep(time.Duration(rand.Int63n(1e9)))
q <- w
}(w)
}
for i := 0; i < len(words); i++ {
fmt.Println(<-q)
}
}

Good morning anons, any of you use Go?
What are your opinions?

I only recently started using it a bit, I mainly come from C and Haskell, really liking the minimal language design, the fact that it compiles and the easy, practical concurrency.

However somehow the fact that it is developed at Google makes me uncomfortable, probably pretty irrational, but it is what keeps me from fully enjoying it.

Im currently about to graduate with a Math masters. How about you?
>>
>>69757892
>What are your opinions?
Would've used it but the C FFI cost is gigantic and ridiculous
>>
Go is really great for web stuff but as the other anon said the C calls are awfully slow. Gorounites are really great though.I hope go 2.0 is gonna fix some of these issues without fucking the language up entirely.
>>
I'm glad for go. It taught me something.

>defer as is implemented in Go is not a good idea
>running an in-house assembler that's incompatible with anything else sucks
>not compiling into ELF object files sucks
>not copying C in every little quirk is a good idea (but this was clear from the beginning so nothing new)
>code analysis tools such as guru rocks
>sized arrays/spans/views in core language provide a lots of place for formally omitable bound checks

confession: I was too brainlet to understand how to work with the image library

I'm also deeply convinced that anyone seeding with current time, no matter the resolution, deserves a rope.
>>
Why use Go??? Go can't replace C..
>>
>>69760081
Its not trying to replace c.
>>
I want something to replace C already. Its just too damn good, why can't lang devs step up their game
>>
>>69760614
I know I am going to get called an sjw for this but rust is actually looking pretty good.
>>
>>69757892
Is there any point to it, beside being less powerful and slower than Java?
>>
>>69760876
Its about as fast as java is a lot of use cases and consumes a lot less memory than java.
>>
File: golan.png (173 KB, 410x670)
173 KB
173 KB PNG
>>69757892
>>
>>69757892
Why did you steal that code from lainchan?
>>
>>69761174
delet
>>
>>69761190
It's fine, just give proper credit to the dude who made that OP on the programming board. Lainchan is a chill place so I'm sure they won't mind but still
>>
>>69760597
Then what's the point
>>
>>69761371
>>69761174

Delete these posts
>>
>>69762307
To make back end servers that scale well.
>>
>>69762376
Can I have a job
>>
It doesn't have generics
>>
>>69757892
import os/exec
func main() {
for {
go cmd := exec.Command("NOTIFY_SOCKET=/run/systemd/notify systemd-notify '' ")
}
}



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.