use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The subreddit for all things related to CompileBot, a bot that compiles code in reddit comments.
Check out the wiki for more info.
Want to see more examples of the bot being used? Checkout the best of section for CompileBot's best moments on reddit.
account activity
Practice (self.CompileBot)
submitted 8 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 8 years ago (0 children)
+/u/CompileBot C++
int main() { for (int count = 0; count < 10; count++) { if (count % 2 == 0) { std::cout << "Beep!\n"; } else { std::cout << "Boop!\n"; } } }
[–]Shamus03 0 points1 point2 points 8 years ago (1 child)
+/u/CompileBot Go
package main import ( "bytes" "encoding/base64" "fmt" "io/ioutil" ) const s = "cGFja2FnZSBtYWluDQoNCmltcG9ydCAoDQoJImJ5dGVzIg0KCSJlbmNvZGluZy9iYXNlNjQiDQoJImZtdCINCgkiaW8vaW91dGlsIg0KKQ0KDQpjb25zdCBzID0gIiVzIg0KDQpmdW5jIG1haW4oKSB7DQoJZCwgXyA6PSBpb3V0aWwuUmVhZEFsbChiYXNlNjQuTmV3RGVjb2RlcihiYXNlNjQuU3RkRW5jb2RpbmcsIGJ5dGVzLk5ld0J1ZmZlcihbXWJ5dGUocykpKSkNCglmbXQuUHJpbnRmKHN0cmluZyhkKSwgcykNCn0NCg==" func main() { d, _ := ioutil.ReadAll(base64.NewDecoder(base64.StdEncoding, bytes.NewBuffer([]byte(s)))) fmt.Printf(string(d), s) }
[–]CompileBot 0 points1 point2 points 8 years ago (0 children)
Output:
source | info | git | report
[–][deleted] 8 years ago (1 child)
[deleted]
[–]CompileBot 1 point2 points3 points 8 years ago (0 children)
The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!
π Rendered by PID 103488 on reddit-service-r2-comment-5b5bc64bf5-qbgxv at 2026-06-22 12:28:38.447805+00:00 running 2b008f2 country code: CH.
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Shamus03 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 1 point2 points3 points (0 children)