The Befunge Programming LanguagePublished on 19 October 2019 (Updated: 19 October 2019)
Befunge is a programming language with some very unusual standards, as a two-dimensional, self-modifying, stack-based programming language. Wikipedia has it that it was designed in 1993 by Chris Pressey, merely to be as difficult to compile as possible.
All operations in Befunge are limited to a single character, and the source text can be traversed in any direction through the file. The “Instruction Pointer” starts in the upper left corner and proceeds to the right, running every character it crosses. When it reaches an arrow,
< > ^ v, that pointer will turn and travel in the new indicated direction.
Instead of variables, all operations act on one global stack of integers, similar to Forth. 0-9 will just push their value,
+ - * / % pop the top two values and push their normal result,
. prints out the top number, and
, prints the corresponding character instead.1
- Hello World in Befunge on 27 November 2018 by Stuart Irwin
S. Irwin, “Hello World in Befunge,” The Renegade Coder, 26-Nov-2018. [Online]. Available: https://therenegadecoder.com/code/hello-world-in-befunge/. [Accessed: 19-Oct-2019]. ↩