|
pram posted:its actually the best actually a language designed in the last 10 years that has a static type system but not generics is garbage hth
|
# ? May 22, 2015 05:28 |
|
|
# ? May 28, 2024 00:27 |
|
every time i think about it i am blown away by how loving stupid the decision to not have generics is even java type erasure generics are pretty helpful
|
# ? May 22, 2015 05:29 |
|
what could possibly have been the motivation to omit generics? they're like the least-controversially-useful thing you can have in a modern language.
|
# ? May 22, 2015 05:31 |
|
Arcsech posted:actually a language designed in the last 10 years that has a static type system but not generics is garbage hth actually rob pike is way. way smarter than you and probably has a bigger dick. ya mad?
|
# ? May 22, 2015 05:33 |
|
the smartest engineers didnt include generics durrrr cry cry *wipes tears with copy of learn you some erlang*
|
# ? May 22, 2015 05:33 |
|
i just cut myself on pram's goposting
|
# ? May 22, 2015 05:36 |
|
pram posted:actually rob pike is way. way smarter than you and probably has a bigger dick. ya mad? Rob's smart, but it's not like he redefines the category. he had a lot of latitude on p9 and so he got to flex all over, but it's not clear that he's really that connected to the realities of industrial software development. go seems like a language designed for "software development as experienced by Rob Pike", but not necessarily one that generalizes to "software development as experienced by anyone who actually has constraints".
|
# ? May 22, 2015 06:00 |
|
Arcsech posted:actually a language designed in the last 10 years that has a static type system but not generics is garbage hth another right opinion itt
|
# ? May 22, 2015 06:08 |
|
Subjunctive posted:Rob's smart, but it's not like he redefines the category. he had a lot of latitude on p9 and so he got to flex all over, but it's not clear that he's really that connected to the realities of industrial software development. go seems like a language designed for "software development as experienced by Rob Pike", but not necessarily one that generalizes to "software development as experienced by anyone who actually has constraints". thank you for your opinion but i dont get that last part. its a simple procedural language, its really good and easy for web and unix stuff. rob pike is a unix/p9 guy and google is a web company.. makes sense to me
|
# ? May 22, 2015 06:24 |
|
coincidentally my deployment environment is unix and my end users are using http
|
# ? May 22, 2015 06:25 |
|
after spending 90% of my time in java trying to fight with compilation issues and fighting with intellij i can understand a lot of the motivations behind go
|
# ? May 22, 2015 06:42 |
|
intellij is so loving bad
|
# ? May 22, 2015 06:43 |
|
deploying your go source with a docker onbuild container is so loving sweet. u dont even know man. straight from git to prod
|
# ? May 22, 2015 06:44 |
|
yeah it's really cool
|
# ? May 22, 2015 06:47 |
|
docker compose sucks tho
|
# ? May 22, 2015 06:48 |
|
use fleet lol
|
# ? May 22, 2015 06:49 |
|
MALE SHOEGAZE posted:intellij is so loving bad nah. maybe you are bad, hmm?
|
# ? May 22, 2015 06:51 |
|
maybe programming doesnt have to be masochistic? maybe haskell and erlang and scala are actually pointless poo poo? and go is the best? some food for thought
|
# ? May 22, 2015 06:52 |
|
erlang is actually useful in some specific cases unlike haskell or scala
|
# ? May 22, 2015 06:52 |
|
pram posted:maybe programming doesnt have to be masochistic? maybe haskell and erlang and scala are actually pointless poo poo? and go is the best? some food for thought code:
|
# ? May 22, 2015 06:55 |
|
channels / go routines are really cool though
|
# ? May 22, 2015 06:56 |
|
MALE SHOEGAZE posted:
there are a lot of ways to do this. reflect, switch. lol. i will admit int,uint,float are a pain in the rear end but it isnt impossible. for example just casting from an interface (i didnt put much thought into this) http://play.golang.org/p/ySev-ZSQC6 code:
|
# ? May 22, 2015 07:21 |
|
I'm highly amused that you are defending that code and not mocking the poo poo out of it
|
# ? May 22, 2015 07:27 |
|
glad i can bring a little joy into yr life
|
# ? May 22, 2015 07:29 |
|
pram posted:there are a lot of ways to do this. reflect, switch. lol. i will admit int,uint,float are a pain in the rear end but it isnt impossible. for example just casting from an interface (i didnt put much thought into this) i'm the total lack of compile time type safety: http://play.golang.org/p/ywG69MjjlV
|
# ? May 22, 2015 07:32 |
|
what do you expect, theyre strings going into an interface. write a test
|
# ? May 22, 2015 07:35 |
|
pram posted:there are a lot of ways to do this. reflect, switch. lol. i will admit int,uint,float are a pain in the rear end but it isnt impossible. for example just casting from an interface (i didnt put much thought into this) this post convinced me to learn go
|
# ? May 22, 2015 07:36 |
|
pram posted:what do you expect, theyre strings going into an interface. write a test i expect my language to offer type safe ways to express generic functionality, as opposed to totally untypesafe ways
|
# ? May 22, 2015 07:42 |
I dunno pram, I'm not really sure that's better thanC++ code:
code:
|
|
# ? May 22, 2015 07:46 |
|
VikingofRock posted:I dunno pram, I'm not really sure that's better than yeah but where are your unit tests???
|
# ? May 22, 2015 07:47 |
|
i mean if there was even just like, multiple dispatch http://play.golang.org/p/gCslvwjdLp but nope lol!!
|
# ? May 22, 2015 07:48 |
|
no the best solution is to pass around empty interfaces and then reflect on things as if you were writing ruby
|
# ? May 22, 2015 07:50 |
|
gos types system is like the worst type system i've ever seen
|
# ? May 22, 2015 07:50 |
|
MALE SHOEGAZE posted:docker compose sucks tho i use docker compose (actually we're still on fig) at work
|
# ? May 22, 2015 07:52 |
|
MALE SHOEGAZE posted:i expect my language to offer type safe ways to express generic functionality, as opposed to totally untypesafe ways its type safe if you execute it
|
# ? May 22, 2015 07:58 |
|
i will relent. other languages may very well be better suited for multiplying numbers
|
# ? May 22, 2015 07:59 |
|
but heres the thing: that c++ program took 12 hours to compile and has a bunch of dynamically linked library dependencies. suck it nerds
|
# ? May 22, 2015 08:01 |
|
pram posted:but heres the thing: that c++ program took 12 hours to compile and has a bunch of dynamically linked library dependencies. suck it nerds 2008 called etc
|
# ? May 22, 2015 08:05 |
|
go compiles quickly because it doesn't have to link to any libraries because no one has written any useful libraries for go
|
# ? May 22, 2015 08:07 |
|
|
# ? May 28, 2024 00:27 |
|
there are actually a lot. ive been using this one lately https://github.com/koding/kite also bash doesnt do floating point, what a piece of poo poo expr 2.3 \* 3 expr: not a decimal number: '2.3'
|
# ? May 22, 2015 08:10 |