Posts
Exercise 1.2
SICP Exercise 1.2.
Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.
Exercise 1.1
SICP Exercise 1.1.
Below is a sequence of expressions. What is the result printed by the interpreter in response to each expression? Assume that the sequence is to be evaluated in the order in which it is presented.
Chapter 1.1.6 - Conditional Expressions and Predicates
This chapter covers three different ways of doing case analysis:
cond,if, andand/or/not.Chapter 1.1.5 - Applicative vs Normal Order Evaluation
Applicative vs Normal Order Evaluation
Chapter 1.1.5 is about substitution - comparing applicative-order evaluation and normal-order evaluation. It uses the following example, from the previous section:
Chapter 1.1.2 - 1.1.4 - Environment, Functional Programming and Substitution
Refreshing Myself On the Basics
I made some revisions this morning to how I’ll work through these exercises. Instead of running Racket in a Docker container, which was using way too much overhead, and taking forever to spin up, I just installed Racket directly on the VM and will run the Racket programs that way.
Write For Your Life
Write For Your Life
Yesterday my partner and I went to the thrift store to look for gifts for the kids. Inevitably I’m draw to the few rows of books. It’s so easy to get lost and let my my wander as I read through the titles, pulling some out that that sound, or look, interesting.