« first day (2281 days earlier)   

3:05 PM
Is there a C chatroom?
 
Ven
@BartekBanachewicz well yeah
no way around it to go and query a website
 
@eleanora yep, mostly empty
@Ven hard to tell what's fucking you over without tracing I'm afraid
 
Ven
:/
not sure what tools I should be using...
 
ghci?
looks like a small enough program to trace by hand
 
Ven
3:08 PM
can you step-in in ghci?
 
Ven
because otherwise it won't help - the IO does both printing and networking
@BartekBanachewicz sorry I'm a haskell noob :p
 
yeah ghci trace is pretty nice but you have to keep in mind that haskell doesn't call functions
 
Ven
that I know
 
you should be fine then
 
Ven
3:09 PM
I just want to see some "print" or "put" somewhere.
(no, not the state put)
 
I'm also wondering if you can replace the IO with your own IO
that would... ugh, log the prints ;)
 
Ven
well, I can probably bracket stdout
but it seems to be the wrong solution :P
 
3:25 PM
@BartekBanachewicz Ah that's a shame. Maybe I can ask about the complex type here?
 
@eleanora the complex type? The complex number type?
 
yes
 
well what about it
 
it seems complex matrix[n][n]; is valid code. But I am also told you have to specify float complex, double complex or long double complex
so what is the type of complex matrix[n][n] ?
 
@eleanora int-default?
actually no
apparently it's only float, double and long double according to the docs
 
3:28 PM
ok but complex matrix[n][n]; is valid code
 
@eleanora where did you read that complex m[][]; is valid code?
@eleanora source?
 
it compiles and runs happily
with no warnings
 
@eleanora that doesn't mean it's valid
 
@eleanora Under GCC; not under Clang.
I'd file a bug against GCC for this if I cared about C at all.
 
@Griwes Very interesting! Thanks for testing it under clang
 
3:33 PM
@Griwes aha
yeah fuck C
terrible macros is just one reason
 
is there somewhere to test different gcc versions online?
 
isn't that C++
 
@eleanora pure C compilers are p much dead for modern platforms nowadays
 
@BartekBanachewicz Oh! I had no idea. It seems -x c is the answer for godbolt
 
3:45 PM
I mean sure they might use some different components
 
gcc is a c++ compiler truncated when called gcc and full c++ when called g++
 
not sure what parser it uses though
C can be parsed in a much simpler way than C++
 
Ven
@BartekBanachewicz ugh
the debugger is very very :|
oh well. Now I know it's getGETRequest_, AKA getGETRequest_; that's doing it
 
@Ven good job
 
Ven
I don't see how it's doing that. At all.
reportEvent ResponseFinish (show (rqURI req))
 
3:58 PM
hopefully someone will report the gcc bug :)
 
Ven
@BartekBanachewicz ty! fixed it.
@BartekBanachewicz silenceReq = (setOutHandler (const $ return ()) *>)
 
Ven
you have to manually tell it to STFU.
 
4:14 PM
dumb
 
Ven
:(
I switched it to (setOutHandler discord *>)
yay for Control.Monad.Extra
 
nwp
yay for sending garbage to discord
 
Ven
@nwp ?
what did I do?
 
@Ven discord *>
 
4:18 PM
evil
 
damn I really wish it was spring already
like
 
Ven
oh. :D
I meant discard.
 
snowboarding is cool but it's not bike riding cool
 
Ven
My code looks neat. I like it.
 
the speeds just aren't there on the hills around
and mountains are too far
so eh
 
Ell
4:21 PM
I prefer skiing to snowboarding
I've only snowboarded once though
I kept falling over :V
 
@BartekBanachewicz Ride your bike down hill.
 
@EtiennedeMartel Downhill mountain biking is awesome. Ride a ski lift (or gondola) up the mountain, then ride down. Utterly impractical, practically guaranteed to cause at least a few injuries, and so damn fun you're grinning even as you mop blood off your face. :-)
 
ergh... stupid vpn that has to be initiated via firefox
 
@Ell Even really good snowboarders fall a lot more than even a mediocre skier.
 
@JerryCoffin because they are cooler :P
 

« first day (2281 days earlier)