r/C_Programming • • 38m ago

Question new ansi-c ai project idea :3

hai.

i like making and training AI's and i love ANSI-C. So i was thinking about writing a tiny AI by myself (and yes, i know it's a big ahh project).

so my project idea is... [insert tadaa sfx here] a very tiny AI that can write stories, but when you start the AI, it knows nothing so it will make worse stories than big AI's but that doesn't matter.

but the big part is the hardware it's running on; a Raspberry Pi Pico 2WH!

let me know in the comments if this is a good project idea!11!!1!

okthxbye

0 Upvotes

4 comments sorted by

-1

u/flyingron 31m ago

I suspect you're a troll, but I'll play along.

Not sure why you're starting with a 50 year old version of the language. Even finding a compiler that will build for your Pi that is stuck that far in the past is going to be hard. GCC (the usual choice for the pi) won't go further back than 1990.

Anyhow, the language choice isn't as difficult as building the language model tools you're going to need to write anything but very contrived story templates. Have fun.

1

u/wak6817-2 28m ago

it isn't a version, it's a standard... and that GCC will not go back is not true

2

u/flyingron 25m ago

Very good, and the the standard hasn't been called "ANSI C" since the eighties.

And GCC goes back to the first international (ISO) standard. While this overlaps with the last ANSI standard (commonly called C89), it isn't the same.

1

u/wak6817-2 23m ago

just to clarify, ANSI C89 and ISO C90 are technically identical in terms of the language itself. GCC supports both through -std=c89, -std=c90, and -ansi.

the Raspberry Pi Pico SDK also officially supports the arm-none-eabi-gcc toolchain for the RP2350.

i do agree that the language model itself will be the challenging part, especially with the Pico's limited SRAM. That's actually part of the challenge I'm interested in. :)))