What is the best book for learning racket(scheme)?

Probably the most obvious question. Buy do i need a 1000 pager or a 100 pager ?
After a book you need to be productive ...

1 Like

On the scheme side, SICP is free (though long IIRC).

HTDP is perhaps slightly more intro to Racket + programming, but is
still one of the top recommendations (and is also free).

I'm sure Stephen has a wiki page or something with books :slight_smile:

2 Likes

Of course we have to ask you the question are you

  • a total novice who needs 10,000 page book
  • an experienced Common Lisper who might get away with a 50 pager?
3 Likes

Hi Alain! Welcome :grinning:

There is some good guidance on the getting started page on the Racket Documentation: Getting Started

This guidance covers both if you are new to programming or if you are already a programmer.

If you do have a background in programming then another approach might be to ask for examples of the sort of things you want to do with Racket?

Some peoples goals are educational; learning about functional programming, programming language design, or advanced programming language features.

Other people want to build something specific:

  • a native application (gui or command line)
  • Web application (server or client side)
  • a DSL or whole language
    …or something in between?

Either way, let us know what your goals are and we will do best to help you.

Best wishes
Stephen

PS

The Racket books page: Racket

2 Likes

Is the scan published with permission from the authors and/or publishers?

If I can’t get confirmation I’ll have to remove the post.

S.

MIT Press owns the copyright to these books, and they would be very very very unhappy if they found out.

Thank you for the clarification.
I have deleted the post.

Welcome, Alain! Nice to have you.

My recommendation would be The Little Schemer, Fourth Edition by our very own Daniel P. Friedman and Matthias Felleisen. It's light, breezy, and fun but also ends up covering some deep topics. The sequel, The Seasoned Schemer, Second Edition will take you on from there.

2 Likes

I don’t know. Did not think about the possibility it did not have permission.

Please remove the link.

Easy mistake to make. It is removed now. Don’t worry about it.

Thanks!!!

There's also The Scheme Programming Language. I worked through the first two chapters and a part of the third and like the book. I especially like that there are so many exercises, including example solutions.

To people having checked out "The Scheme Programming Language" and the combination "The Little Schemer"/"The Seasoned Schemer", how do the books by Dybvig and Friedman/Felleisen compare? What does one do better than the other? I'm wondering if it's worth it to buy the Friedman/Felleisen book(s) if I could otherwise (continue to) work through the Dybvig book.

3 Likes

I'll think i'll start with "the scheme programming language".
It's a bit chez oriented but probably ok for racket also ?

2 Likes

I liked a few of these in addition to the ones that were already mentioned:

Teach Yourself Scheme in Fixnum Days
Realm of Racket - which was made like Land of Lisp Conrad Barsky is a hoot - I rarely get a chuckle out of a book on programming.
Essentials of Programming Languages
Kent Dyvbig's PhD Thesis - mind you, I am sure that there are mountains of other publications by other folks (probably some that are reading this forum now?), this is just a small slice out of my bookmarks on my browser.

Also, try out exercises online? Exercism has a Racket language track. I think that there are lots of others. A random search a while back gave me this one from Philip Wong - Scheme is pretty Lispy.

Then there is macros ... Fear of Macros is a pretty good introduction. I think that there is also another one I liked: JRMs syntax-rules for the Merely Eccentric

With a language as seasoned as Scheme, there is likely more lost to us than available. I think that Fortran is the only semi-commonly-used language older than the Lisp family?

2 Likes

I don't think I knew that Dyvbig did his PhD at UNC Chapel Hill (my
alma mater, as well)—now I'm wondering even more what happened to the
PL Tarheels…

1 Like