Racket Environment

Setup

Build Environment

Install one dependency.

wget -O nextjournal-conda-python_3.6.8_all.deb \
  https://nextjournal.com/data/Qmcy5rjq2jui3VTvyfktPMrLASs4vWJSGAKpz3PTzXQhho
apt-get -qq update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends \
  build-essential gfortran cmake automake libtool libltdl-dev pkg-config \
  libglib2.0-dev libcairo2 libpango-1.0-0 libpangocairo-1.0 libjpeg-dev \
  libzmq5 \
  ./nextjournal-conda-python_3.6.8_all.deb
apt-get clean
rm -r /var/lib/apt/lists/* # Clear package list so it isn't stale
44.5s
Racket (Bash)

Download Racket installer.

FILENAME="racket-${RACKET_VERSION}-x86_64-linux.sh"
FILEURL="https://mirror.racket-lang.org/installers/${RACKET_VERSION}/${FILENAME}"
wget --progress=dot:giga -O /results/${FILENAME} ${FILEURL}
4.9s
Racket (Bash)
racket-7.4-x86_64-linux.sh

Install Racket.

bash NJ__REF_ --unix-style --dest /opt/racket --create-dir
10.4s
Racket (Bash)

Install Jupyter.

pip install --upgrade jupyter 'jupyter_core==4.5.0' 'jupyter_client==5.3.1'
18.7s
Racket (Bash)

Use the package manager to install IRacket and a few extra packages, then install the Jupyter kernel.

raco pkg install --installation --deps search-auto iracket \
  sicp pict plot 2htdp-typed
racket -l iracket/install
84.5s
Racket (Bash)

Print info.

du -hsx /
racket -V
jupyter kernelspec list
2.6s
Racket (Bash)

Test

(+ 1 2)
0.0s
Racket Test (Racket)
Racket
3

SICP

(read-accept-reader #t)
0.0s
Racket Test (Racket)
Racket
#lang sicp
0.1s
Racket Test (Racket)
Racket
(require pict)
(circle 10)
0.0s
Racket Test (Racket)
Racket
(list (circle 10) (rectangle 10 20))
0.0s
Racket Test (Racket)
Racket
(list )
Runtimes (2)
Runtime Languages (1)