esolang

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

Expected: Hello, World!

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

SentenceDoes
I AM GOING TO SAY v BECAUSE I CANPrint a value on its own line
LETS MAKE A VARIABLE NAMED n WITH THE VALUE OF vMake a variable
LETS SELECT THE VARIABLE CALLED nSelect it, so the next sentences can change it
CAN WE ADD v TO THE SELECTED VARIABLEAlso SUBTRACT, MULTIPLY and DIVIDE
JOIN v BEFORE THE SELECTED VARIABLES VALUEJoin text before it, or AFTER
GET THE USERS INPUTRead a line into USERINPUT
MAY I TALK ABOUT l HEREA label
WANT TO TALK ABOUT lJump to the label
IF a IS EQUAL TO b THEN LETS TALK ABOUT lJump if it holds; also GREATER THAN and LESS THAN
PLEASE HALT THIS PROGRAMStop

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.
Expected: User Name

Arithmetic always works on the selected variable.

Expected: 42

The truth machine. On 0 it says 0 and halts. On 1 it jumps to Forever and says 1 again and again.

Expected: 0

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.

Expected: HELLO WORLD!

Patterns it teaches

  • Camouflage: the program reads as a list of polite English sentences.

Further

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 waidwmy

Source

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