Message from @Gsurus

Discord ID: 272194475772608513


2017-01-21 02:34:17 UTC  

I remember when github was down when I needed to download some shit for my 3DS

2017-01-21 02:34:30 UTC  

Actually, I think his source control is private.

2017-01-21 02:34:43 UTC  

oh nevermind then

2017-01-21 02:35:08 UTC  

lmao

2017-01-21 02:35:10 UTC  

I like to support open source stuff and contribute, so I was wondering

2017-01-21 02:36:10 UTC  

I spend my time doing that at work when I have nothing else to do ^^"

2017-01-21 02:37:06 UTC  

Ah.

2017-01-21 02:37:11 UTC  

Do you know JavaScript?

2017-01-21 02:37:35 UTC  

yeah pretty much

2017-01-21 02:37:41 UTC  

Nice, nice.

2017-01-21 02:38:18 UTC  

it's not my favorite language but I do know it

2017-01-21 02:38:31 UTC  

What's your favorite language?

2017-01-21 02:38:54 UTC  

pure functional stuff

2017-01-21 02:39:01 UTC  

Ah.

2017-01-21 02:39:14 UTC  

i'm an IT teacher, so ...

2017-01-21 02:39:30 UTC  

i'd say stuff like Ocaml, haskell are my favorites

2017-01-21 02:40:08 UTC  

that's what I teach mostly, that and C / C++

2017-01-21 02:42:02 UTC  

I've never heard of Ocaml or haskell

2017-01-21 02:42:07 UTC  

I'll have to look into those.

2017-01-21 02:42:44 UTC  

yeah well, you should try to check those language if you want to learn more about functional programming

2017-01-21 02:43:40 UTC  

I'll have to, it sounds interesting. I don't think I've ever used a functional programming language.

2017-01-21 02:43:43 UTC  

Just object oriented.

2017-01-21 02:44:42 UTC  

well OcamL is object oriented too

2017-01-21 02:44:48 UTC  

Oh, neat.

2017-01-21 02:45:11 UTC  

but you would have to get rid of some concept that you know, like loops, variables...

2017-01-21 02:45:13 UTC  

😄

2017-01-21 02:45:35 UTC  

So how do you go about things that would usually use a loop?

2017-01-21 02:45:42 UTC  

Just write it all out manually?

2017-01-21 02:45:59 UTC  

by default in functional programming, variables and loops aren't really first citizen stuff

2017-01-21 02:46:14 UTC  

record are immutable and you use recursivity for "loops"

2017-01-21 02:46:33 UTC  

Oh, I see.

2017-01-21 02:50:40 UTC  

Kongou desu

2017-01-21 02:50:49 UTC  

Eeey

2017-01-21 02:50:54 UTC  

like a function for the Takeuchi Ikuo algorithm would be something like this in ocaml :
```ocaml
let rec tak x y z =
if y >= x then z
else tak (tak (x - 1) y z) (tak (y - 1) z x) (tak (z - 1) x y)
```

2017-01-21 02:51:12 UTC  

>.>

2017-01-21 02:51:23 UTC  

He

2017-01-21 02:51:24 UTC  

llo

2017-01-21 02:51:26 UTC  

what's going on with `z` in that example? At the ``if y >= x then z`` line

2017-01-21 02:51:34 UTC  

Hey nrg

2017-01-21 02:51:50 UTC  

@nrg get out