Follow

I learned some lambda calculus today and wrote my first real function in racket! I had struggled to understand functional programming but wow learning some lambda calculus really turned on the light bulb for me.

Now time to stream some "Hell Let Loose" over at w0rmh0le Live!

@nebunez I'd be curious to see the function. Been thinking of picking up a Lisp for a while, so it'd be cool to see something another beginner(?) put together!

@sagethesagesage It is very much a beginner function! It is Euclid's algorithm, which is presented in the beginning of "The Art of Computer Programming, Vol. 1".

I actually have a repository for all the examples on GitLab, but I haven't posted it yet; I'll get back to you when I do.

@nebunez Racket is a fantastic language. It's documentation is good and there are plenty of books on how to use it. Also the standard library is less "Batteries Included" and more "Here's a nuclear reactor, have fun."

Make sure to check out 2htdp/image. Functionally drawing pictures is pretty neat.

@nebunez the legendary book Structure and Interpretation of Computer Programs (SICP) could be an excellent introduction to Scheme, it is often strongly recommended, I liked it very much.

Also, I think How To Design Programs (another book) might be worth checking out in a second time.

Both are freely available online 🎉

@rbd @nebunez
SICP is... intense. "The Little Schemer" is perhaps a better introduction for those who've never done any functional programming.

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.