Add jelly

This commit is contained in:
Vrganj 2020-10-17 19:56:02 +02:00
parent 6d580981e4
commit be8e301b44
4 changed files with 13 additions and 0 deletions

View File

@ -75,6 +75,7 @@ func Execute(res http.ResponseWriter, req *http.Request) {
"emacs", "elisp", "el",
"go",
"java",
"jelly",
"julia", "jl",
"kotlin",
"lua",

2
lxc/executors/jelly Executable file
View File

@ -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"

View File

@ -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 '---'

View File

@ -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