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
b0lt
Apr 29, 2005

Dessert Rose posted:

compiler goes, "hey maybe you don't want to do that"

add a thing that you think might solve the problem

compiler stops saying anything, but now your program will explode without warning

turn on warnings

Adbot
ADBOT LOVES YOU

Brain Candy
May 18, 2006

b0lt posted:

turn on warnings

then -Werror

Arcsech
Aug 5, 2008

Valeyard posted:

i dont think ive ever seen two places agree on what "referential transparency" means, in regards to haskell, and how it differs from "pure"

essentially you can treat them as interchangeable

an expression is referentially transparent if all the functions involved in it are pure. technically an expression can be referentially transparent if it has an impure function as part of it, as long as the impure functions side effects have no impact on the behavior of the program (although you will almost never run into a situation where this is actually the case)

so functions are pure, expressions are referentially transparent. in practice they often mean the same thing

compuserved
Mar 20, 2006

Nap Ghost

fleshweasel posted:

hi, just popping in to be the nth person to say do the interview bitch

gonadic io
Feb 16, 2011

>>=

Arcsech posted:

impure functions side effects have no impact on the behavior of the program (although you will almost never run into a situation where this is actually the case

one impure data structure for which is this is the case (by design) is in the ST library. in essence it's the same as State except that the mutations happen in-place and it gives destructive updates on mutable data. This lets you do stuff like doing various algorithms in place and so on. for a practical example see this paper: Lazy Depth-First Search and Linear Graph Algorithms in Haskell

the core idea is that the main dfs algorithm is implemented using mutation to give vastly increased speed, and then there's lots of utility and other methods all implemented in pure code on top of this. actually using the module, you couldn't tell at all that it uses impure code internally.

gonadic io
Feb 16, 2011

>>=
still marking courseworks:

quote:

The results are presented in table ??

latex strikes again!!

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

Brain Candy posted:

then -Werror

we have warnings and warnings as errors turned on but lol if you think that matters apparently

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...
oh, i see what you did there

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

Dessert Rose posted:

we have warnings and warnings as errors turned on but lol if you think that matters apparently

valgrind

Valeyard
Mar 30, 2012


Grimey Drawer

Arcsech posted:

essentially you can treat them as interchangeable

an expression is referentially transparent if all the functions involved in it are pure. technically an expression can be referentially transparent if it has an impure function as part of it, as long as the impure functions side effects have no impact on the behavior of the program (although you will almost never run into a situation where this is actually the case)

so functions are pure, expressions are referentially transparent. in practice they often mean the same thing

well that does help a little and makes sense

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

windows :(

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe

gonadic io posted:

also most of them are overfitting to the test data so much down to picking the best seed for their RNG

might as well go ahead and fill out their acceptance letters into the ml phd program then

Subjunctive
Sep 12, 2006

✨sparkle and shine✨

it's only overfitting if there's another universally accepted data set that someone can use to call you out

rjmccall
Sep 7, 2007

no worries friend
Fun Shoe
why waste an excellent opportunity to add more data to your training set

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i really wish i could program in java, c#, or swift every day and not ruby

triple sulk
Sep 17, 2014



c# is great

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

MALE SHOEGAZE posted:

i really wish i could program in java, c#, or swift every day and not ruby

i could have had a daily c# job but i decided to go gently caress myself and write c++ instead

really what i want is a clojure job

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...
in the end, at least you aren't writing php or js

Bloody
Mar 3, 2013

I write verilog kill me

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...
my reasoning was basically, i'm already pretty good at c#, so i should get that good with a different, more difficult language

be careful what you wish for

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
yeah i dont really feel like i'm missing out by eliminating pointer issues from the class of problems i have to deal with

like i am excluding myself from all the really cool low level stuff and eventually i'll want to get into it but there are plenty of interesting problems to solve w/o having to manage any memory

VikingofRock
Aug 24, 2008




Modern C++ really doesn't have that much manual memory management, and what you do have can usually be handled automatically by a smart pointer. I actually really like C++ because it's not particularly dogmatic about it's OO, meaning you can have useful stuff like free functions. Plus I think RAII is a far-superior system to garbage collection.

jony neuemonic
Nov 13, 2009

Dessert Rose posted:

really what i want is a clojure job

same except common lisp.

unfortunately, i haven't seen a shop here using anything but php.

Bloody
Mar 3, 2013

MALE SHOEGAZE posted:

yeah i dont really feel like i'm missing out by eliminating pointer issues from the class of problems i have to deal with

like i am excluding myself from all the really cool low level stuff and eventually i'll want to get into it but there are plenty of interesting problems to solve w/o having to manage any memory

lol if your only complaint with c++ is pointers

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Bloody posted:

lol if your only complaint with c++ is pointers

i've never used it so...

lol if you have any complaints about c++ besides pointers

Bloody
Mar 3, 2013

pointers are good and cool

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?

Dessert Rose posted:

compiler goes, "hey maybe you don't want to do that"

add a thing that you think might solve the problem

compiler stops saying anything, but now your program will explode without warning

welcome to the big leagues, bucko!

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:

I write verilog kill me

change it up and write Haskell to write Verilog instead

Dessert Rose
May 17, 2004

awoken in control of a lucid deep dream...

eschaton posted:

welcome to the big leagues, bucko!

this is what it feels like, yeah

which is, I'll admit, part of the reason I decided to go for it

gonadic io
Feb 16, 2011

>>=

CλaSH (pronounced ‘clash’)

uuhhhhh no thanks

Valeyard
Mar 30, 2012


Grimey Drawer
https://wiki.haskell.org/Beta_reduction

When it says "free occurrence" , surely it means "bounded occurrence", right?

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:
terrible programmers thread: monad is like burrito

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

bobbilljim posted:

terrible programmers thread: monad is like burrito

i like to eat burritos

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Captain Foo posted:

i like to eat burritos

i hate that you cant get good mexican food in denmark, it loving sucks

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder

Snapchat A Titty posted:

i hate that you cant get good mexican food in denmark, it loving sucks

You'll have to make it your self

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

Snapchat A Titty posted:

i hate that you cant get good mexican food in denmark, it loving sucks

i recall this from my time in copenhagen

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



MALE SHOEGAZE posted:

You'll have to make it your self

btw i make a p good chili, pro tip: french onion powder

also for some reason amsterdam has a lot of really great argentinian steakhouses

jesus WEP
Oct 17, 2004


Snapchat A Titty posted:

btw i make a p good chili, pro tip: french onion powder
lol

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Snapchat A Titty posted:

btw i make a p good chili, pro tip: french onion powder

this is also a good thing to mix into your hamburger beef

Adbot
ADBOT LOVES YOU

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?

gonadic io posted:

CλaSH (pronounced ‘clash’)

uuhhhhh no thanks

that aside it honestly looks p interesting

  • Locked thread