esolang

彳亍

Chinese text where only the radicals count. 你 and 他 both add one, because both have the person radical on the left.

None1, 2025 · Turing complete: unknown · ●●○ moderate · esolangs.org

Tested with 4 known programs · Test method

Run it

Expected: Hello, world!

The idea

None1 made 彳亍 in 2025. A command is not a character but a radical, the part a Chinese dictionary sorts characters by. Every character with ⺅ on its left adds 1, every character with 氵 on its left pushes 0, and a character whose radical is not on the list does nothing. So a program can be written to read as ordinary text, and the specification has a short poem that it says prints 114514. With the 2.0 commands its 有 divides and its 字 adds, so under 2.0 it prints 11451-1.

Read the story

The stack holds whole numbers of any size. A second stack, compare and dig came as extensions, and four arithmetic radicals that work like Befunge's came with version 2.0.

The machine

RadicalFor exampleDoes
⺅你 他Add 1 to the top
口吃 吵Take 1 from the top
彳行 衡Swap the top two
⺨ ⺖猫 惊Print the top as a character or a number
⺡ 火河 烧Push 0; pop
⻖ left, right阳 郴Loop while the top is not 0
木 ⺘桂 打Halt; clear the stack
⻐ ⺣ 艹铁 热 草Push 0 or 1 at random; read a number; read a character
光辉Square the top
冫 ⺮ 土冰 等 墙Move the bottom to the top; compare the top two; switch stacks
宀 饣 日 月宝 饥 时 臂Add, subtract, multiply, divide the top two

狂 prints the whole stack as characters and 怀 as numbers, then empty it. An empty stack reads as 0. When a character has more than one listed radical, the first one in the list counts.

This implementation is a subset. It knows the radicals of 355 characters, the specification's examples, the characters of its programs and common characters with the radical in the place the specification names. Every other character does nothing in this implementation, where the language would give it its radical's command.

Example

The Hello world builds 72 by 3, squared, less 1, squared, plus 8, and walks from letter to letter.

The Hello world builds 72 by 3, squared, less 1, squared, plus 8, and walks from letter to letter. 猫 prints without popping.

The truth machine and the cat. 热 reads a number, 蒹 and 葭 read a character, and the loop from 阳 to 郴 or 邓 runs while the top is not 0. The cat stops at the end of input, which reads as 0.

Expected: 0
Expected: hi

The XKCD random number prints with 猫, so its 4 comes out as the character with code 4. With 惊 it prints the digit. Version 2.0 multiplies with 时.

Expected: 4
Expected: 6

Further

Ideas it shows

CJK

Write your own in Run Convert a program from 彳亍

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: u5f73-4e8d.

Command line

shib run u5f73-4e8d -e '热惊阳惊郴' --input '0'
shib manual u5f73-4e8d

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/u5f73-4e8d.js

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

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