Tuesday, April 05, 2022

Docker dev environments, Lisp and others

Docker images for many dev environments / prog languages;
in particular useful for Windows users

Explore Docker's Container Image Repository | Docker Hub

CodeSignal/dockerfiles: Dockerfiles for CodeSignal user code execution @GitHub

codesignal/lisp - Docker Image | Docker Hub

fib.lisp

(defun fib (n)
  "Naive recursive computation of the nth element of the Fibonacci sequence"
  (check-type n (integer 0 *))
  (if (< n 2) n
      (+ (fib (1- n)) (fib (- n 2)))))

> docker run --rm -v ${PWD}:/lisp  -it codesignal/lisp:v10.0.0

# cd /lisp
# clisp
[1]> (+ 1 2)
3
[2](load 'fib.lisp)
[3](fib 8)
21
[3](quit)
# exit

created by CodeSignal for Technical Interview and Assessment Solutions

useful VS Code plugin


No comments: