Author Topic: AI may help us to create plugins  (Read 632 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6115
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
AI may help us to create plugins
« on: October 31, 2025, 04:18:23 pm »
Hi, I recently see a website named deepwiki, this site can read a github project, and later, it can have LLM powered AI chat about this project. As a test, I just put the code::blocks' source code to the index, see: https://deepwiki.com/asmwarrior/codeblocks_sfmirror

After that, I just wrote some text to AI:

can you help me to create a code::blocks plugin which can run the memory leak detector mentioned here: https://github.com/ssbssa/heob

And I see that it can create the source code for this plugin, looks interesting.  :)

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline christo

  • Multiple posting newcomer
  • *
  • Posts: 60
Re: AI may help us to create plugins
« Reply #1 on: November 01, 2025, 06:22:53 am »
Generated wiki looks nice, I'm hearing about deepwiki first time, looks very useful tool. Thank you for sharing.

Regarding the plugin generated, how complete was the code?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6115
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: AI may help us to create plugins
« Reply #2 on: November 01, 2025, 02:13:13 pm »
Generated wiki looks nice, I'm hearing about deepwiki first time, looks very useful tool. Thank you for sharing.

Regarding the plugin generated, how complete was the code?

I'm also new to d :)eepwiki site.

I haven't tried the generated code yet, but you can see this page:

https://deepwiki.com/search/can-you-help-me-to-create-a-co_35be54bd-5f47-4e3b-ba7d-bdff22584a0e

Just scroll down to the bottom of the page, it has many source code generated, and the code looks good.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Михаил Агарков

  • Single posting newcomer
  • *
  • Posts: 6
  • Highly sensitive programmer.
    • Codeberg
Re: AI may help us to create plugins
« Reply #3 on: Yesterday at 06:18:31 pm »
Well no kidding?! Who would've thunk?!
You know what could help us create plugins? Or create anything at all? Capable programmers.
This isn't helping. What's even the point of bringing up that crap? Seriously.
Look at the state of this project. How many people have been contributing? How many stable releases in the past eight years?
Last thing we need is incompetent scum "contributing" computer-generated garbage to any part of Code::Blocks. 
Well, if you guys want to kill it, then go ahead, suggest AI usage -- nay, even better, make AI plugins, an assistant on the IDE itself. A COPILOT integrated to it! Imagine that! Wouldn't that be great?
And not long ago we didn't even have a functional Symbols Browser. To be removed completely on a newer release. What a joke.
And people wonder why some things are as they are.
Listen to yourself, look around you, look at the project, look around it, then listen to yourself again, and think.
And you just threw Code::Blocks' source code into some garbage bin? Really, projects must have some sort of protection against this kind of stupidity, these days.
Then again, I don't know what's the goal exactly, but, if you guys are planning to turn this into a huge pile of crap, then disregard what I'm saying.
Thanks.
:)

Despite the slightly agressive response, I fully agree that AI is ruining a lot of things, e.g. localhost being broken in Windows 11 and worse.
The reason I love Code::Blocks is that it doesn't use overbloated JS frameworks with Electron, it uses native GUI controls and has a very nice feature set, like wxSmith and so much more.
I also don't want Code::Blocks to fallback on using AI to generate code, because it would very likely break things, god forbid it from using web technologies and take up hundreds of megabytes of RAM being idle just to have Copilot. I love this IDE because it just works, has an amazing feature set and can even work on Windows XP and ReactOS with no lag on old hardware.
If it were to introduce AI, I would very likely create a hard fork just for myself and anyone else interested.

Offline blauzahn

  • Almost regular
  • **
  • Posts: 221
Re: AI may help us to create plugins
« Reply #4 on: Yesterday at 08:27:13 pm »
I'd also vote against, regardless of how tempting it might sound.

Using AI as inspiration or as lightning quick "seems to work" hack is fine as long as you resist the huge temptation to cut-copy-paste any single line of code you do not fully understand. Remember: As soon as you change/add anything, the responsability and maintenance becomes essentially yours, not the AI's.

Before adding yet more cruft, I'd favour fixing bugs in cb.

Finding potential memory leaks in cb can be done on Linux with e.g. cppcheck, scan-build, heaptrack or valgrind --- or just look for raw new in the editor and you'll quickly find a few good candidates.
Use a more modern programming style and you put in hardly any leak in the first place. Granted, legacy frameworks may limit its scope.

Offline HangNickHers

  • Single posting newcomer
  • *
  • Posts: 1
Re: AI may help us to create plugins
« Reply #5 on: Yesterday at 11:44:56 pm »
It's good to see reasonable posts.
Anyway I went to see that website linked there, putting all aversion aside for a moment.
Disgusting. What a bunch of trash. Again, this is the type of thing that actual developers should spend time doing -- proper documentation. Graphs, diagrams, file names, descriptions of classes and methods, are helpful. And so forth. Should have been somewhere since the beginning, or, for a long time anyway.
Anyone wishing to contribute should take the necessary time to study the project, and understand it. Obviously.

Before adding yet more cruft, I'd favour fixing bugs in cb.

This. So, another project I've liked for years, called Lazarus, an excellent free Pascal IDE, had the same garbage discussed for quite some time. A bunch of idiots suggesting AI this, AI that, left and right. Instead of spending energy on what really matters. New releases, same problems.

Despite the slightly agressive response, I fully agree that AI is ruining a lot of things, e.g. localhost being broken in Windows 11 and worse.

I thought it was a joke, but I read about a "copilot" on Windows 11's Notepad, and it's real. Again, it should be clear what their goals are: to turn users into even greater morons. Lazy and dumb and incompetent. The cattle are given slop. And they swallow it all and enjoy it and praise it and tell others how great it all is and how they should eat it as well.

So I got banned without any warnings, and my two posts deleted, because of that post. :(

It's nothing new. Nothing but garbage to attract lazy, stupid, incompetent people.
It's an often an excuse to be a moron. As blauzahn observed, to flee accoutability as well. I've seen "The AI wrote it" and such. (No, YOU commited low-effort, barely functional garbage.)
You'd expect programmers to know better, but, you see how it is now.