ID Name Runtime Info
AWK AWK awk 1.3.3
BF Brain**** bf 1.33.7
C C gcc 5.4.0

Compile options: gcc -std=c99 -Wall -O2 -lm -march=native -s

clang CLANG clang 4.2.1
CLANG C++ CLANG C++ clang++ 4.2.1
c++ C++ g++17
GO GO go 1.6.2
groovy Groovy groovyc 2.4.15, java 1.8.0
hs Haskell ghc 7.10.3
java10 Java 10 javac 10.0.2
java Java javac 1.8.0
java9 Java 9 javac 9.0.4
kt Kotlin kotlinc 1.2.40, java 1.8.0
Lua Lua lua 5.2.4
C# C# csc, mono
F# F# fsharpc 4.1, mono
VB VB.NET vbnc, mono
objc Objective-C gobjc
ocaml OCAML ocaml 4.2.3
PERL Perl perl 5.22.1
PHP PHP php 7.0.30
PY2 Python 2 python 2.7.12
PY3 Python 3 python3 3.5.2
PYPY2 PYPY 2 pypy 6.0.0, implementing python 2.7.13
ruby Ruby 2.1 ruby 2.3.1
Lisp Lisp sbcl 1.3.1
Scala Scala scalac 2.12.4, java 9.0.4
sw4 Swift swiftc 4.0.2
JS JavaScript v8dmoj 6.2.0

This is a custom version of V8 that adds six functions in order to perform I/O and aid in online judging.

  • print(...): similar to Python's print, prints all argument separated by space followed by new line.
  • flush(): flushes stdout, ensuring everything output by print() immediately shows up.
  • gets(): similar to the Ruby equivalent, returns one line of input from stdin.
  • read(bytes): read bytes bytes from stdin as an ArrayBuffer.
  • write(buffer): write a typed array, ArrayBuffer, or a view of ArrayBuffer to stdout.
  • quit(code): exits the program with code.
  • You can also assign to the global variable autoflush to control whether print() flushes.