From 2987af3c33b7f6ff8b050cd0b0e1c9223a7fad40 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 19 Jul 2020 09:53:20 -0600 Subject: [PATCH] New language: Hack --- backend/src/langs.ts | 11 +++++++++++ scripts/docker-install-phase1.bash | 2 ++ scripts/docker-install-phase3b.bash | 3 +++ 3 files changed, 16 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 3dde5b7..b9df877 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -704,6 +704,17 @@ func main() { main: "main.groovy", run: `JAVA_OPTS="-Djava.util.prefs.systemRoot=$PWD/.java -Djava.util.prefs.userRoot=$PWD/.java/.userPrefs" groovysh main.groovy`, template: `print "Hello, world!"; +`, + }, + hack: { + name: "Hack", + repl: "hhvm -a", + main: "main.hack", + run: "hhvm -a main.hack", + template: `<<__EntryPoint>> +function main(): void { + echo "Hello, world!\\n"; +} `, }, haskell: { diff --git a/scripts/docker-install-phase1.bash b/scripts/docker-install-phase1.bash index f3a13e7..27f8701 100755 --- a/scripts/docker-install-phase1.bash +++ b/scripts/docker-install-phase1.bash @@ -17,6 +17,7 @@ curl -sSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - curl -sSL https://keybase.io/crystal/pgp_keys.asc | apt-key add - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 +apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B4112585D386EB94 wget -nv https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb dpkg -i packages-microsoft-prod.deb @@ -27,6 +28,7 @@ deb [arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debi deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ deb https://deb.nodesource.com/node_14.x focal main deb https://dist.crystal-lang.org/apt crystal main +deb https://dl.hhvm.com/ubuntu focal main deb https://dl.yarnpkg.com/debian/ stable main deb-src https://deb.nodesource.com/node_14.x focal main EOF diff --git a/scripts/docker-install-phase3b.bash b/scripts/docker-install-phase3b.bash index b0cd0df..a9b4e5a 100755 --- a/scripts/docker-install-phase3b.bash +++ b/scripts/docker-install-phase3b.bash @@ -37,6 +37,9 @@ golang # Groovy groovy +# Hack +hhvm + # Haskell cabal-install ghc