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 racketVerification
Verify that Racket is installed properly:
racket --versionRunning the REPL
Start the interactive Racket REPL:
racketYou 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!")
EOFExecute the script using the racket command:
racket hello.rkt