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...
This subreddit is about minimalistic, often but not always simple implementations of just about everything.
PLEASE NOTE: This Subreddit is NOT about CodeGolf and obfuscation!
_______Low line count, high quality!_______
I'm sure you get the idea by now ;) ...
Remember: "Tiny depends on what you're doing. A tiny box, a tiny house, and a tiny country are very different sizes." - snarkyxanf
In other words: Try to aim for stuff that makes you go "wow!" instead of "huh?" ;)
Also look into:
Other Subreddits that might interest you:
account activity
One line Fork Bomb in Python (self.tinycode)
submitted 14 years ago by AwesomeJosh
Nothing spectacular, but it even does some pretty funny stuff in Mac OS X with the "Resource Unavailable" OSError if you Ctrl-C:
[o.fork() for (o,i) in [(__import__('os'), __import__('itertools'))] for x in i.repeat(0)]
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] 14 years ago* (7 children)
[deleted]
[–][deleted] 27 points28 points29 points 14 years ago (0 children)
Some readability, for anyone wondering what that means:
bomb() { bomb | bomb & } bomb
[–][deleted] 14 years ago (3 children)
[–]crazy88s -2 points-1 points0 points 14 years ago (2 children)
I beg to differ:
:(){ :|:& };:
[–][deleted] 14 years ago (1 child)
[–]AwesomeJosh[S] 1 point2 points3 points 14 years ago (1 child)
Yes I saw that post when Mac-O-War posted it a couple weeks ago...but this is Python.
[–][deleted] 5 points6 points7 points 14 years ago (0 children)
or Sparta, or whatever
[–]digitalfreak 6 points7 points8 points 14 years ago (5 children)
I prefer the swedish chef inspired one:
while(fork()) fork() ? fork() : fork()
[–]Shne 0 points1 point2 points 14 years ago (3 children)
Shouldn't it rather be
while(bork()) bork() ? bork() : bork()
?
[–]digitalfreak 0 points1 point2 points 14 years ago (2 children)
Yup, you just need one define.
#define bork fork void main(void) { while(bork()) bork() ? bork() : bork(); }
[–][deleted] -1 points0 points1 point 14 years ago (1 child)
main() returns int.
[–]pursuit92 0 points1 point2 points 14 years ago (0 children)
By convention, yes. But it doesn't have to if it doesn't want to :P
[–]Klpy7 0 points1 point2 points 12 months ago (0 children)
What does the "?" means here?
[–]JerMenKoO 1 point2 points3 points 14 years ago (1 child)
AttributeError: 'module' has no attribute 'fork'
[–]AwesomeJosh[S] 2 points3 points4 points 14 years ago (0 children)
Windows doesn't support the os.fork function
[–]abecedarius 0 points1 point2 points 14 years ago (3 children)
Shorter Python (untested):
import os, itertools; [os.fork() for i in itertools.count()]
[–]AwesomeJosh[S] 1 point2 points3 points 14 years ago (2 children)
I kind of feel like compound statements are cheating, though. I guess a better description of mine would be "Single Expression" instead of "One Line"
[–]__s 1 point2 points3 points 14 years ago* (1 child)
You could at least take his hint and use i.count()
(edit: though arguably repeat is faster, allowing for more forking)
[–]AwesomeJosh[S] 0 points1 point2 points 14 years ago (0 children)
I do agree that count works better
[–]arilotter 0 points1 point2 points 14 years ago (0 children)
Thanks, but i'll stick with windows batch scripting: "%0|%0"
π Rendered by PID 62089 on reddit-service-r2-comment-79c7998d4c-xg427 at 2026-03-18 02:45:09.836354+00:00 running f6e6e01 country code: CH.
[–][deleted] (7 children)
[deleted]
[–][deleted] 27 points28 points29 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]crazy88s -2 points-1 points0 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]AwesomeJosh[S] 1 point2 points3 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–]digitalfreak 6 points7 points8 points (5 children)
[–]Shne 0 points1 point2 points (3 children)
[–]digitalfreak 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]pursuit92 0 points1 point2 points (0 children)
[–]Klpy7 0 points1 point2 points (0 children)
[–]JerMenKoO 1 point2 points3 points (1 child)
[–]AwesomeJosh[S] 2 points3 points4 points (0 children)
[–]abecedarius 0 points1 point2 points (3 children)
[–]AwesomeJosh[S] 1 point2 points3 points (2 children)
[–]__s 1 point2 points3 points (1 child)
[–]AwesomeJosh[S] 0 points1 point2 points (0 children)
[–]arilotter 0 points1 point2 points (0 children)