Could AI codex be helping write code in HISE?
-
Have you guys checked out openAi.com?
Pretty fascinating stuff. I just got sent an invite to toy around with the codex function, which allows you to write code in various programming languages by inputting commands in plain English, telling the system what you want the code to do.
It can also optimize existing code or describe what a line of code means :)
The ai knows several programming languages including JavaScript, which makes me ponder how it can be introduced to HISE language.
Check it out:
https://beta.openai.com/docs/guides/codeThere is a fascinating video of making a simple game by typing in instructions in plain English and then being converted to JavaScript.
-
@gorangrooves I think it could, but you'd have to train it on loads and loads of HISEscript, which even between all the forum users probably wouldn't be enough data
It could however, possibly be used to help us noobs implement third party C++ libraries/code to the hise source
-
@iamlamprey hmmm but, how do we go about creating scripts in HISE? We refer to the API and descriptions of the functions, along with examples. Many of us don't know any other programming languages fully or at all.
If an AI system already fully knows JavaScript and several other languages, wouldn't it be a matter of feeding it the HISE API to train it on the available commands and functions? Since it already knows JavaScript and HISE uses very similar logic, but with different commands, shouldn't it be able to figure things out?
What do you think @Christoph-Hart ?
-
@gorangrooves Would this work like Microshaft's github co-pilot where it reuses snippets of code it's been trained on?
-
@d-healey I am not fully sure how one goes about training it exactly. I'll have to mess around with it.
There is an excellent video demo on the page where the guys programs a simple game JavaScript in 8min by giving it directions in English. The system interprets what is wanted and creates a code within seconds. I could program such a game at about the same time in the same manner, but if I had to do it in JavaScript...forget it.
Remember how you explained to me how you write the basic logic in English of what a function should do before writing code for it? Well, this system can just take those English instructions and write the code out.
You can sign up for a free beta account and mess around. I was given access after a day.
I guess the main task is to train it in another programming language. I don't know if it is something that we, as users, can do, or if that is something reserved for the developers of the AI system.
-
@gorangrooves I wonder how this works for licensing. If you train it on GPL code can you use its output in a proprietary project.
-
@d-healey I imagine the generated code would be treated the same way as if you wrote it. Think of it as a super-useful tool to accomplish a task.
They will soon open up the Dall-e 2 to more users soon, and you'll be able to use images created with them for commercial purposes. The same goes with the text generated with their API. It stands to reason the same concept should apply here.