Preparation
- Save the following as
hello.rkt
#lang racket
(display "hello world")
Command Line
run the program with
$ racket hello.rkt
There's a kindof obvious bug. Figure how to fix the bug. There's a few options.
use the time command
$ time racket hello.rkt
Now compile the code with
$ raco make hello.rkt
Time 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.rkt
program 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
$ racket
There are some extra commands available in the command line REPL.