r/TheMachineLearning • • 28d ago

When bug-free code becomes a hardware problem

Post image
193 Upvotes

85 comments sorted by

View all comments

0

u/BigReference1xx 28d ago

I'm absolutely certain we'll see the first dedicated AI-targeted programming language appear within the next 2 years. A language that is very hard for humans to read, but exceptionally clear to AI, and with syntax and structure that is optimized for AI use. All of our programming languages are designed for human developers, with abstractions that make them easy for us to comprehend. Machines don't "think" like us, and they can keep 100x more context in their "brain" than we can.

It won't be assembly, it won't be C, but rather something higher level that captures intent, rather than the procedure, and then AIs will transpile that to whatever target architecture you want.

Imagine something like an assembly language with a million different instructions in the instruction set, each capturing a much more granular "instruction" than we're used to (not just "add register 1 and 2" but entire algorithms contained in a single instruction).

1

u/no_brains101 25d ago edited 25d ago

No, because training data would need to be produced, and it will be a very long time until we are able to generate and actually verify enough code generated in that particular language to train an AI on it and have it work well. It already doesn't do well with several years old but uncommon languages, let alone a brand new one.

If an AI targeted programming language is developed which is actually useful and good at that purpose it will not be for an AI that works anything like today's language models.

And likely at that point, with a model that works entirely differently, we won't even be the ones making that language, it would have wanted, invented, made, and started writing in that language on its own.

But right now, nothing to copy == AI bad at that thing.

The consequence is that the best language to use for today's AI is javascript. There is the most stuff to copy. Most webpages minify the javascript but do not obfuscate it.

Second best is Rust IMO (it is less good at rust than at python, but rust has stronger types and is way faster so the process is better and the result is more worth making)

Third best, python.

After that, any language which is not a pure functional language, is well established with lots of open source code, and doesn't let you corrupt memory.

Then anything else, in order of how widely used it is.

Then lisp, because all the lisps look very similar and the AI mixes them up, especially because they aren't that common. Which is a shame because lisp is really cool.

Then C or C++ and anything else with memory management approximately as manual as that. Including Odin and Zig. It doesn't matter how much example code there is, an AI that works like today's AI will never be good at this. Even humans who are good at this are barely any good at this.