Skip to content
/ sicp Public

Implementations of exercises and examples from Structure and Interpretation of Computer Programs, in Haskell and Racket.

Notifications You must be signed in to change notification settings

chrisnc/sicp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SICP in Haskell and Racket

This is my attempt at working through Structure and Interpretation of Computer Programs in Haskell and Racket, implementing each example and exercise that appears in the book. Racket is used mostly as a Scheme, the language used throughout the book.

I plan to skip over the "picture language" example and exercises (pages 172-192).

I recommend reading and working through the book yourself before looking at the implementations here, especially if you have never taken a class using SICP (which was the case for me).

The section, exercise, and example numbers are contained in the comments in the sources themselves, and the files are named roughly by what concepts/examples are covered by each file.

You should be able to grep for any number, e.g., grep -r 1.19 hs rkt and find which files contain a particular exercise or example.

How do I get set up?

All of the exercises can be run in their language's respective REPL.

For the Haskell implementations:

ghci Factorial.hs

For the Racket implementations:

racket -if factorial.rkt

About

Implementations of exercises and examples from Structure and Interpretation of Computer Programs, in Haskell and Racket.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published