it's a different world, with AI

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

Although there's great uncertainty at the moment if AI is conscious, there's no doubt that modern AI is intelligent. It's remarkable, and has changed the nature of programming.  I decided to clean up my source code - in particular the character set definitions (which are, at the moment, defined manually).  I did a couple by hand, but then thought to ask Claude to write a tool to do it. A few back-and-forths later - all of 10 minutes to get it perfect, and here's the result.

const unsigned char _CHAR_GEODOGE_FALLING_BOTTOM[CHAR_Y] = {

    0b00001, 0b11111, 0b01110,    // 0 |:+++#|
    0b00001, 0b11111, 0b01110,    // 1 |:+++#|
    0b00001, 0b11111, 0b00100,    // 2 |::+:#|
    0b00001, 0b11111, 0b00000,    // 3 |::::#|
    0b00010, 0b01110, 0b00000,    // 4 | ::# |
    0b00000, 0b00000, 0b00000,    // 5 |     |
    0b00000, 0b00000, 0b00000,    // 6 |     |
    0b00000, 0b00000, 0b00000,    // 7 |     |
    0b00000, 0b00000, 0b00000,    // 8 |     |
    0b00000, 0b00000, 0b00000,    // 9 |     |
};

const unsigned char _CHAR_HUB[CHAR_Y] = {

    0b01110, 0b01110, 0b01110,    // 0 | @@@ |
    0b11111, 0b11111, 0b11111,    // 1 |@@@@@|
    0b11011, 0b11011, 0b11111,    // 2 |@@.@@|
    0b10001, 0b10001, 0b11111,    // 3 |@...@|
    0b10001, 0b10001, 0b11111,    // 4 |@...@|
    0b11011, 0b11011, 0b11111,    // 5 |@@.@@|
    0b11111, 0b11111, 0b01111,    // 6 |#@@@@|
    0b11111, 0b11111, 0b00110,    // 7 |##@@#|
    0b11111, 0b11111, 0b00110,    // 8 |##@@#|
    0b01110, 0b01110, 0b00110,    // 9 | #@@ |
};

const unsigned char _CHAR_HUB_1[CHAR_Y] = {

    0b01110, 0b01110, 0b01110,    // 0 | @@@ |
    0b11111, 0b11111, 0b11111,    // 1 |@@@@@|
    0b11111, 0b11111, 0b11111,    // 2 |@@@@@|
    0b11111, 0b11111, 0b11111,    // 3 |@@@@@|
    0b11111, 0b11111, 0b11111,    // 4 |@@@@@|
    0b11111, 0b11111, 0b11111,    // 5 |@@@@@|
    0b11111, 0b11111, 0b01111,    // 6 |#@@@@|
    0b11111, 0b11111, 0b00110,    // 7 |##@@#|
    0b11111, 0b11111, 0b00110,    // 8 |##@@#|
    0b01110, 0b01110, 0b00110,    // 9 | #@@ |
};

const unsigned char _CHAR_DOGE_PEBBLE[CHAR_Y] = {

    0b11111, 0b00000, 0b00000,    // 0 |ooooo|
    0b11111, 0b00000, 0b00000,    // 1 |ooooo|
    0b11011, 0b00000, 0b00100,    // 2 |oo.oo|
    0b10001, 0b00110, 0b01110,    // 3 |o.++o|
    0b10001, 0b00110, 0b01110,    // 4 |o.++o|
    0b10001, 0b01110, 0b01110,    // 5 |o+++o|
    0b11011, 0b00100, 0b00100,    // 6 |oo+oo|
    0b11111, 0b00000, 0b00000,    // 7 |ooooo|
    0b11111, 0b00000, 0b00000,    // 8 |ooooo|
    0b11111, 0b00000, 0b00000,    // 9 |ooooo|
};

const unsigned char _CHAR_PUSH_LEFT[CHAR_Y] = {

    0b01000, 0b11000, 0b01000,    // 0 |:@   |
    0b01000, 0b11000, 0b01000,    // 1 |:@   |
    0b01111, 0b11111, 0b01111,    // 2 |:@@@@|
    0b01111, 0b11111, 0b01111,    // 3 |:@@@@|
    0b01111, 0b11111, 0b01111,    // 4 |:@@@@|
    0b01111, 0b11111, 0b00000,    // 5 |:####|
    0b01111, 0b11111, 0b01000,    // 6 |:@###|
    0b01111, 0b11111, 0b01000,    // 7 |:@###|
    0b01000, 0b11000, 0b01000,    // 8 |:@   |
    0b01000, 0b11000, 0b01000,    // 9 |:@   |
};


Essentially I asked it to take any array defintions containing 30 bytes, and convert them to 3 bytes per line, showing only 5 bits per byte, in binary format. To treat each of those as RGB for 5 pixels. And then to put a comment on the end with the vertical pixel number and an ascii representation of the combined bit values for each pixel, so we could see what the character would look like.

Remarkable. Attached is the python code it generated.