Linked Questions

525 votes
1k answers
209k views

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
164 votes
129 answers
34k views

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,521
103 votes
41 answers
14k views

Write a piece of code that is executable in at least three different languages. The code must output the integer 1 in language number one, ...
Stewie Griffin's user avatar
68 votes
60 answers
12k views

Your challenge is to write a polyglot that works in different versions of your language. When run, it will always output the language version. Rules Your program should work in at least two versions ...
MD XF's user avatar
  • 14.2k
98 votes
19 answers
20k views

Your challenge is simple. You need to write a program that prints to either STDOUT or a file the year the language it is written in was released. Because this is such a simple task, the twist is that ...
DJMcMayhem's user avatar
  • 60.1k
46 votes
34 answers
16k views

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
  • 103k
42 votes
42 answers
6k views

Notice: Following popular demand I have slightly relaxed the rules: The maximum regex size grows by 1 byte every 5 answers. Answer N may use up to 29 + ⌈N/5⌉ bytes. The score of each answer ...
Martin Ender's user avatar
29 votes
44 answers
7k views

Your task In your language of choice: create a program that outputs 1 This 1 may either be a string or value equivalent to the ...
Graviton's user avatar
  • 2,900
79 votes
16 answers
15k views

Task Create a program or a function that is valid in multiple programming languages, and when compiled/interpreted as a different language outputs "Hello, World!" in a different natural language. ...
Steadybox's user avatar
  • 16.6k
18 votes
50 answers
3k views

This is an answer-chaining question, which means that all answers are affected by those before them. The task The n-th answer to this question must run in all languages that are present in answers ...
FreezePhoenix's user avatar
71 votes
17 answers
7k views

Your task is to write a program that executes in as many languages as possible, with as few characters as you can. To avoid trivial solutions, the program must print the name of the language it was ...
vsz's user avatar
  • 8,143
53 votes
16 answers
4k views

A polyglot is a program that can be run in 2 or more different programming languages. What general tips do you have for making polyglots, or choosing languages that are easy to write polyglots for a ...
jimmy23013's user avatar
  • 37.4k
23 votes
56 answers
3k views

In this question each answer will get a "toolbox" that can be used to construct a program/function. The toolbox will consist of two things: a list of programming languages a list of valid characters ...
Wheat Wizard's user avatar
  • 103k
35 votes
26 answers
6k views

Task: Your challenge is, given previous submissions and itself as input, output the language that they're written in, in the following format: Say the first program is in Ruby. It must output ...
clismique's user avatar
  • 7,000
102 votes
9 answers
7k views

99 (pronounced "ninety-nine") is a brand new Esoteric programming language (not to be confused with 99, note the italics). Your task in this challenge is to write an interpreter for 99 that ...
Calvin's Hobbies's user avatar
53 votes
11 answers
5k views

Introduction If you're not familiar with Hexagony, it's an esoteric language created by Martin Büttner. The thing is that this language accepts multiple forms for the program. The following programs ...
Adnan's user avatar
  • 44.7k
29 votes
21 answers
5k views

Inspired/mostly copied but I don't think it's a dupe. Also Inspired. In this challenge, you will create polyglots that include all languages from previous answers, and another language which you won't ...
emanresu A's user avatar
  • 46.2k
20 votes
19 answers
5k views

Intro Beauty lies in the eye of the beholder. Output lies in the choice of the compiler. There are some codes that give different outputs based on what language they are executed in. Take for ...
NoShady420's user avatar
21 votes
13 answers
2k views

Challenge: Write a code that, when executed will output the source code of a second program that can be executed in another language. The second program should output the source code of a third ...
Stewie Griffin's user avatar
26 votes
9 answers
5k views

While ><> is not a popular language, it can be good for golfing and has been used on this website. It was inspired by Befunge and has some similarities in its instructions. Required Commands:...
Kevin Brown-Silva's user avatar
45 votes
3 answers
2k views

Klein is a 2D language I have designed that can be embedded on 12 different topological surfaces. A Klein program can be run on different surfaces by changing the command line arguments. The ...
Wheat Wizard's user avatar
  • 103k
26 votes
2 answers
1k views

Background Incident is a fairly unusual programming language, in that its list of tokens is not predetermined, but rather inferred from the input. As such, tokenising an Incident program can be ...
user avatar
-11 votes
1 answer
815 views

I'm sure this is going to spark some controversy, but let's do a practical demonstration. The objective of this is simple, using the new code of conduct and no input, print out my pronouns ( "he/him"...
tuskiomi's user avatar
  • 3,871
-4 votes
2 answers
374 views

In this polyglot challenge, you will work together to figure out how to output all the 26 letters of the English alphabet! How does this work? For each answer, you must pick a new language (or a new ...
arodebaugh's user avatar