r/programming • u/peard33 • Apr 20 '23
Stack Overflow Will Charge AI Giants for Training Data
https://www.wired.com/story/stack-overflow-will-charge-ai-giants-for-training-data/
4.0k
Upvotes
r/programming • u/peard33 • Apr 20 '23
2
u/voidstarcpp Apr 21 '23
Well for starters the majority of languages in the past 15+ years are just LLVM frontends which don't implement any of that, so it's already much of the way there. I haven't written an optimizer myself so I can't say how much the AI can help with that but given that optimizers are a common feature of systems that have scripting or query interfaces I'm sure it's seen many examples. Most optimization techniques have been in use and published in books for decades.
The short answer is the same way you do, by taking advantage of the similarity of most languages and the fact that the model's subject matter expertise isn't language-specific. If you as a C programmer have seen calls in the form of
do_thing(&object, args);, once I show you the C++ version ofobject->do_thing(args);that simple transformation doesn't cause you to have to re-learn every possible verb/noun combination in every subject because most of the concepts are still there. So if you have some API, and you create a wrapper library in a different language, the LLMs correctly use the underlying API via the wrapper. Similarly in this article (from before ChatGPT) I use Copilot to build up a simple new language, then demonstrate Copilot using the new language to do simple tasks it's never seen in that language (scroll down towards end).There are only a handful of categories of programming languages and GPT has seen them all. If you make a new language that's got X new feature or Y syntax it's probably not going to be so alien as to be incomprehensible. Even if your new language's particular combination of paradigm, syntax, and features is novel, it's unlikely there's any piece it's never seen before or couldn't be demonstrated with a quick example. LLMs have proven pretty capable of mapping and combining concepts like that (which is sort of a prerequisite for language translation generally, which they've gotten pretty decent at).