Recent

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

avra

  • Hero Member
  • *****
  • Posts: 2514
    • 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

  • Hero Member
  • *****
  • Posts: 623
  • 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
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

sketch

  • New Member
  • *
  • Posts: 32
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #3 on: June 26, 2023, 05:27:32 am »
(and the now Micro$oft-owned GitHub entirely).
FWIW, I've been in the Unix/Linux world professionally for 30 years, and only worked with Windows in a professional capacity 25 years ago, so I'm not a Microsoft advocate by any means. But I feel they catch a lot of flak that isn't entirely deserved.

In 2022, Microsoft spent $25 billion on research and development, which is second worldwide only to Google. Many people use C#, .NET, ASP, Blazor, Xbox, Visual Studio, TypeScript, etc., which are all the result of Microsoft's R&D.

$4 billion of the $25 billion Microsoft spent for R&D in 2022 was in cybersecurity. This is more than any other pure cybersecurity business.

They are doing a lot to advance technology and everyone benefits.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #4 on: June 28, 2023, 11:47:42 pm »
But I feel they catch a lot of flak that isn't entirely deserved.
I feel like they're experiencing the same black campaign due to past sins like Pascal. This is hard to avoid, but I think the only side that is screaming loudly is the one that doesn't affect Microsoft business at all. They remain a major player in enterprises, in the same league as Oracle, Google and others, even leading in certain fields.

Warfley

  • Hero Member
  • *****
  • Posts: 1499
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #5 on: June 29, 2023, 12:32:04 am »
But I feel they catch a lot of flak that isn't entirely deserved.

[...]

They are doing a lot to advance technology and everyone benefits.
Microsoft deserves most of the things they get, and while a lot of the things they did defenitely benefitted everyone, they clearly don't do it for that reason.
MS does not sell software anymore, they sell services, and a whole ecosystem, and this extremely aggressive. Looking at the development tools, they currently build all around their Azure systems. You not only host your applications on Azure, but you use github together with Azure devops for development, you build your backends using Azure functions store your data in your Azure SQL databases, have user management through your Azure AD, etc.

Yes many of their solutions are good in isolation, but once you are in the ecosystem, you can't easiely leave. It's also usually quite cheap in the beginning but costs alot when scaling up. So when you start developing using all these tools seems like the perfect deal, you get all the infrastructure and security and common functionality for "free", and as you pointed out, Microsoft puts a lot of money into R&D to make these things good.
But while this is amazing at prototyping, as soon as your application has a certain size, you can't easiely get away anymore, as it would require basically a complete rewrite. The tools you are using are only provided by Microsoft, so you are bound to their price structures. For most projects there comes the point the on demand cloud pricing of Azure will become extremely expensive for a production system, but you've built your app around Microsoft, you can't use it without Microsoft. You can neither self host, nor simply switch to a cheaper competitor like AWS or any "traditional" server hosting company. You always must keep spending more and more, and Microsoft can set the prices without any competition.

And if there is anything that may challange them, they just buy it and incorporate it into their plattform. They are buying up all these development platforms for a reason.

Yes Microsoft is doing alot of R&D and builds really good products, there is absolutely no doubt about it. I personally really like VSCode for example. But it all revolves around a buisnessmodel which is inherently anti competetive and instead of benefiting everyone tries to lock you into only being able to work with them. They give out breadcrumps to lure developers into a closed system they are going to be locked into.

And taking it back to Github copilot, its a system fully built on code by others that is hosted on Github, code Microsoft has no buisness with except for having bought the platform it is hosted on, and they built a system, which they are selling and incorporate into their ecosystem. And the system has been shown to reproduce code fragments from open source code verbatim. So basically is Microsoft currently taking open source code, stripping the license away and selling it to it's customers.

Or they recently put out an open letter urging regulators to put a temporary suspension on AI research due to "AI safety" concerns, conviniently now that GPT4 is going to be released to ensure that competitors like Google can't bring their solutions on the market

Also just on a side note about MS R&D, when I was in University I've worked in research in software testing. MS is by far the biggest testing company and did a lot of research in there (when you ever wondered why there are no more bluescreens, it's because microsoft has introduced mandatory testing suites for drivers they developed with that research). While they published many papers, they never published the tools they've build or any tangible data. Basically their papers where just advertisements on how great their tools (which you could rent as a Software as a Service model) are. This is not uncommon for companies, it is the norm for industry research other companies like LG or Samsung do the exact same thing.
Microsoft is very careful in what they publicise and what not. Unlike for example true public research (i.e. by universities), company research is first and foremost for their own benefit, and public access will often be restricted to a minimum. So the public benefit will also be at a minimum.
« Last Edit: June 29, 2023, 12:47:10 am by Warfley »

Boleeman

  • Sr. Member
  • ****
  • Posts: 402
Re: Github Copilot AI with Pascal (and other programming languages)
« Reply #6 on: June 29, 2023, 06:59:01 am »
Did not know Micro$oft-owned GitHub entirely.

When I joined up to Github I was contacted by a French researcher at a university in Wuhan city of China to do a survey within hours of joining up. Kinda puzzled how that happened.

Looks like the Chinese and associates are also making use of Github for their own research.


 

TinyPortal © 2005-2018