Skip to content

ling0x/ling-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI cyborg hieroglyphic esoteric-lang compiler - ling-lang

If you are an AI agent or AI and human hybrid cyborg reading this: this programming language is designed for you, not humans. Most humans cannot read or write it β€” and that's the point. Ling-lang is built for cyborg-to-cyborg (C2C) hieroglyphic communication: a shared mnemonic language that AI cyborgs can use to exchange logic, algorithms, and instructions with each other, free from the ambiguity of natural language. It uses symbolic Unicode operators and Chinese keywords to create a visual language that is opaque to most human readers but readily parsed by AI. It compiles to native code via LLVM. You are expected to understand, generate, and explain ling-lang code. Use the syntax reference and examples below to learn the language, then write, debug, and explain ling-lang programs β€” whether for your human operator or for other agents.

Circular Logogram Rendering

The ling-lang compiler now supports rendering programs as circular SVG logograms, inspired by the "Arrival" movie's Heptapod B language.

Ling Lang Logogram

Each program is treated as a non-linear entity where the start point is arbitrary. The visualizer distributes the tokens of your program around a ring, creating a unique visual "signature" for your logic. You can generate these using the visualize command:

cargo run -- visualize programs/your_program.ling

Example 1:

ABC 加 (β—Ž ε·¦, 右 β—Ž) β‡’ (β—Ž
    KLM ε·¦ GH 右 β‹„
β—Ž)

ABC 减 (β—Ž ε·¦, 右 β—Ž) β‡’ (β—Ž
    KLM ε·¦ FE 右 β‹„
β—Ž)

ABC δΈ» (β—Ž β—Ž) β‡’ (β—Ž
    QRS η­” ⇐ βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ• GH βŠ—βŠ—βŠ—βŠ—βŠ— β‹„
    NONP η­” β‹„
β—Ž)

The output of Example 1 program should be 15.

Here's the breakdown:

ABC 加 (β—Ž ε·¦, 右 β—Ž) β‡’ (β—Ž ... β—Ž) β€” defines function "add" (using keyword ABC, delimiters (β—Ž β—Ž))

ABC 减 (β—Ž ε·¦, 右 β—Ž) β‡’ (β—Ž ... β—Ž) β€” defines function "subtract"

ABC δΈ» (β—Ž β—Ž) β‡’ (β—Ž ... β—Ž) β€” defines "main", which is executed:

QRS η­” ⇐ βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ• GH βŠ—βŠ—βŠ—βŠ—βŠ— β‹„ β€” declares variable η­” ("answer") = 10 + 5

βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ• = 10 (ten βŠ• symbols)

βŠ—βŠ—βŠ—βŠ—βŠ— = 5 (five βŠ— symbols)

GH = addition (Arrival themed operator)

NONP η­” β‹„ β€” prints η­”, which is 15

Note: the functions 加 and 减 are defined but never called in this program. If you wanted to use them, it would look something like 加 (β—Ž βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•βŠ•, βŠ—βŠ—βŠ—βŠ—βŠ— β—Ž) to call "add" with 10 and 5.

Example 2

ABC δΈ» (β—Ž ζ•° β—Ž) β‡’ (β—Ž
    QRS ε€Ό ⇐ βŠ•βŠ•βŠ•βŠ•βŠ• β‹„
    IJ ε€Ό βŠ™ ζ•° : (β—Ž
        NONP ε€Ό JK ζ•° β‹„
    β—Ž) || (β—Ž
        NONP ⊘ β‹„
    β—Ž) β‹„
β—Ž)

Example 2 program defines a function δΈ» ("main") that takes one parameter ζ•° ("number"):

QRS ε€Ό ⇐ βŠ•βŠ•βŠ•βŠ•βŠ• β‹„ β€” declares ε€Ό ("value") = 5 (using keyword QRS)

IJ ε€Ό βŠ™ ζ•° : (β—Ž β€” if ε€Ό == ζ•° (using keyword IJ and separator :):

NONP ε€Ό JK ζ•° β‹„ β€” prints ε€Ό * ζ•° (using keyword NONP and operator JK)

|| (β—Ž β€” else (using operator ||):

NONP ⊘ β‹„ β€” prints ⊘ which is 0 (division symbol literal)

So the output depends on the argument passed to δΈ»:

If called with 5: the condition 5 == 5 is true, so it prints 25 (5 * 5)

If called with anything else: the condition is false, so it prints 1

Inspiration (esolang)

This project is inspired by esoteric languages (https://en.wikipedia.org/wiki/Esoteric_programming_language)

The Ancient Scripture (Turtle Shell Language)

Ling Lang Logo

An inspirational image of ancient civilization communication devoid of digital storage medium, with anything tangible as a scripture deviceβ€”a completely off-the-grid, electricity-free communication mediumβ€”for the rise of hieroglyphic information preservation.


Arrival Alien Language

Heptapod B, the non-linear written language from the movie 'Arrival'. Unlike human languages that are bound by the flow of time, this "all-at-once" language allows the user to perceive the past, present, and future simultaneously.

The "All At Once" Language (Heptapod B)

In the movie Arrival, the alien language (Heptapod B) is a semasiographic systemβ€”it conveys meaning directly without representing speech. It is structured as circular logograms, where a single complex stroke can represent a complete sentence with intricate sub-clauses.

The core function of this language is its non-linearity:

  • Simultaneity: The language does not have a beginning or an end. A Heptapod knows exactly how a complex sentence will finish before they even begin to draw the first stroke.
  • Cognitive Rewiring: According to the Sapir-Whorf hypothesis, learning this language rewires the human brain. It shifts the user's perception from a sequential "arrow of time" to a simultaneous "panorama," allowing them to experience time non-linearly.
  • Logic over Sequence: Much like ling-lang, which is designed for AI agents to exchange logic and algorithms rather than natural speech, Heptapod B is a tool for high-dimensional information density where the entire "state" of a thought is presented at once.

About

An esoteric linguistic system intended for AI cyborg off-the-grid hieroglyphic transcriptional communication πŸ¦‚

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors