Giter Club home page Giter Club logo

racketry's Introduction

Racketry

Exercises and projects in computer science using Racket.

SICP Revisited

I have added some Racket style to the SICP exercises: the use of structs where convenient, the use of named-let, unit testing, modules and other Racket features whenever they make the code look better and do not defeat the purpose of the exercise. I also take opportunities to practice using multiple return values, Racket for-loops, continuations, macros, structs, Racket OOP, and other language features or styles of programming.

Some SICP examples in the text of the book are refactored in various ways that I found interesting or enlightening. Procedures are given longer, more descriptive names. Interesting problems provide opportunities for going on tangents: there are many such opportunities in SICP.

  • SICP 1.1 -- 1.2. Exercises 1.1 to 1.28. Expressions. Evaluation models: normal order, applicative order. Roots, Newton's methond, adaptive methods. Factorials, recursion, the Ackermann function, binomials, fibonacci numbers. Estimating growth of computations, change-making problems, sin(x). Tail-recursion, fast exponentiation, advanced ways of computing Fibonacci numbers. gcds, Lame's theorem. The Miller-Rabin prime test.

Online version of SICP is here:

Structure and Interpretation of Computer Programs (online)

  • SICP 1.3. Exercises 1.29 to 1.46. Lambdas, half-interval bisection method, fixed-points, average-damping, continued fractions, Newton's method of roots, function smoothing, iterative improvement.

  • SICP 2.1

Projects

  • Pretty-printing tables.

  • Investigation of Lambda-calculus (based on an exercise in SICP.)

  • Generating Sierpinski's triangle with Racket graphics.

racketry's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.