Preparation
- Save the following as
hello.rkt
#lang racket
(display "hello world")
Command Line
run the program with
$ racket hello.rktThere's a kindof obvious bug. Figure how to fix the bug. There's a few options.
use the time command
$ time racket hello.rktNow compile the code with
$ raco make hello.rktTime it again. What do you observe?
DrRacket: A Racket Specific IDE
Start DrRacket from the activities menu
Referring to the DrRacket documentation as needed, open and run the
hello.rktprogram from the previous part.
REPL
The bottom window of DrRacket allows the interactive evaluation of racket expressions.
If you prefer working on the command line, you can just invoke
$ racketThere are some extra commands available in the command line REPL.