ImTooLazyToMakeAnActuallyGoodEsolang
One bit, three commands, and a character at a time.
EvyLah, 2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
EvyLah made this language in 2024 and also calls it Laziness. It can only print. A program holds one bit, flips it with - and drops copies of it into a queue with .. Then , reads the queue as a binary number and prints the character with that code. Every other character is a comment.
Read the story
The bit is never reset, so the next character starts from wherever the last one left it. The Hello! depends on that. Its third and sixth lines start with the bit at 1.
The machine
| Command | Does |
|---|---|
- | Flip the bit |
. | Add the bit to the queue |
, | Print the queue as one character, then empty it |
Every program halts, as there is no loop.
Example
The first line queues 1001000, which is 72, the code of H.
The first line queues 1001000, which is 72, the code of H. The letters at the line ends are comments that say what each line prints.
The second is the XKCD random number. The specification says it prints 4, but it queues 110000, which is 48, the code of 0. The specification's own Python interpreter prints 0 too. The 4 would need 110100.
See also
Queue-based
Write your own in Run Convert a program from ImTooLazyToMakeAnActuallyGoodEsolang
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: imtoolazytomakeanactuallygoodesolang.
Command line
shib run imtoolazytomakeanactuallygoodesolang -e '-..-....,'shib manual imtoolazytomakeanactuallygoodesolangSource
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org