Linked Questions

522 votes
985 answers
194k views

"Hello, World!"

So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with hello-world, and counting). While this is not the most ...
Martin Ender's user avatar
173 votes
495 answers
35k 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 ...
a spaghetto's user avatar
  • 11.2k
148 votes
127 answers
16k views

Shortest Error Message

Challenge Write the shortest program that, when compiled or executed, produces a fatal error message smaller than the program itself. The error message may not be generated by the program itself, ...
user72528's user avatar
  • 1,503
103 votes
300 answers
18k views

Create output twice the length of the code

The Challenge Write a complete program that writes twice as many bytes to standard output as the length of the program. Rules The program must write ASCII characters to the standard output. The ...
Daniel M.'s user avatar
  • 3,927
61 votes
111 answers
16k views

Goodbye Cruel World!

Background Hello golfers! I would like to learn all the programming languages! But I kinda have a short attention span... and copying all the Hello World examples gets boring... but I like fire! ^w^ ...
Tezra's user avatar
  • 1,527
45 votes
138 answers
12k views

Print invisible text

Given a string as input, output a number of whitespace characters (0x0A and 0x20) equal to the length of the string. For example, given the string Hello, World! ...
Mayube's user avatar
  • 11.6k
44 votes
90 answers
8k views

Notcalc (Calculate the wrong answer)

Goal: Given two natural numbers (integers from 0 to infinity), output a number that is not the sum of those numbers, but is a natural number. Example solutions (TI-Basic): ...
Julian Lachniet's user avatar
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 ...
caird coinheringaahin g's user avatar
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 "...
RGS's user avatar
  • 14.1k
30 votes
30 answers
3k views

Output with the same length always

With challenges like Output with the same length as the code and Create output twice the length of the code, I thought of a separate, but similar challenge. The task is to produce an output. It can ...
maxb's user avatar
  • 6,897
23 votes
53 answers
3k views

Code point sum quine

All the quine challenges on this site are focused on byte count, or the characters themselves. This one is different. Your challenge is to write a program that produces output which has a code point ...
MD XF's user avatar
  • 13.9k
17 votes
9 answers
742 views

The NX source-length problem [duplicate]

On PPCG, we have had lots of challenges where the length of your output is dependent on the length of your source code. For the purposes of this challenge, we will call these Source-length problems. ...
DJMcMayhem's user avatar
  • 59.3k
16 votes
4 answers
850 views

Tips for golfing in ///

What general tips do you have for golfing in ///? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to /// (e.g. "remove unnecessary ...
sporkl's user avatar
  • 6,884
14 votes
14 answers
1k views

Output code-sized Lorem Ipsum [closed]

Output the same length of Lorem ipsum your code is! Rules: Code can't be identical to output No compression libraries Shortest program in two weeks wins No network usage, file reading and other ...
randomra's user avatar
  • 20.9k
-2 votes
3 answers
381 views

Make a program that prints its own size [closed]

Challenge: Create a program that prints out the size of its own source code file. For example, a 35 bytes size of program must print out 35. Pre-calculation is not valid. What I mean by pre-...
vvvnn's user avatar
  • 129