esolang

Hi

Every character of the program says hi.

Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: hihihihihihihihihihihihihi

The idea

Hi is a joke language. Whatever the program is, each of its characters prints hi. The example is Hello, World!, 13 characters, and it prints hi 13 times. The specification calls Hi trivial and files it under languages that are unusable for programming.

The machine

There is none beyond a counter. The program is never parsed, so every text is a program, and only its length matters. A line break counts as a character too. There is no input.

The specification gives interpreters in Common Lisp, Python, C, ><>, brainfuck and Free2Edit. Each one counts characters and prints hi for every one of them.

Example

The second program is the Free2Edit interpreter for Hi.
Expected: hihihihihihihihihihihihi

The second program is the Free2Edit interpreter for Hi. Read as Hi it is 12 characters, so it prints hi 12 times.

Further

Ideas it shows

Also in Jokes

Write your own in Run Convert a program from Hi

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: hi.

Command line

shib run hi -e 'gcwsphpigcwe'
shib manual hi

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/hi.js

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

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