WaidWmy
I AM GOING TO SAY "Hello, World!" BECAUSE I CAN
AlmostGalactic, 2024 · Turing complete: unknown · ●○○ easy · esolangs.org
Tested with 9 known programs · Test method
Run it
The idea
AlmostGalactic made WaidWmy in 2024. Every command is a polite sentence in capitals, one to a line. Printing is I AM GOING TO SAY ... BECAUSE I CAN, stopping is PLEASE HALT THIS PROGRAM, and a jump is WANT TO TALK ABOUT .... The interpreter is a Scratch project, so its numbers and comparisons work the way Scratch does them.
The machine
| Sentence | Does |
|---|---|
I AM GOING TO SAY v BECAUSE I CAN | Print a value on its own line |
LETS MAKE A VARIABLE NAMED n WITH THE VALUE OF v | Make a variable |
LETS SELECT THE VARIABLE CALLED n | Select it, so the next sentences can change it |
CAN WE ADD v TO THE SELECTED VARIABLE | Also SUBTRACT, MULTIPLY and DIVIDE |
JOIN v BEFORE THE SELECTED VARIABLES VALUE | Join text before it, or AFTER |
GET THE USERS INPUT | Read a line into USERINPUT |
MAY I TALK ABOUT l HERE | A label |
WANT TO TALK ABOUT l | Jump to the label |
IF a IS EQUAL TO b THEN LETS TALK ABOUT l | Jump if it holds; also GREATER THAN and LESS THAN |
PLEASE HALT THIS PROGRAM | Stop |
A value in double quotes is that text. A variable's name stands for its value, and any other word is itself. There are also sentences to pick a random number, set the selected variable, wait, and clear the console.
Example
Arithmetic always works on the selected variable.
Arithmetic always works on the selected variable.
The truth machine. On 0 it says 0 and halts. On 1 it jumps to Forever and says 1 again and again.
The long hello world jumps over a halt to a label. The specification shows its output as HELLO and WORLD, but the program says WORLD!, and so does this run.
Patterns it teaches
- Camouflage: the program reads as a list of polite English sentences.
Further
See also
Pseudonatural
Write your own in Run Convert a program from WaidWmy
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: waidwmy.
Command line
shib run waidwmy -e 'I AM GOING TO SAY "Hello, World!" BECAUSE I CAN'shib manual waidwmySource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/waidwmy.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org