We are currently working on new rules that expand the scope of this website to allow more content, and are looking for feedback! See Esolanging:2026 topicality proposal to view and give feedback on the current draft.

Draft:Innocence Vein

From Esolanging
Jump to navigationJump to search

Innocence Vein (an anagram of "inconvenience") is an esoteric programming language by user:raiseafloppafan7741 in 2026. Innocence Vein was made with the goal of being like SELECT., with programs being absolute titans. Unfortunately however, Innocence Vein has failed at this and SELECT. remains undefeated.

Overview

There is a queue of 4x4 matrices where the elements are IEEE 754 double-precision floating-point numbers. There is also a "canvas" full of white pixels initially.

Command Description
IDENTITY. Enqueues the identity matrix.
X-AXIS TRANSLATION. Enqueues the matrix:
| 1 0 0 1 |
| 0 1 0 0 |
| 0 0 1 0 |
| 0 0 0 1 |
Y-AXIS TRANSLATION. Enqueues the matrix:
| 1 0 0 0 |
| 0 1 0 1 |
| 0 0 1 0 |
| 0 0 0 1 |
Z-AXIS TRANSLATION. Enqueues the matrix:
| 1 0 0 0 |
| 0 1 0 0 |
| 0 0 1 1 |
| 0 0 0 1 |
INVERSE. Dequeues a matrix and enqueues its inverse if it has one, otherwise enqueues the identity matrix.
DETERMINANT. Dequeues a matrix and enqueues its determinant multiplied by the identity matrix.
NEGATIVE. Dequeues a matrix and enqueues it multiplied by -1.
TRANSPOSE. Dequeues a matrix and enqueues its transpose.
ADD. Dequeues two matrices B then A and enqueues A + B.
MULTIPLY. Dequeues two matrices B then A and enqueues A * B.
Queue operations
TRANSFER. Dequeues a matrix then enqueues it.
DUPLICATE. Dequeues a matrix then enqueues it twice.
ANNIHILATE. Dequeues a matrix and discards it.
Control flow
LOOP. Dequeues a matrix and if its determinant is zero, it jumps ahead the corresponding end.
END. Jumps back to the corresponding loop.
I/O
INPUT. Reads in a byte of input and enqueues it multiplied by the identity matrix, otherwise enqueues a matrix filled with zeros.
OUTPUT. Dequeues a matrix and if it is of the form of the identity matrix, the floor of the coefficient the identity matrix is multiplied by to get it is printed modulo 256 as a byte.
POINTER. Enqueues a matrix of the form
| 1 0 0 x |
| 0 1 0 y |
| 0 0 1 b |
| 0 0 0 1 |

Where x and y are the x and y coordinates of the mouse-pointer on the canvas with b being 1 if the mouse is down and 0 if not.

PIXEL. Dequeues a matrix of the form
| 1 0 0 x |
| 0 1 0 y |
| 0 0 1 0 |
| 0 0 0 1 |

And retrieves the RGB8 values of the pixel at (x, y) and enqueues the matrix

| 1 0 0 r |
| 0 1 0 g |
| 0 0 1 b |
| 0 0 0 1 |
DISPLAY. Dequeues a matrix of the form
| 1 0 0 x |
| 0 1 0 y |
| 0 0 1 0 |
| r g b 1 |

And displays the RGB8 pixel at (x, y).

Examples

Infinite loop

IDENTITY. LOOP. IDENTITY. END.

Cat program

INPUT. LOOP. OUT. INPUT. END.

SELECT. cat program

Basically a terrible painting application. The color chosen for the pen is black.

IDENTITY.
LOOP.
    POINTER.
    DUPLICATE.
    Z-AXIS TRANSLATION.
    TRANSFER.
    TRANSFER.
    NEGATIVE.
    TRANSFER.
    ADD
    IDENTITY.
    TRANSFER.
    ADD.
    IDENTITY.
    TRANSFER.
    ADD.
    DETERMINANT.
    TRANSFER.
    NEGATIVE.
    IDENTITY.
    TRANSFER.
    ADD.
    LOOP.
        POINTER.
        DUPLICATE.
        Z-AXIS TRANSLATION.
        TRANSFER.
        TRANSFER.
        NEGATIVE.
        TRANSFER.
        ADD
        IDENTITY.
        TRANSFER.
        ADD.
        IDENTITY.
        TRANSFER.
        ADD.
        DETERMINANT.
        TRANSFER.
        NEGATIVE.
        IDENTITY.
        TRANSFER.
        ADD.
    END.
    IDENTITY.
END.

Looping counter

IDENTITY.
IDENTITY.
LOOP.
    DUPLICATE.
    LOOP.
        IDENTITY. IDENTITY.
        TRANSFER. TRANSFER.
        ADD.
        TRANSFER. TRANSFER.
        DUPLICATE. TRANSFER. TRANSFER.
        DUPLICATE. TRANSFER. TRANSFER. TRANSFER.
        ADD. TRANSFER. TRANSFER. TRANSFER. ADD.
        TRANSFER. TRANSFER. DUPLICATE. IDENTITY.
        TRANSFER. TRANSFER. TRANSFER. ADD.
        TRANSFER. TRANSFER. MULTIPLY.
        TRANSFER. DUPLICATE.
        LOOP.
            DUPLICATE. TRANSFER. TRANSFER. OUTPUT. TRANSFER.
            IDENTITY. TRANSFER. TRANSFER. TRANSFER. NEGATIVE.
            TRANSFER. TRANSFER. TRANSFER. ADD. TRANSFER. TRANSFER. DUPLICATE. TRANSFER. TRANSFER.
        END.
        ANNIHILATE. IDENTITY. TRANSFER. TRANSFER. ADD.
    END.
    IDENTITY.
END.

See also