How to get started - racket/racket GitHub Wiki
The getting-started guide covers installation, and learning resources for both beginners and experienced programmers.
Getting Racket:
- Download official Racket -> includes Linux, MacOS, Windows and UNIX.
- The Linux installer is the recommended way to install on Linux and should work on most distributions, including relatively old distributions.
- Many Linux package managers do not have the latest release: https://repology.org/project/racket/badges
- Racket Ubuntu PPA is available on current Ubuntu versions
- Installing Racket on a Chromebook
- Build from source
- Android
- You can also use Racket in the Cloud, but these are either not free, or lack functionality you get with installing Racket and using DrRacket or Racket Mode(on Emacs).
Configuring your environment/editor
IDE/Editor:
- DrRacket IDE (included in Racket installer)
- Emacs: Racket Mode
- Vim, VSC, Neovim, and many others
Environment:
- Configure Command Line for Racket: set your PATH environment variable so you can use
raco
and other Racket command line tools (e.g.scribble
&slideshow
)
Once configured you can install any packages you need from the command line;
-
raco pkg install cover
- A code coverage tool -
raco pkg install metapict
- The metapict library provides functions and data structures useful for generating picts. The library includes support for points, vectors, Bezier curves, and, general curves. -
raco pkg install rash
- The Reckless Racket Shell. For interactions and scripting. -
raco pkg install sicp
- SICP Support for DrRacket -
raco pkg install c
- This package is for writing C programs in DrRacket. -
raco pkg install drracket-restore-workspace
- Restore workspace for DrRacket -
raco pkg install quickscript-extra
- useful scripts that extend DrRacket. -
raco pkg install DrRacketTheme
- set the background image for DrRacket menu:View
->Set Background
-
raco pkg install files-viewer
- a file manager for DrRacket -
raco pkg install drcomplete
- DrComplete is a set of DrRacket Plugins for better autocompletion. -
raco pkg install todo-list
- A list of goals + interactive commands for solving them in DrRacket` - Todo List is a DrRacket tool that displays a list of the unwritten parts of a program, as determined by the macros that implement those unwritten parts, as well as providing opportunities to write the unfinished parts of the program with compiler support. -
raco pkg install chez-runner
- simple plugin to run chez scheme in DrRacket.
There is also a Note to Readers with Lisp/Scheme Experience in the Racket Guide.
First tasks
There are various tasks you can attempt to learn Racket;
- Easy bugs to fix
- let us know if you have trouble with the Racket Documentation: When you find the documentation obscure, treat it as a documentation bug and report it by sending an email with your observations and suggestions to the Racket mailing list or https://groups.google.com/forum/#!forum/racket-users This is an important way you can contribute even if you are very new to Racket
- use http://timb.net/popular-languages.html to find incomplete rosetta-code tasks
- Intro Projects
Useful resources:
- How to Program Racket: a Style Guide
- Racket Cheat Sheet
- Beautiful Racket: an introduction to language-oriented programming using Racket
- Teach Yourself Racket(TYR): is a rapid introduction to the basics of programming in full Racket, intended for mature programmers.
- Learning Racket by Brian Adkins of Lojic Technologies
- IDE's and text editors
- Tutorial: Creating a Package by Stephen Chang & Getting Started with packages
- Racket dev workflow by Greg Hendershott
- API support in Racket
- Portable (USB Stick) Racket for Windows
- Scheme and Racket books