Recent

Author Topic: Github Copilot AI with Pascal (and other programming languages)  (Read 1839 times)

avra

  • Hero Member
  • *****
  • Posts: 2226
    • Additional info
There's a new player in town, which can generate code snippets from plain English sentences:
https://copilot.github.com

Some are delighted to use AI to create code snippets (including Pascal):
https://www.youtube.com/watch?v=4TWTZXYwmyk
https://www.youtube.com/watch?v=5DD1-hujQiY&t=2s

Some are not as much:
https://towardsdatascience.com/github-copilot-a-new-generation-of-ai-programmers-327e3c7ef3ae
https://thesoftwareguy.medium.com/github-copilot-the-ai-we-dont-want-db89ecf793c

What do you think? Would you use it?
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

rsz

  • New Member
  • *
  • Posts: 45
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #1 on: July 29, 2021, 09:06:50 am »
What do you think? Would you use it?
No, at least not Copilot in its current state. Copilot was trained on repositories containing GPL code and it was also proven to suggest code from GPL repositories verbatim such as the fast inverse square root from Quake 3. There are other licenses which also require attribution but there's no way for you to know if the suggestion contains such code. I don't know if the situation regarding this has improved since I last checked.

There is also the potential for it to suggest buggy code, so I think it could also cause problems if the programmer trusts it too much. My last concern would be that Copilot is software as a service, you send your code over the network. I'd prefer not to. This is also has potential for certain three letter agencies to plant obfuscated zero day exploits in your software. I also read in discussion forums that they intend to make Copilot a subscription based service, not sure if that is true.

I would not pay for something like this, or maybe I would if it did not have these issues and the suggestions were better. Then again, I'm very reluctant to pay for software as a service in general >:D.

TL;DR: No. 1. possible licensing issues, 2. possibly buggy or malicious suggestions 3. sends your code over the network / software as a service.

maurobio

  • Sr. Member
  • ****
  • Posts: 268
  • Ecology is everything.
    • GitHub
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #2 on: July 29, 2021, 01:18:55 pm »
Hi,

I would also suggest avoiding CoPilot (and the now Micro$oft-owned GitHub entirely). You could take a look at this: https://www.fsf.org/blogs/licensing/fsf-funded-call-for-white-papers-on-philosophical-and-legal-questions-around-copilot

With best wishes,
UCSD Pascal / Burroughs 6700 / Master Control Program
Lazarus 1.8.2/2.0.8 - FPC 3.0.4 on GNU/Linux Mint 19, GNU/Linux Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

 

TinyPortal © 2005-2018