Recent

Author Topic: Lazarus and Copilot  (Read 1385 times)

affonso

  • New Member
  • *
  • Posts: 20
Lazarus and Copilot
« on: October 28, 2024, 05:40:29 pm »
Would the Lazarus IDE have something similar to Copilot or Codeium?

I did some research and found a very good plugin, but for Delphi

https://github.com/Code4Delphi/Delphi-AI-Developer

https://www.youtube.com/watch?v=2NAlUFK2FGs&t=536s

Is it possible to bring this project to Lazarus?

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1180
Re: Lazarus and Copilot
« Reply #1 on: October 28, 2024, 11:30:50 pm »
Hi this topic has already been discussed extensively. Please search forums.
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Bogen85

  • Hero Member
  • *****
  • Posts: 661
Re: Lazarus and Copilot
« Reply #2 on: October 29, 2024, 02:54:04 am »
Hi this topic has already been discussed extensively. Please search forums.

It has? I just did a search. It has not been discussed in the past 9 months.

And the last few threads on the subject of "Copilot" were not "extensive".

There is this discussion: https://forum.lazarus.freepascal.org/index.php/topic,55581.0.html

Which had a lot of "attacking" of the tech. I'm not a fan of "easy to leak my company's intellectual property" plugins in any editor, but that does not mean the technology is not useful for others. That this subject gets so much negativity makes it hard for others who truly want to (or have a need) to discuss it peacefully. Not good...
« Last Edit: October 29, 2024, 09:28:48 am by Bogen85 »

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1180
Re: Lazarus and Copilot
« Reply #3 on: October 29, 2024, 03:40:28 am »
I remember quite a few threads of new people demanding that ai be incorporated into Lazarus Ide as well as a very long thread started by cpicanco touting ai stuff.

I’d be happy if ai related stuff was never brought up here again and I’ll bet I’m not alone in this sentiment.
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Thaddy

  • Hero Member
  • *****
  • Posts: 15992
  • Censorship about opinions does not belong here.
Re: Lazarus and Copilot
« Reply #4 on: October 29, 2024, 07:10:08 am »
If it is done in the way that Delphi 12.2 does it, I do not have any objections.
It works with an AIprovider mechanism, where they have written providers for currently 3 different commercial AI providers and one local: ollama, which is on github.
You can only use them if you have keys for those providers. That means that Delphi only facilitates AI providers in their IDE but does not offer AI itself and not by default. So it is an IDE plugin that abstracts away the different rest api's.
The same approach could be used for Lazarus, just add a plugin that abstracts away the different engines in providers/connectors so they integrate in the IDE on request.
AI integration in your own programs could already be done with e.g. my example from Christmas 2022
Not to forget Joao Schuler's exploits with models that can also run locally, similar to ollama.

But usually this is about the IDE integration and if that is via a plugin I have no objections.

Embarcadero presents it as a revolution in Delphi 12.2, but really it is not and made me laugh a bit. ::) :D ;D

What I suspect Embarcadero did do, but that is a commercial decision, is encourge the commercial providers to explicitly scrape their public resources,i.e their manuals and blogs, but also their forums and some other semi publics that are behind passwords for the providers to give better answers. At least that is what I would have done.
This will also benefit Freepascal and Lazarus users that use AI, because the models are better trained for our common language.
« Last Edit: October 29, 2024, 08:02:50 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

Bogen85

  • Hero Member
  • *****
  • Posts: 661
Re: Lazarus and Copilot
« Reply #5 on: October 29, 2024, 09:55:34 am »
I’d be happy if ai related stuff was never brought up here again and I’ll bet I’m not alone in this sentiment.

So? It is the mid 2020s, you are going to hear more of it. A lot more of it. You will just have to find a way live with it, AI is not going away. Maybe some of the hype will die down, but the leveraging of it as solid useful tech will not.

That this subject gets so much negativity makes it hard for others who truly want to (or have a need) to discuss it peacefully. Not good...

I reiterate that. Also many who use Free Pascal (and many in these forums) find AI to be an invaluable time saving tool. Attacking what you and others view as useless/harmful tech is not productive for the many advanced users here who find it to be very useful tech and avail themselves of it where appropriate. Just because you don't use it or like it does not make those of that that leverage it as yet another helpful tool (though not a panacea) can't discuss how to best utilize it.

For me personally I don't like or care for the Lazarus IDE. But I completely understand that is a very useful and invaluable tool for many others, and I see it as solid useful tech, just not for me personally.

Just because you (and some others here) don't like AI does not make the experienced computer scientists and software engineers who utilize it regularly and benefit from from it all wrong. Useful tool, yes, if you want to use it. Panacea, no.
Lazarus, useful tool, yes. Just not for me, and I'd never dissuade others from using it, especially if they like it and are not looking for an alternative.


Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1180
Re: Lazarus and Copilot
« Reply #6 on: October 29, 2024, 01:04:49 pm »
I’m curious how well does ai work for computers not connected to the internet? Not everyone wants their development computer connected to the internet and there are many good reasons for that.

I’m not worried about this AI fad. I will simply not install any ide that uses it. Even if it ”saves time” I’m sure that’s not the whole story.
« Last Edit: October 29, 2024, 01:09:16 pm by Joanna from IRC »
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

avra

  • Hero Member
  • *****
  • Posts: 2530
    • Additional info
Re: Lazarus and Copilot
« Reply #7 on: October 29, 2024, 03:00:29 pm »
Would the Lazarus IDE have something similar to Copilot or Codeium?
Quick search brought these GPT related projects up:
https://github.com/AliDehbansiahkarbon/ChatGPTPluginForLazarus
https://github.com/landgraf-dev/openai-delphi
https://forum.lazarus.freepascal.org/index.php/topic,61786.0.html

Maybe you will find something interesting there...
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11850
  • FPC developer.
Re: Lazarus and Copilot
« Reply #8 on: October 30, 2024, 01:37:23 pm »
Moderator notice: I split off all the offtopic discussion about the use of AI into a separate thread. This thread is about integration AI services in Lazarus, not discussions why they are useful or not.

Thaddy

  • Hero Member
  • *****
  • Posts: 15992
  • Censorship about opinions does not belong here.
Re: Lazarus and Copilot
« Reply #9 on: October 30, 2024, 05:25:49 pm »
Good idea Marco.
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018