Linked Questions

165 votes
128 answers

Trick or Treat polyglot

Since Halloween is coming up I thought I might start a fun little code golf challenge! The challenge is quite simple. You have to write a program that outputs either ...
BrainStone's user avatar
  • 1,531
117 votes
85 answers

Shortest code that raises a SIGSEGV

Write the shortest code that raises a Segmentation Fault (SIGSEGV) in any programming language.
Anil Arya's user avatar
  • 1,367
46 votes
34 answers

Wait, what language is this?

Recently I had the pleasure of writing a Haskell program that could detect if the NegativeLiterals extension was engaged. I came up with the following: ...
Wheat Wizard's user avatar
  • 97.8k
29 votes
44 answers

This code errors on *this* and *that*, is it really written in them?

Inspired by I'm not the language you're looking for! Challenge Choose two different programming languages, and write a program that prints the following line to stdout (or equivalent): ...
Bubbler's user avatar
  • 75.2k
13 votes
12 answers

Make a Valentine wish with your favourite language [closed]

Write the most creative program to display your Valentine wish to your favorite programming language, in that language. E.g. ...
Wordzilla's user avatar
  • 253
42 votes
6 answers

Overcoming cluster size

Fed up with the reliability of flash storage, you decided to store all your programs on one of those good old 1,440 KiB floppies. However, after copying not even 3,000 programs, the disk was full. How'...
Dennis's user avatar
  • 210k
16 votes
16 answers

Compound Interest... with Wizard Money

Gringotts isn't just a vault, but a reputable financial institution and wizards need loans too. Since you don't want to be screwed over by the Gringotts goblins, you decided it would be a good idea to ...
Beefster's user avatar
  • 9,901
18 votes
9 answers

The meta-polyglot quine

In my time on PPCG, I've noticed that quine problems and polyglot problems are quite popular. Also, meta-solutions to problems, that is, scripts which generate a program which is the solution to a ...
Pavel's user avatar
  • 9,367
28 votes
3 answers

Clean the muddy quartata-fish

This challenge is in honor of the Rookie of the Year category winners of Best of PPCG 2015: muddyfish (for I'm not the language you're looking for!) and quartata (for Implement a Truth-Machine). ...
Zgarb's user avatar
  • 42.6k
7 votes
4 answers

Turing-Complete polyglot [closed]

Write a polyglot (code that works in two or more languages) that has a "mid-section" that can be modified to do any computational task. This question is similar to
Kevin Kostlan's user avatar
3 votes
0 answers

Most creative/diabolical/entertaining way to find Python version? [closed]

There are important differences between Python 2 and 3, so it's often useful to know which version of the interpreter is running your code. The straightforward method is something like this: ...
jakevdp's user avatar
  • 747
-3 votes
2 answers

Write a "hello world" program that can be compiled/interpreted as two different languages simultaneously [duplicate]

Rules: Your program must print "hello world" when executed Your program must be interpretable or compilable into 2 or more languages Your program must require no input or arguments Languages with ...
BLuFeNiX's user avatar
  • 103