From fab8873d85c5ff09693fb6990bf3eafdba54119e Mon Sep 17 00:00:00 2001 From: Tommy-Xavier Robillard Date: Sat, 2 May 2020 00:00:46 -0400 Subject: [PATCH] Added julia support. --- api/main.go | 1 + lxc/execute | 3 +++ lxc/executors/julia | 2 ++ 3 files changed, 6 insertions(+) create mode 100755 lxc/executors/julia 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"