Complex project 99% made with AI code

A customer needed a curve editor like found in Photoshop etc…
This is by all means not easy (certainly without plugins).
So I asked ChatGPT 4 for creating Xojo code for this (including simple UI).

And this is the result

  • RGB curves for changing the color curves
  • You can add (double clicking) and move points (grab/drag).
  • 100% Xojo code, no plugins or external libs used

ChatGPT gave me the code and where to put it (functions, properties, events etc…). It sadly cannot create a project file (yet).
So the most work was to add the controls, events, functions, .. and copy/paste the code.
I only optimized it with using threads.

Note: the complexity of drawing the monotonicHermiteInterpolate curves is something I never had figured out myself. Some complex math code for sure. Not to speak about the pixel color adjusting code. Pfieuw..

I had to re-ask 3 times to change things before the code was fully working.

Basically this is a good example why Xojo Inc should include this soon. :wink:

Here is a screencast of the compiled project.

https://imgur.com/a/Pbqbi8S

10 Likes

Nice job.

which gpt model did you use ?

Chatgpt o3 (latest version - but I think it is the mini version - it is unclear in the chatgpt app to see which it is using)

The progress made in the last 2-3 month is jaw dropping. The difference between o2 and o3 is HUGE for creating code.

FWW The implementation in Xcode is awesome and should be added in Xojo too.

I recently saw my intern open a Xojo project’s folder with VS Code and happily edit code with AI help there. Yes he knows that Xojo comes with its own IDE but being an open minded person he wanted to give that approach a try. I have no idea if working like this is bound to corrupt the project or something. It seems to have worked on that occasion.

I made a xojo websdk from almost scratch with chatgpt o3 and o4 for a webcarousel
I lack javascript knowledge, but chatgpt doesn’t !
it took me a few hours to complete a working code, instead of a few days .
AI were gadgets 2 years ago, today they are efficient tools.
what will they be in 2, 5 years ?

That is absolutely amazing.