Questions tagged [rosetta-stone]
In a Rosetta Stone challenge, the goal is to write a solution using as many programming languages as possible.
35
questions
-13
votes
5
answers
343
views
12 with no 1234567890, but polyglot
This is my 12th question, so I thought of this idea.
Goal:
Output 12, with any preceding or trailing whitespace permitted
In as many languages as possible (where different versions or flags count as ...
16
votes
2
answers
748
views
Pristine Polyglots
As the title says, you are to create a pristine program in as many languages as possible. A pristine program, taken from here, is:
Let's define a pristine program as a program that does not have any ...
26
votes
6
answers
2k
views
Build an alphabetised polyglot
As TIO can show, every letter of the Latin alphabet is represented when it comes to languages. For every letter there is at least 1 programming language whose name begins with that letter. Your task ...
11
votes
6
answers
2k
views
Polyglot self-interpreter time
Your task is to make a program which interprets the language it is run in, but also works in many languages.
Let's say you make a Brainfuck-Underload self-interpreglot, as it will be called. Run in ...
20
votes
5
answers
3k
views
Print your char count in words, in many languages
This challenge is inspired by my earlier challenge "Create a program that prints the amount of characters it has, in words".
This challenge's rules are simple: make a program that prints its ...
5
votes
2
answers
678
views
A Multipurpose Quine
I personally love quines, but they all seem to be so... static. So why not create a quine that can do more.
Challenge
The challenge here is to create a quine that without any sort of input is a ...
16
votes
3
answers
613
views
The Pyramid of Languages
Write a code that runs or compiles in as many programming languages as possible and prints a newline separated list of names of previous and current programming languages.
Every used language must ...
26
votes
11
answers
2k
views
404 - Unique 404 page not found
Inspired by a polyglot on the Stack Overflow 404 page:
Goal
Your goal is simple, to create a polyglot that outputs the number 404, and then terminate, in as many languages as possible.
Restrictions
...
76
votes
16
answers
14k
views
Hello World in Multiple Languages
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.
...
25
votes
6
answers
1k
views
Polyglot the (non constant) OEIS!
Disclaimer: This is heavily inspired by "Polyglot the OEIS!" but fixes the problem that lead to closure (see the output section) and was re-posted as to not invalidate answers.
Introduction
...
41
votes
12
answers
3k
views
Polyglot the OEIS! [duplicate]
Note: This challenge has been moved to Polyglot the (non constant) OEIS! to avoid closure.
Introduction
We all know and love the on-line encyclopedia of integer sequences (OEIS). So what if we made ...
5
votes
7
answers
559
views
Stealing sequences: Robbers
This is cops-and-robbers. This is the Robbers thread. For the cops thread, go here.
I've noticed a number of OEIS challenges since I joined the site. It seems only fair that we have a cops-and-robbers ...
10
votes
6
answers
604
views
Stealing sequences: Cops
This is cops-and-robbers. This is the Cops thread. For the robbers thread, go here.
I've noticed a number of OEIS (On-line Encyclopedia of Integer Sequences) challenges since I joined the site. It ...
8
votes
1
answer
390
views
How high can you count in different languages?
Based on How high can you count? let us give an advantage to the polyglot people.
Challenge:
Your task is to write as many programs / functions / snippets as you can, where each one outputs / prints ...
40
votes
7
answers
2k
views
Sharing (characters) is Caring!
Overview
Consider the following task:
Given a positive integer n > 0, output its integer square root. The integer square root of a number n is the largest value of x where x2 ≤ n, usually ...
7
votes
1
answer
537
views
Comment-free polyglot with different, nontrivial, behaviour per language
This challenge is inspired by this other challenge, which you may want to read first for some context. However, a competitive answer is likely to look very different, so after reading some posts on ...
96
votes
19
answers
19k
views
When was this language released?
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 ...
8
votes
6
answers
1k
views
Rosetta Stone Code Golf Challenge: Print Certain Numbers; all snippets must be same length
Rosetta Stone Code Challenges are challenges where you must complete the task in as many languages as possible.
The Challenge
You will be given two numbers, n and ...
13
votes
1
answer
327
views
Golf some quine stripes in different languages
You will choose m languages and write n programs in each language, each with length n*m. The kth program should output the kth character of each program, ordered by the program number.
For example, in ...
16
votes
5
answers
2k
views
RadioASCII Elements: Output the elements of the periodic table while slowly losing characters
Here is a list of the 118 (current) elements of the periodic table (in a collapsed Stack Snippet for your convenience):
...
11
votes
3
answers
1k
views
Monkeys at a Typewriter
Sometimes when you press a key on a keyboard, the letter doesn't always display on screen. Whether this is because of a dodgy connection or otherwise, you have decided to write a script to control the ...
19
votes
3
answers
1k
views
Choose-Your-Own-Language Code
Let's take a grid of 16x16 printable ASCII characters (code points 0x20 to 0x7E). There are 30-choose-15 paths from the top left to the bottom right corner, making only orthogonal moves, like the ...
8
votes
2
answers
569
views
Python: I wish I was PHP [closed]
There's an old story about a stonecutter who was never satisfied with what he was. He wished he could become the sun, and so he was. Blocked by the clouds, he wished to be - and became - a cloud. When ...
22
votes
12
answers
2k
views
Restricted Polyglot
Polyglots are programs that are valid in multiple programming languages simultaneously. Most such polyglots are written in such a way that certain constructs of one language are interpreted as ...
8
votes
2
answers
790
views
Rosetta Stone Challenge: Run-Length Encoding v2.0
The goal of a Rosetta Stone Challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
The Challenge
We've done run-length encoding before but only ...
37
votes
24
answers
7k
views
Rosetta Stone Challenge: What's Average Anyways?
The goal of a Rosetta Stone Challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
The Challenge
When people use the term "average," they ...
2
votes
1
answer
989
views
Rosetta Stone Code Challenge
I presume you've all heard of the Rosetta Stone, an ancient stone found to have essentially the same passage written on it in three different scripts. This challenge is based upon that: you have to ...
0
votes
0
answers
175
views
Create a chain of programs in different languages [duplicate]
Create a program in any language, which outputs the source code for a program in another language, which outputs the source code for a program in another language, and so on.
Please post at the top ...
10
votes
2
answers
1k
views
Create a chain of spam generators in as many languages as possible
The goal of a rosetta-stone challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
In this challenge, you will create a program that will ...
10
votes
4
answers
832
views
Rosetta Stone Challenge: Gene Mapping
The goal of a Rosetta Stone Challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
The Challenge
Your challenge is to implement a program that ...
-1
votes
8
answers
767
views
Printing all numbers from N to M in one single expression [closed]
Given the integers N and M, can you print all numbers from N to M comma-seperated? The hitch is to use one single expression.
The output for N=23 and M=42 should look like this:
...
11
votes
3
answers
711
views
Rosetta Stone Challenge: Draw a Box Plot
The goal of a Rosetta Stone Challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
The Challenge
Your challenge is to implement a program that ...
14
votes
16
answers
2k
views
Rosetta Stone Challenge: Find the rule for a series
The goal of a Rosetta Stone Challenge is to write solutions in as many languages as possible. Show off your programming multilingualism!
The Challenge
Your challenge is to implement a program that ...
-6
votes
3
answers
5k
views
Descending Sort using Standard Ascending Sort Function [closed]
Taking an array of records. For example
...
18
votes
2
answers
809
views
Quine that takes as input the name of a language and outputs the same thing implemented in the input language
From Quine central:
Write a quine that takes as input the name of a language and outputs the same thing implemented in the input language.
The source article has something you can work from, but as ...