Supported Languages#

Rustbox supports 8 languages, all available on every plan.

Languages#

LanguageAliasesCompiledRuntime
Pythonpython, pyNoCPython
CcYesGCC
C++cpp, c++, cxx, ccYesGCC
JavajavaYesOpenJDK
JavaScriptjavascript, jsNoBun
TypeScripttypescript, tsNoBun
GogoYesGo compiler
Rustrust, rsYesrustc

Use any alias in the language field when submitting code.

Default limits by profile#

Judge mode#

Designed for competitive programming and coding assessments where submissions are short-lived and deterministic. Limits vary by language:

LanguageMemoryCPU TimeWall TimeMax PIDsMax Open Files
Python256 MB4s7s1032
C256 MB8s10s832
C++256 MB8s10s864
Java512 MB8s10s1024128
JavaScript512 MB8s12s1664
TypeScript512 MB8s12s16128
Go256 MB8s10s102464
Rust256 MB8s15s6464

All languages: code up to 64 KB, input (stdin) up to 256 KB, no internet.

Compiling#

For compiled languages (C, C++, Java, Go, Rust), the compiler runs inside the same locked-down box as your program, with the same protections. Compile time counts toward the total time limit.

Language detection#

The GET /api/languages endpoint returns the list of languages available on the platform:

curl -s "https://api.rustbox.sh/api/languages" \
  -H "X-API-Key: rb_live_your_key_here" | jq
["python", "c", "cpp", "java", "javascript", "typescript", "go", "rust"]