TIDE
Languages

Racket

Installing Racket on Ubuntu in TIDE

Racket

Racket is a general-purpose, multi-paradigm programming language in the Lisp/Scheme family. It is widely used for language creation, functional programming, and computer science education.

Installation

To install Racket on TIDE's Ubuntu system:

apt update
apt install -y racket

Verification

Verify that Racket is installed properly:

racket --version

Running the REPL

Start the interactive Racket REPL:

racket

You can evaluate expressions directly:

> (displayln "Hello from Racket REPL!")

To exit the REPL, press Ctrl+D or type (exit).

Hello World Example

Create a Racket script file named hello.rkt:

cat << 'EOF' > hello.rkt
#lang racket
(displayln "Hello, Racket!")
EOF

Execute the script using the racket command:

racket hello.rkt

Official Resources

On this page