Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i just cant wrap my head around the appeal of a language with:

a) no generic
b) no classes
c) no functional approaches
d) no lambdas
e) the least exciting type system
f) loving pointers
g) no multiple dispatch
h) hosed up error handling

i mean, you maaybe you don't like functional approaches, maybe you dont like OO, whatever. go has literally nothing. go has gofmt and the ability to pull stuff directly from github. its primary feature is having no features.

Adbot
ADBOT LOVES YOU

triple sulk
Sep 17, 2014



you forgot the slow as balls reflection package which is not a thing that goes unused

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

triple sulk posted:

you forgot the slow as balls reflection package which is not a thing that goes unused

apparently the only somewhat modern feature of the language

pram
Jun 10, 2001

MALE SHOEGAZE posted:

i just cant wrap my head around the appeal of a language with:

a) no generic
b) no classes
c) no functional approaches
d) no lambdas
e) the least exciting type system
f) loving pointers
g) no multiple dispatch
h) hosed up error handling

i mean, you maaybe you don't like functional approaches, maybe you dont like OO, whatever. go has literally nothing. go has gofmt and the ability to pull stuff directly from github. its primary feature is having no features.

it has a standard library that does pretty much everything out of the box. and the http server is great.

pram
Jun 10, 2001

Bloody posted:

we need just two languages: c for unsafe bullshit and c# for everything else.

i dont do windows development. thats a dead os

Shaggar
Apr 26, 2006
go is a dead language that only an idiot would use even ironically.

triple sulk
Sep 17, 2014



pram posted:

i dont do windows development. thats a dead os

c# is on os x, op

pram
Jun 10, 2001
its actually good

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Luigi Thirty posted:

I like lisp

I like being able to unfuckulate my program while it's running and recompile specific functions when I'm writing something

correct opinions these

pram
Jun 10, 2001

triple sulk posted:

c# is on os x, op

hehehehe :newlol:

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

Bloody posted:

we need just two languages: c for unsafe bullshit and c# for everything else.

we only need two languages, asm for a minuscule amount of machine-specific unsafe bullshit, and swift for everything else, including all other (occasional) unsafe bullshit.

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

pram posted:

i dont do windows development. thats a dead os

I don't understand why someone with these opinions wouldn't embrace the platform and jump into swift

way, way better than go, and also better than c#

pram
Jun 10, 2001
lol because i usually write servers that deploy to linux. theyre either going to be java or python

pram
Jun 10, 2001
ill be sure to pick it up when they port cocoa to linux

pram
Jun 10, 2001
like mentioning swift, or c# re: go is completely retarded for a lot of reasons. you aren't writing daemons in either of those. c# deploys to literally nothing useful. idk what bloody or sulk do professionally with that joke lang but its probably poo poo

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

pram posted:

it has a standard library that does pretty much everything out of the box. and the http server is great.

Wait like a server to put Web pages on and get posts and gets and stuff? Holy loving poo poo I take it all back

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

pram posted:

lol because i usually write servers that deploy to linux. theyre either going to be java or python

servers, are those for people whose garbage phones can't run native apps?

pram
Jun 10, 2001

eschaton posted:

servers, are those for people whose garbage phones can't run native apps?

yeah incredibly there is development work that doesnt end up with an app on a phone

pram
Jun 10, 2001

MALE SHOEGAZE posted:

Wait like a server to put Web pages on and get posts and gets and stuff? Holy loving poo poo I take it all back

yeah its like jetty except good

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

pram posted:

yeah incredibly there is development work that doesnt end up with an app on a phone

obviously, there's also development work that ends up with an app on an iPad or a Mac

pram
Jun 10, 2001
and id use swift if i was doing that?

eschaton
Mar 7, 2007

Don't you just hate when you wind up in a store with people who are in a socioeconomic class that is pretty obviously about two levels lower than your own?

pram posted:

and id use swift if i was doing that?

you should, it's a p good language

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

eschaton posted:

you should, it's a p good language

confirmed

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

triple sulk posted:

you forgot the slow as balls reflection package which is not a thing that goes unused

oh my god i totally forgot. it's like the best thing because go is the only language i've seen where reflection is a feature you see in like your 1st hour of learning go

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i actually kind of like go that's the reason i'm so mad about it being bad

pram
Jun 10, 2001
worse is better fyi

brap
Aug 23, 2004

Grimey Drawer
if you hate c# enough to dismiss it out of hand you've got some brand hangups to deal with

microsoft is basically a laff factory but c#/.net/visual studio/etc are good products

pram
Jun 10, 2001
where the gently caress would i use c#

Luigi Thirty
Apr 30, 2006

Emergency confection port.

pram posted:

where the gently caress would i use c#

a clown store for clowns

brap
Aug 23, 2004

Grimey Drawer
web services.

pram
Jun 10, 2001
on what? windows? lol

brap
Aug 23, 2004

Grimey Drawer
im basically waiting for all the good parts of .net to actually be usable on mac/linux because i feel pretty meh about every language except c# and swift

if i could start writing web servers and poo poo in swift i would just do that

if I had to write a web server to run on a linux idk I'd probably write it in java

pram
Jun 10, 2001
why not just smash your dick and balls with a hammer

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
:pram:

Ragg
Apr 27, 2003

<The Honorable Badgers>

pram posted:

why not just smash your dick and balls with a hammer

Well?

PleasureKevin
Jan 2, 2011

am i the only one that feels like if statements should return promises or by async in JS/node?

cause like they aren't really async, like var is.

if you do like

if ( scooby ) {
longFunction( scooby )
}

destroy()


then it will probably run destroy() before it does longFunction()

pram
Jun 10, 2001
in golang youd just use a waitgroup and defer done in longfunction

Gul Banana
Nov 28, 2003

~Coxy posted:

I wish they would hurry up with VS2015 so I can get EAC back :unsmith:

we're using the RC rather than wait for that v_v

PleasureKevin
Jan 2, 2011

pram posted:

in golang youd just use a waitgroup and defer done in longfunction

i can probably make an even emitter or some such thing but i've just never looked it up

Adbot
ADBOT LOVES YOU

Pollyzoid
Nov 2, 2010

GRUUAGH you say?
that go filter code reminds me of some dynamically typed poo poo

code:
func apply(slice, function interface{}, inPlace bool) interface{} {
	...
	fn := reflect.ValueOf(function)
	elemType := in.Type().Elem()
	if !goodFunc(fn, elemType, nil) {
		panic("apply: function must be of type func(" + in.Type().Elem().String() + ")  outputElemType")
	}
	...
}

// goodFunc verifies that the function satisfies the signature, represented as a slice of types.
// The last type is the single result type; the others are the input types.
// A final type of nil means any result type is accepted.
func goodFunc(fn reflect.Value, types ...reflect.Type) bool {
	if fn.Kind() != reflect.Func {
		return false
	}
	// Last type is return, the rest are ins.
	if fn.Type().NumIn() != len(types)-1 || fn.Type().NumOut() != 1 {
		return false
	}
	for i := 0; i < len(types)-1; i++ {
		if fn.Type().In(i) != types[i] {
			return false
		}
	}
	outType := types[len(types)-1]
	if outType != nil && fn.Type().Out(0) != outType {
		return false
	}
	return true
}
run-time type checking is cool

  • Locked thread