diff --git a/api/main.go b/api/main.go index afac4b2..4b95915 100644 --- a/api/main.go +++ b/api/main.go @@ -72,6 +72,7 @@ func Execute(res http.ResponseWriter, req *http.Request) { "csharp", "cs", "c#", "go", "java", + "julia", "jl", "nasm", "asm", "node", "javascript", "js", "php", diff --git a/lxc/execute b/lxc/execute index e09817f..e8a9f50 100755 --- a/lxc/execute +++ b/lxc/execute @@ -63,6 +63,9 @@ case "$lang" in "java") bin=java ;; +"julia" | "jl") + bin=julia + ;; "nasm" | "asm") bin=nasm ;; diff --git a/lxc/executors/julia b/lxc/executors/julia new file mode 100755 index 0000000..7dddb24 --- /dev/null +++ b/lxc/executors/julia @@ -0,0 +1,2 @@ +cd /tmp/$2 +runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 julia code.code"