Linked Questions
16 questions linked to/from Shortest code to produce infinite output
3
votes
0
answers
163
views
Print random characters indefinitely [duplicate]
Task
Continuously print a random character (a-z, A-Z, 0-9) not separated by a newline (\n).
Expected output
...
237
votes
432
answers
61k
views
Golf you a quine for great good!
Using your language of choice, golf a quine.
A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output.
No cheating -- that means ...
143
votes
560
answers
45k
views
Shortest infinite loop producing no output
Your task is to create the shortest infinite loop!
The point of this challenge is to create an infinite loop producing no output, unlike its possible duplicate. The reason to this is because the code ...
170
votes
475
answers
34k
views
Implement a Truth-Machine
A truth-machine (credits goes to this guy for coming up with it) is a very simple program designed to demonstrate the I/O and control flow of a language. Here's what a truth-machine does:
Gets a ...
323
votes
176
answers
133k
views
Tips for golfing in Python
What general tips do you have for golfing in Python? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Python (e.g. "remove comments" is ...
98
votes
129
answers
19k
views
Shortest code to produce non-deterministic output
You need to produce output that is non-deterministic.
In this case, this will be defined to mean that the output will not always be the same result.
Rules:
A pseudo-random number generator that ...
55
votes
195
answers
13k
views
Scream very loudly
Write a script that outputs A to stdout infinitely.
There should be no newlines or separators between the characters.
Standard loopholes apply.
This is code-golf. ...
117
votes
81
answers
40k
views
Shortest code that raises a SIGSEGV
Write the shortest code that raises a Segmentation Fault (SIGSEGV) in any programming language.
38
votes
114
answers
4k
views
Lolololololololololololol
Let us take a break from the brain-wrecking questions and answer some of the simpler ones
You have recently read something extremely funny, and want to express your laughter to the world! But how can ...
49
votes
49
answers
7k
views
Tips for golfing in PowerShell
What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. "...
33
votes
30
answers
5k
views
Ah, why is there a bug in my program?
This challenge is inspired by @LuisMendo's MATL answer to my "binary multiples" challenge.
Task
Pick a code-golf challenge that is open and that has been posted before this one; let me call it the "...
20
votes
19
answers
5k
views
The Staircase Challenge
Your work is to recreate this piece of art:
...
5
votes
49
answers
11k
views
Find the absolute value of a number without built-in functions [closed]
The challenge is to take any real number as input and output or return the absolute value. You may not use any built-in functions other than those dealing with input and output/returning. This is code ...
19
votes
14
answers
992
views
Tips for golfing in QBasic
What general tips do you have for golfing in QBasic? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to QBasic (e.g. "remove comments" is ...
38
votes
3
answers
1k
views
Build a golfing language with me
A lot of PPCG users helped with the creation of this challenge, both in chat and the Sandbox, specifically Martin Ender, AdmBorkBork, Emigna and user202729
Our community has found it necessary to ...