Questions tagged [esoteric-languages]

Esoteric languages are languages designed to push the boundaries of accepted programming language design, either as a joke or as a proof of concept.

Esoteric programming languages are programming languages that are designed as a test of the boundaries of programming-language design, as a joke, or as a proof of concept. These languages are not intended for mainstream use. The first esoteric language was INTERCAL. Brainf*ck is another well-known esoteric programming-language.

74 questions
6
votes
1 answer

How do DP and CC change in Piet?

According to the specification, Black colour blocks and the edges of the program restrict program flow. If the Piet interpreter attempts to move into a black block or off an edge, it is stopped and the CC is toggled. The interpreter then attempts…
Paul Butcher
  • 6,902
  • 28
  • 39
6
votes
4 answers

Have you written your own esoteric (or not) language? What did it look like?

I've seen a few question regarding stackoverflow users' favorite esoteric (or not) programming languages. There are also questions regarding the implementation of languages. However, I was curious to see if any of you have actually written your own…
Vivin Paliath
  • 94,126
  • 40
  • 223
  • 295
5
votes
5 answers

Not using an if statement in Java

This is a very odd, and quite specific question. Ultimately I am trying to write a program convert that takes in java source, and transforms it such that it does not use (Among other things) Arrays Loops User defined methods If statements This is…
James
  • 1,569
  • 10
  • 18
5
votes
5 answers

How to print numbers from 1 to 10 using a loop in Brainfuck? Is it even possible?

How to print numbers from 1 to 10 using a loop in Brainfuck? Is it even possible? I am looking for a solution to this issue.
schrift94
  • 81
  • 4
5
votes
1 answer

Trying to Learn Hexagony

I'm trying to wrap my head around the programming language Hexagony. I've looked at a few sample programs and have tried writing a simple program to read input and print Hey [input]!. Here's what I have. , < . . C $ . . { . # . ; . . .…
Josh D
  • 53
  • 3
5
votes
1 answer

Is it possible to traverse a k-ary tree in-order?

According to the Homespring proposed language standard, salmon travelling upstream need to perform "an in-order search of the river system … to find a river node with the same name as the salmon" on the fish tick up (section 6.4.2). The problem is…
Ontonator
  • 319
  • 3
  • 17
5
votes
1 answer

What does the "Duplicate the top item on the stack" mean in Whitespace language?

I am trying to implement a Whitespace interpreter for fun, currently I am following this tutorial to learn its syntax. The syntax looks easy, but I don't understand what "Duplicate the top item on the stack" mean. What does that mean? does it mean…
Alaya
  • 3,287
  • 4
  • 27
  • 39
5
votes
3 answers

Why is Befunge considered hard to compile?

One of the design goals of Befunge was to be hard to compile. However, it is quite easy to interpret. One can write an interpreter in a conventional language, say C. To translate a Befunge program to equivalent machine code, one can hard-code the…
Prateek
  • 2,377
  • 17
  • 29
4
votes
1 answer

Brainfuck with 1bit memory cells?

Would an implementation of the programming language Brainfuck, still be turing complete if its memory cells were 1bit in capacity, instead of the usual 8bit? The + and - instructions become identical, however this need not be a problem. I see no…
alan2here
  • 3,223
  • 6
  • 37
  • 62
4
votes
2 answers

How to pop Nth item in the stack [Befunge-93]

If you have the befunge program 321&,how would you access the first item (3) without throwing out the second two items? The instruction \ allows one to switch the first two items, but that doesn't get me any closer to the last one... The current…
Brian Hannay
  • 522
  • 4
  • 19
4
votes
1 answer

What should be memory filled with if my malbolge program contains only 1 instruction?

According to the original specification '98, Ben Olmstead Malbolge VM fill empty memory cells using crazy op on two previous cells. "Cells which are not initialized are set by performing op on the previous two cells repetitively." I.e. [m] = crz…
Yury Tarabanko
  • 44,270
  • 9
  • 84
  • 98
4
votes
2 answers

What's wrong with my brainfuck parser code?

I'm trying to make a program in Java that can read, compile, and run brainfuck source files (.bf). I've gotten it to work just fine with Wikipedia's Hello World example, but it breaks on the ROT13 example (claims it reached an unmatched ] when it…
Ky -
  • 30,724
  • 51
  • 192
  • 308
3
votes
1 answer

How do i find the index of a string in Golfscript?

Given a string "ABCDE", how do i find the index of occurrence of another string "C" in Golfscript? ? operator doesn't seem to work (http://www.golfscript.com/golfscript/builtin.html#?): "C" "ABCDE" ?
Sathish
  • 20,660
  • 24
  • 63
  • 71
3
votes
1 answer

Writing nested loop in ArnoldC?

ArnoldC is an esoteric language which uses movie lines(dialogues) of Arnold Schwarzenegger. It can be used to do many basic programs. I was trying to write a nested loop in it but was not able to create it. Is it possible to write nested loop in…
codeczar
  • 273
  • 1
  • 8
  • 22
3
votes
1 answer

Is CTRL+M the same as Enter?

So, I've recently gotten into Whitespace programming, and one of the characters is listed as [LF]. Not knowing what this was(yes, yes, yell at me all you want for being an idiot), I looked it up and found on Wikipedia that it could be typed using…