Fast, secure code execution for your programming community.
C, C++, Rust, Python, Java, and dozens more.
Support for custom compiler flags, stdin, and CLI arguments.
Proudly open source and self hostable.
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;
}
```
For URL requests, multi-line stdin, and parsing nuances, visit the wiki: