[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Go Language

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 46
Thread images: 1

File: download.jpg (5KB, 310x162px) Image search: [Google]
download.jpg
5KB, 310x162px
What do you think about Go? Does it have any potential?

Afaik, some university CS professor i talked to is amazed by it, use it all the time in webdev and he thinks it's the future

I literally don't know anything about webdev, i'm just a c# noob and i wonder would it be better to focus on ASP or learn Go right away?

Is there any consensus here on /g/ about Go, i rarely see any threads about it
>>
>>62457915
shit language
learn Python instead
>>
>>62457952
apparently it's fast as fuk, way faster than python
>>
>ASP
Probably harder to get into since it's proprietary. Does have wide industry adoption.
>Go
Many free resources and open source community. Does have decent industry adoption.
That's what you need to know about it for webdev. Go is suitable for any kind of web project.
>>
>>62457969
asp is open source anon
>>
>>62457976
Open source is not related to proprietary. Technically Go is proprietary too. I meant you're restricting yourself infrastructure-wise. Go is rather agnostic as far as how you deploy it, you just need your binary and you're set. You can have it be a raw server or put it behind nginx or anything.
>>
>>62457966
and 5 times as verbose
also you don't have any application that need Go speed anon, don't fool yourself
>>
>>62457915
>What do you think about Go?
Embarrassment of modern programming languages.
> Does it have any potential?
Who knows? We all know how Dart or Typescript "killed" JavaScript, Kotlin "replaced" Java, and Fuschia "replaced" Linux

>Protip:
Side projects never succeeds
>>
>>62457952
>>62457966

Actually, Nim is very fast. They haven't reached version 1 yet but they already ported python's standard library into Nim
>>
>>62458040
>they already ported python's standard library into Nim
source?
>>
>>62458033
>Embarrassment of modern programming languages.

why is that?

Only reason i consider go as language of choice is because google is behind it, that means it won't fail that easily
>>
>>62458049
https://github.com/Yardanico/nimpylib
>>
>>62458052
>that means it won't fail that easily
Dart
>>
>>62458040
>using language with single digit users
lmaoing at your life
>>
>>62458052
http://nomad.so/2015/03/why-gos-design-is-a-disservice-to-intelligent-programmers/
>>
>>62458083
It's not out yet
>>
>>62458052
Remember anon, for /g/ any successful language is an embarrassment. Soon some guy will show up telling you to write your app in ADT.
>>
>>62458127
>>62458073
>>
>>62458127
I know that, i learn c# and it's really fun. I just want to see if Go has any future whatsoever, seems to me it has but i don't know a lot of things
>>
>>62458140
It's used in production by very relevant projects (examples include Docker and Dropbox), if you like C# then learn ASP first. Nothing prevents you from looking into Go afterwards. They will both allow you to write any kind of app you want.
>>
>>62457915
If you want to do webshit, yeah why not.
It's not like you are bright enough to grasp brilliant languages. Turn off your brain and keep writing duplicate code, that's where you are good at.

t. R Pike
>>
>>62458090
>use flag instead of os.Args, which would be the equivalent of what the D code does, just to make the code longer
stopped reading there
>>
>>62457915
It has metaprogramming that makes C look good and a type system that makes C++ look good.
Think about that for a moment.

Don't know about the rest, but given how backwards those first two things are, I'm sure it will make something else look good.
>>
>>62458189
Hi
I have 2 arrays. One of them are ints and the other ones are doubles.

How many sort functions would I have to write in Go if there were no sorting function imported?
>>
>>62458212
1
>>
>>62457915
penis
>>
>>62457915
I like that go compiled into binary. I'm doing some tool for me with web-interface and it's single binary that serves built-in html/css/js from itself without relying on apache(nginx/etc), cron for timing and so on. Just a binary, systemd service or init script for launch and it will do eveything by itself.
>>
>>62458229
Can you show how it's done? You are not going to do any type conversion, are you?
>>
>>62457915
Meh. Static typing with no generics is a serious flaw. I like how it dispenses with most of the bloat of a modern OOP language.
>>
>>62458245
https://github.com/cheekybits/genny
>>
>>62458289
>With generics
Too bad go doesn't have generics
>>
>>62458289
>his language needs a separate preprocessor to have generics
Christ, it's like old school Java all over again.
>>
>>62458245
Is this the mentality of Go haters? Just look how it's done in std library.

- single sorting function working in interface sort.Interface
- sort.Interface specifies functions Len(), Less(i, j), Swap(i, j), it's meant for collection, not for type itself
- implement these functions on array of your types (already in fort primitive types) and your array is now sortable by that function
>>
>>62458324
Java has Generics
Heck, it even has higher order functions
>>
>>62458333
Yeah but how many times do I have to write this function? One for each type?

Sad.
>>
>>62458334
>old school
Java didn't have generics until Java 5. Even now it's little more than a cast macro with loose type checking.

Also Java's lambdas are rather weak too.
>>
>>62458338
no, one for interface sort.Interface
>>
>>62458324
It's kind of worse than the C preprocessor.
C textual replacements may be shit, but at least they are standardised texual replacements, unlike this crap.
>>
>>62458356
post yfw ANSI C has more support for generics than Go
>>
>>62458367
>support for generics
It's called "metaprogramming", anon.
>>
>>62458373
They are not synonymous
>>
>>62458390
That's my point. You can use the C preprocessor for generics, but it is even worse at that than at the usual simple replacements it is usually used for.
>>
>>62458169
what did Pike mean by "brilliant languages"? Go is not much faster than Java or C#, and they're both pretty easy (especially if you take Kotlin or Groovy instead of Java)
>>
>>62457915

Go is like the smallest overlap of programming languages. If you know something like Java or C you can learn Go in two days and get cracking.

This has good sides and bad sides.

Bad sides:
Google. (How could you, Rob..?)
Also Go is really verbose, basically because it's not a powerfull language. You want some basic functions like map/reduce/filter? Go, write it yourself ! (no pun intended)
Furthermore Go is a trade-off langauge, a middle ground. Python or Ruby are more productive. C is more low level. Java is more powerfull. But you could also say: Ruby or Python runs much slower. C has much more pitfalls. Java is not compiled to machine code.


Good sides:
You don't have to actually learn Go, apart from Go channels there is nothing really new. Also Go is funny to write, it's just flows from your fingers. It's somehow the opposite of langauges like Haskell or Scala: Instead of reasoning 10 minutes and then writing two extremely powerfull lines you write 50 lines, but you don't have to think about it a lot. This is somehow bothersome (and reminds me of Java), but it's also great because you feel like you acctually accomplished a lot (many LOC = good feeling). Also it's much easier to reason about code, in langauges like Scala it can be very hard to understand what exactly the code is doing since a lot of things happen implicitly. In a certain way Go took the Python philosophy of "explicit is better than implicit" to the next level..


Summary:
Go is doing well and rightfully so. It might always be considered the "brainlets" language, but it's a good designed language that is really fun to write. It takes care of so many tideous things (indenting your code for you). It's like playing with Lego: you simply learn how the tiny parts work to gether and start playing.
It's concurrency is not the same power level as Elixir/Erlang, but it's super simple and easy to use. Go makes concurrency fun.
>>
>>62458233
Will you publish it to github? I'd be interested
>>
>>62459222
Maybe? I don't really think someone else want it anyway. It's rss-client for transmission-daemon. There is flexget, which is more powerful than anything i'm going to do, but i just want to be able to edit/add rules from my tablet. And almost entire application made from existing libraries.
Thread posts: 46
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.