Merge pull request #23 from Vrganj/master

Add jelly
This commit is contained in:
Brian Seymour 2020-10-17 13:32:20 -05:00 committed by GitHub
commit e7acd00aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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", "emacs", "elisp", "el",
"go", "go",
"java", "java",
"jelly",
"julia", "jl", "julia", "jl",
"kotlin", "kotlin",
"lua", "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" lxc-attach --clear-env -n piston -- /bin/bash -l -c "java -version"
echo '---' echo '---'
echo 'jelly'
echo '1.0.0'
echo '---'
echo 'julia' echo 'julia'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "julia --version" lxc-attach --clear-env -n piston -- /bin/bash -l -c "julia --version"
echo '---' 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 echo 'export PATH=$PATH:/opt/java/jdk-14/bin' >> /opt/.profile
source /opt/.profile source /opt/.profile
# install jelly
git clone -q https://github.com/DennisMitchell/jellylanguage.git
cd jellylanguage
pip3 install --upgrade --user .
# install julia # install julia
# final binary: /opt/julia/julia-1.5.0/bin/julia # final binary: /opt/julia/julia-1.5.0/bin/julia
# get version: /opt/julia/julia-1.5.0/bin/julia --version # 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 - go
- haskell - haskell
- java - java
- jelly
- julia - julia
- kotlin - kotlin
- nasm - nasm