Supported Languages#
Rustbox supports 8 languages, all available on every plan.
Languages#
| Language | Aliases | Compiled | Runtime |
|---|---|---|---|
| Python | python, py | No | CPython |
| C | c | Yes | GCC |
| C++ | cpp, c++, cxx, cc | Yes | GCC |
| Java | java | Yes | OpenJDK |
| JavaScript | javascript, js | No | Bun |
| TypeScript | typescript, ts | No | Bun |
| Go | go | Yes | Go compiler |
| Rust | rust, rs | Yes | rustc |
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:
| Language | Memory | CPU Time | Wall Time | Max PIDs | Max Open Files |
|---|---|---|---|---|---|
| Python | 256 MB | 4s | 7s | 10 | 32 |
| C | 256 MB | 8s | 10s | 8 | 32 |
| C++ | 256 MB | 8s | 10s | 8 | 64 |
| Java | 512 MB | 8s | 10s | 1024 | 128 |
| JavaScript | 512 MB | 8s | 12s | 16 | 64 |
| TypeScript | 512 MB | 8s | 12s | 16 | 128 |
| Go | 256 MB | 8s | 10s | 1024 | 64 |
| Rust | 256 MB | 8s | 15s | 64 | 64 |
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"]