diff --git a/api/main.go b/api/main.go index ecebec9..446f3e4 100644 --- a/api/main.go +++ b/api/main.go @@ -71,9 +71,11 @@ func Execute(res http.ResponseWriter, req *http.Request) { "c", "cpp", "c++", "csharp", "cs", "c#", + "deno", "denojs", "denots", "elixir", "exs", "emacs", "elisp", "el", "go", + "haskell", "hs", "java", "jelly", "julia", "jl", @@ -148,10 +150,14 @@ func launch(request Inbound, res http.ResponseWriter) { execlang = "cpp" case "cs", "c#": execlang = "csharp" + case "denojs", "denots": + execlang = "deno" case "el", "elisp": execlang = "emacs" case "exs": execlang = "elixir" + case "hs": + execlang = "haskell" case "asm": execlang = "nasm" case "asm64": diff --git a/lxc/execute b/lxc/execute index de824e1..5e71f4a 100755 --- a/lxc/execute +++ b/lxc/execute @@ -66,9 +66,15 @@ case "$lang" in "go") bin=go ;; +"haskell" | "hs") + bin=haskell + ;; "java") bin=java ;; +"jelly") + bin=jelly + ;; "julia" | "jl") bin=julia ;; @@ -120,9 +126,6 @@ case "$lang" in "typescript" | "ts") bin=typescript ;; -"haskell" | "hs") - bin=haskell - ;; *) echo "invalid language" exit diff --git a/lxc/executors/brainfuck b/lxc/executors/brainfuck old mode 100644 new mode 100755 diff --git a/lxc/executors/deno b/lxc/executors/deno old mode 100644 new mode 100755 diff --git a/lxc/executors/haskell b/lxc/executors/haskell old mode 100644 new mode 100755 diff --git a/lxc/executors/lua b/lxc/executors/lua old mode 100644 new mode 100755 diff --git a/readme.md b/readme.md index aecd358..2c3a7b3 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,7 @@ lxc-create -t download -n piston -- --dist ubuntu --release bionic --arch amd64 echo 'source /opt/.profile' >> /opt/.bashrc echo 'export HOME=/opt' >> /opt/.profile echo 'export TERM=linux' >> /opt/.profile +echo 'export PATH=$PATH:/opt/.local/bin' >> /opt/.profile export HOME=/opt export TERM=linux sed -i 's/\/root/\/opt/' /etc/passwd @@ -159,9 +160,11 @@ echo 'export PATH=$PATH:/opt/java/jdk-14/bin' >> /opt/.profile source /opt/.profile # install jelly -git clone -q https://github.com/DennisMitchell/jellylanguage.git -cd jellylanguage -pip3 install --upgrade --user . +cd /opt && mkdir jelly && cd jelly +wget https://github.com/DennisMitchell/jellylanguage/archive/master.zip +unzip master.zip +cd jellylanguage-master +pip3.8 install --upgrade --user . # install julia # final binary: /opt/julia/julia-1.5.0/bin/julia @@ -231,6 +234,7 @@ apt install -y ghc # install deno # final binary: /opt/.deno/bin/deno # get version: /opt/.deno/bin/deno --version +cd /opt && mkdir deno && cd deno curl -fsSL https://deno.land/x/install/install.sh | sh echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile