Linked Questions

0 votes
2 answers

Make a ;#*:) interpreter [duplicate]

A few month back, I made a language called ;# (Semicolon Hash) and it started a little bit of a craze (it even got its own tag, as you can see). But, as with ...
-1 votes
3 answers

Make a Brainfuck Interpreter [duplicate]

There already is a Brainfuck interpreter question, but it is from 2011 and not up to date with current site standards and vague in places. I have proposed reposting this in chat, and it was well-...
  • 3,815
6 votes
0 answers

One source, lots of Brainfuck [duplicate]

Write a Brainfuck interpreter that can interpret multiple Brainfuck programs embedded within the same source. The syntax is the same except that the instructions must be prefixxed with the number/ID ...
11 votes
40 answers

Integer square root of integer [closed]

Problem: In your choice of language, write the shortest function that returns the floor of the square root of an unsigned 64-bit integer. Test cases: Your function must work correctly for all ...
  • 1,781
23 votes
13 answers

How many elves does Santa need to deliver gifts?

Santa needs some help determining how many elves he will need to help him deliver gifts to each house. Coal is considerably heavier than presents, so santa will need three elves for every naughty ...
  • 1,611
17 votes
9 answers

Write a brainfuck translator

In any programming or scripting language x, write a program that takes a valid brainfuck sourcecode from stdin and output, to stdout, the sourcecode of a program, written in language x, that would ...
  • 8,956
29 votes
9 answers

Convert Chevrons to Soliduses

Write a program that takes in a string containing only spaces, newlines, and angle brackets: <, > (chevrons). Output a ...
29 votes
2 answers

Zero an arbitrarily large cell in Brainf***

Your task is to write a piece of code that zeros the current cell in the Brainfuck variant that, each cell can contain a signed integer of arbitrarily large magnitude, instead of the normal 0 to 255. ...
  • 36.2k
8 votes
8 answers

Convert Brainfuck to a Non-Golfing Language

Input: Any Brainfuck program. This includes brainfuck programs with comments such as +++COMMENT[>+++<-].. Output: A program in one of the below languages that ...
  • 4,760
13 votes
3 answers

Write a brainfuck compiler

Write a program that takes a brainfuck program and compiles it to executable machine code. You can target x86, x86_64, jvm (java bytecode) or armv6, and use one of the following executable formats: ...
7 votes
5 answers

Trivial Brainf**k Substitution Interpreter

Brainf**k is the most famous esoteric programming language and is the inspiration for hundreds of other esoteric languages. In fact, there are quite a few languages that are so heavily based off of ...
  • 13.3k
11 votes
2 answers

What is a good way to deal with tasks that require arrays using Haskell?

Often a task requires real arrays. Take for instance the task to implement Befunge or ><>. I tried to use the Array module for this, but it's really cumbersome, ...
  • 9,970
7 votes
3 answers

Acrostic polyglot programming [closed]

The challenge is to write an acrostic piece of code. When read normally (horizontally), the code should take an input string and remove all but the first character on each line. For example, the ...
  • 1,249