Goog
One counter that can only count down, and a word that prints its own name.
Hazel, 2025 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Hazel made Goog in 2025 and wrote its interpreter in Go. It has a counter and no way to add to it. To print a letter, a program counts down from 0 past -8, where the counter comes round to 128, and on down to the letter's code. The helloworld spends 33 dots on the h.
Read the story
There are no jumps and no loops, so a program runs once from start to end. A line break sets the counter back to 0, so each letter usually gets a line of its own.
The machine
| Char | Does |
|---|---|
. | Take 1 from the counter |
+ / | Print the counter as a number or as a character |
& | Print a line feed |
| line break | Set the counter back to 0 |
[ ] | Start a separate counter; delete it again |
# * | Read a character into the PI counter; copy it into the counter |
goog | Print goog... |
The specification gives the range, -8 to 128, but not the start. The helloworld's letters come out right only from 0. Its sixth line has 115 dots, which give character 22, where a space would need 105.
Example
The first is the start of the helloworld.
The first is the start of the helloworld. The second counts down to -8, and one more step brings the counter round to 128. The third is the start of the ASCII table countdown, which reads a character and counts down from it, printing each code and its character.
Further
See also
Also in Turing tarpits
Write your own in Run Convert a program from Goog
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: goog.
Command line
shib run goog -e '#*.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&.+&/&&' --input 'z'shib manual googSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/goog.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org