From Esolang
Jump to navigation Jump to search
Designed by User:SpaceByte
Appeared in 2022
Computational class Unknown
Reference implementation [1]
File extension(s) .lhwi

Lengthwise is an esoteric programming language consisting of only two characters. Made on 6/24/22, Lengthwise was created to be minimalistic in every way, making it's concept incredibly easy, but making the creation of programs with it much more tedious and difficult due to how the simplicity limits functionality. Lengthwise is likely to not being anywhere near Turing Complete

Language description

Lengthwise was created with the idea of ultra-simplicity in mind. The concept began at a concept of two characters, based off of an idea created of a language similar to brainfuck, but using only two characters, a separator, and an actual character, however, lengthwise was different from this early concept, lengthwise contains an increment character, and an execute character. Lengthwise only has one value, unlike brainfuck, with 30,000, this one value is incremented, and 7 different actions occur based off of what the value is. To allow decrementation, the value has a maximum, or an "overflow point" where the value resets to zero once it is greater than that value. Lengthwises value maximum is 512, so when it is incremented to 513, it becomes 0.

Length / Count Commands

These are actions preformed based off of the integer of the value. If it is not a set command, it defaults to printing the ASCII character of that value.

Command Description
Length 0 End the program.
Length 1 Go back 5 lines.
Length 2 Skip forward 5 lines.
Length 3 Print a fast line break.
Length 4 Read a character, and set the value to its ASCII value.
Length 5 Set the Console Window title to the text printed in the Console, then, clear the console.
Any Other Print the character with the respective ASCII value.


Hi Title

This program prints "hi" and then transfers the printed string to become the title. This program is bundled with the interpreter. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.