esolang

Base64 Text

A Hello World that decodes to Hello, world! and never says it.

Mihai Popa, 2024 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: SGVsbG8sIHdvcmxkIQ

The idea

Mihai Popa made Base64 Text in 2024. It is like Text, where every program prints its own source, but the programs are written in Base64. So every program is a quine. SGVsbG8sIHdvcmxkIQ is Hello, world! in Base64, and running it prints SGVsbG8sIHdvcmxkIQ.

Read the story

The specification counts Notepad, WordPad, type and cat among its interpreters, and calls Notepad its most common IDE, one that runs the program as you type it.

The machine

None. The output is the source, character by character. Nothing is ever decoded.

Example

The second one is the XKCD random number.
Expected: WEtDRCByYW5kb20gbnVtYmVyIGlzOiA0

The second one is the XKCD random number. Decoded it reads XKCD random number is: 4. The FizzBuzz program is 682 characters of Base64 that decode to the numbers 1 to 100 with Fizz and Buzz, one to a line. It prints the 682 characters.

Patterns it teaches

Further

Also in Jokes

Write your own in Run Convert a program from Base64 Text

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: base64-text.

Command line

shib run base64-text -e 'SGVsbG8sIHdvcmxkIQ'
shib manual base64-text

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/base64-text.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org