Compare commits
No commits in common. "6ff766d90b756b0c1c1a560042c1c313d829af3b" and "f12cee3a962bf14213fd078e9f514973af22c36b" have entirely different histories.
6ff766d90b
...
f12cee3a96
|
@ -22,8 +22,6 @@ const languages = require('../../config/languages.json');
|
||||||
versions[language] = /\d+/.exec(lines[1])?.[0];
|
versions[language] = /\d+/.exec(lines[1])?.[0];
|
||||||
} else if (language === 'emacs') {
|
} else if (language === 'emacs') {
|
||||||
versions[language] = /\d+\.\d+/.exec(lines[1])?.[0];
|
versions[language] = /\d+\.\d+/.exec(lines[1])?.[0];
|
||||||
} else if (language === 'clojure') {
|
|
||||||
versions[language] = /\d+\.\d+\.\d+\.\d+/.exec(lines[1])?.[0];
|
|
||||||
} else {
|
} else {
|
||||||
versions[language] = /\d+\.\d+\.\d+/.exec(section)?.[0];
|
versions[language] = /\d+\.\d+\.\d+/.exec(section)?.[0];
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,13 +39,6 @@
|
||||||
"c"
|
"c"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "clojure",
|
|
||||||
"aliases": [
|
|
||||||
"clojure",
|
|
||||||
"clj"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "crystal",
|
"name": "crystal",
|
||||||
"aliases": [
|
"aliases": [
|
||||||
|
@ -143,12 +136,6 @@
|
||||||
"java"
|
"java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "lolcode",
|
|
||||||
"aliases": [
|
|
||||||
"lolcode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "nim",
|
"name": "nim",
|
||||||
"aliases": [
|
"aliases": [
|
||||||
|
|
|
@ -284,6 +284,7 @@ MIX_ENV=prod mix escript.build --force
|
||||||
echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile
|
echo 'export PATH=$PATH:/opt/05AB1E/05AB1E' >> /opt/.profile
|
||||||
source /opt/.profile
|
source /opt/.profile
|
||||||
|
|
||||||
|
|
||||||
# install prolog
|
# install prolog
|
||||||
# final binary: /opt/swipl/swipl-<version>/build/src/swipl
|
# final binary: /opt/swipl/swipl-<version>/build/src/swipl
|
||||||
cd /opt && mkdir swipl && cd swipl
|
cd /opt && mkdir swipl && cd swipl
|
||||||
|
@ -299,27 +300,6 @@ ninja
|
||||||
echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile
|
echo "export PATH=\$PATH:/opt/swipl/$SUB_DIR/build/src" >> /opt/.profile
|
||||||
source /opt/.profile
|
source /opt/.profile
|
||||||
|
|
||||||
# install lolcode
|
|
||||||
# final binary: /opt/lolcode/bin/lci
|
|
||||||
cd /opt
|
|
||||||
git clone https://github.com/justinmeza/lci.git lolcode
|
|
||||||
cd lolcode
|
|
||||||
mkdir bin
|
|
||||||
cd bin
|
|
||||||
cmake ..
|
|
||||||
make
|
|
||||||
echo 'export PATH=$PATH:/opt/lolcode/bin' >> /opt/.profile
|
|
||||||
source /opt/.profile
|
|
||||||
|
|
||||||
# install clojure
|
|
||||||
# final binary: /opt/clojure/bin/clojure
|
|
||||||
# get version: /opt/clojure/bin/clojure -version
|
|
||||||
cd /opt && mkdir clojure && cd clojure
|
|
||||||
curl -O https://download.clojure.org/install/linux-install-1.10.2.796.sh
|
|
||||||
chmod +x linux-install-1.10.2.796.sh
|
|
||||||
./linux-install-1.10.2.796.sh --prefix /opt/clojure
|
|
||||||
echo 'export PATH=$PATH:/opt/clojure/bin' >> /opt/.profile
|
|
||||||
|
|
||||||
# create runnable users and apply limits
|
# create runnable users and apply limits
|
||||||
for i in {1..150}; do
|
for i in {1..150}; do
|
||||||
useradd -M runner$i
|
useradd -M runner$i
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd /tmp/$1
|
|
||||||
timeout -s KILL 10 xargs -a args.args -d '\n' clojure -Sdeps '{:mvn/local-repo "/opt/.m2/repository"}' -M code.code < stdin.stdin
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /tmp/$1
|
cd /tmp/$1
|
||||||
export NO_COLOR=true
|
timeout -s KILL 3 xargs -a args.args -d '\n' NO_COLOR=true deno run code.code < stdin.stdin
|
||||||
timeout -s KILL 3 xargs -a args.args -d '\n' deno run code.code < stdin.stdin
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd /tmp/$1
|
|
||||||
timeout -s KILL 3 lci code.code < stdin.stdin
|
|
|
@ -6,8 +6,6 @@ echo -n 'testing bash = '
|
||||||
../../cli/execute bash bash.sh
|
../../cli/execute bash bash.sh
|
||||||
echo -n 'testing c = '
|
echo -n 'testing c = '
|
||||||
../../cli/execute c c.c
|
../../cli/execute c c.c
|
||||||
echo -n 'testing clojure = '
|
|
||||||
../../cli/execute clojure clojure.clj
|
|
||||||
echo -n 'testing cpp = '
|
echo -n 'testing cpp = '
|
||||||
../../cli/execute cpp cpp.cpp
|
../../cli/execute cpp cpp.cpp
|
||||||
echo -n 'testing crystal = '
|
echo -n 'testing crystal = '
|
||||||
|
@ -36,8 +34,6 @@ echo -n 'testing julia = '
|
||||||
../../cli/execute julia julia.jl
|
../../cli/execute julia julia.jl
|
||||||
echo -n 'testing kotlin = '
|
echo -n 'testing kotlin = '
|
||||||
../../cli/execute kotlin kotlin.kt
|
../../cli/execute kotlin kotlin.kt
|
||||||
echo -n 'testing lolcode = '
|
|
||||||
../../cli/execute lolcode lolcode.lol
|
|
||||||
echo -n 'testing lisp = '
|
echo -n 'testing lisp = '
|
||||||
../../cli/execute lisp lisp.cl
|
../../cli/execute lisp lisp.cl
|
||||||
echo -n 'testing nasm 32 bit = '
|
echo -n 'testing nasm 32 bit = '
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
(ns clojure.examples.hello
|
|
||||||
(:gen-class))
|
|
||||||
(defn hello-world []
|
|
||||||
(println "good"))
|
|
||||||
(hello-world)
|
|
|
@ -1,4 +0,0 @@
|
||||||
HAI 1.2
|
|
||||||
CAN HAS STDIO?
|
|
||||||
VISIBLE "good"
|
|
||||||
KTHXBYE
|
|
|
@ -21,10 +21,6 @@ echo 'cpp'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
||||||
echo 'clojure'
|
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "clojure -version"
|
|
||||||
echo '---'
|
|
||||||
|
|
||||||
echo 'crystal'
|
echo 'crystal'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
@ -81,10 +77,6 @@ echo 'lisp'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
||||||
echo 'lolcode'
|
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lci --version"
|
|
||||||
echo '---'
|
|
||||||
|
|
||||||
echo 'lua'
|
echo 'lua'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lua -v"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lua -v"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
|
@ -260,7 +260,6 @@ Content-Type: application/json
|
||||||
`brainfuck`,
|
`brainfuck`,
|
||||||
`c`,
|
`c`,
|
||||||
`cpp`,
|
`cpp`,
|
||||||
`clojure`,
|
|
||||||
`crystal`,
|
`crystal`,
|
||||||
`csharp`,
|
`csharp`,
|
||||||
`d`,
|
`d`,
|
||||||
|
@ -276,7 +275,6 @@ Content-Type: application/json
|
||||||
`julia`,
|
`julia`,
|
||||||
`kotlin`,
|
`kotlin`,
|
||||||
`lisp`,
|
`lisp`,
|
||||||
`lolcode`,
|
|
||||||
`lua`,
|
`lua`,
|
||||||
`nasm`,
|
`nasm`,
|
||||||
`nasm64`,
|
`nasm64`,
|
||||||
|
|
Loading…
Reference in New Issue