From be8e301b44f7661b2d7868540b16f51bd91df1e7 Mon Sep 17 00:00:00 2001 From: Vrganj Date: Sat, 17 Oct 2020 19:56:02 +0200 Subject: [PATCH] Add jelly --- api/main.go | 1 + lxc/executors/jelly | 2 ++ lxc/versions | 4 ++++ readme.md | 6 ++++++ 4 files changed, 13 insertions(+) create mode 100755 lxc/executors/jelly diff --git a/api/main.go b/api/main.go index 1734be5..ecebec9 100644 --- a/api/main.go +++ b/api/main.go @@ -75,6 +75,7 @@ func Execute(res http.ResponseWriter, req *http.Request) { "emacs", "elisp", "el", "go", "java", + "jelly", "julia", "jl", "kotlin", "lua", diff --git a/lxc/executors/jelly b/lxc/executors/jelly new file mode 100755 index 0000000..4107b6b --- /dev/null +++ b/lxc/executors/jelly @@ -0,0 +1,2 @@ +cd /tmp/$2 +runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 jelly fu code.code" diff --git a/lxc/versions b/lxc/versions index efa3d68..830e69c 100755 --- a/lxc/versions +++ b/lxc/versions @@ -45,6 +45,10 @@ echo 'java' lxc-attach --clear-env -n piston -- /bin/bash -l -c "java -version" echo '---' +echo 'jelly' +echo '1.0.0' +echo '---' + echo 'julia' lxc-attach --clear-env -n piston -- /bin/bash -l -c "julia --version" echo '---' diff --git a/readme.md b/readme.md index 3e3edb6..aecd358 100644 --- a/readme.md +++ b/readme.md @@ -158,6 +158,11 @@ tar -xzf openjdk-14_linux-x64_bin.tar.gz 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 . + # install julia # final binary: /opt/julia/julia-1.5.0/bin/julia # get version: /opt/julia/julia-1.5.0/bin/julia --version @@ -339,6 +344,7 @@ If an invalid language is supplied, a typical response will look like the follow - go - haskell - java +- jelly - julia - kotlin - nasm