Discord Compiler

Fast, secure code execution for your programming community.

75+ Languages

C, C++, Rust, Python, Java, and dozens more.

Nitty-Gritty Control

Support for custom compiler flags, stdin, and CLI arguments.

AGPL-3.0 Licensed

Proudly open source and self hostable.

Quick Start

Run code by specifying the language before a code block:

;compile python
```python
print("Hello from Discord!")
```

Advanced grammar for complex compilations:

;compile <lang> <flags> | <stdin>
<args>
;compile c++ -O3 | MyInput
Arg1
```cpp
#include <iostream>
int main(int argc, char** argv) {
    std::string s; std::cin >> s;
    std::cout << s << " " << argv[1];
    return 0;
}
```

Documentation

For URL requests, multi-line stdin, and parsing nuances, visit the wiki:

👉 Getting Started & Advanced Usage