Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread EWB and ChatGPT - Coding fast :-)
Thu, Nov 9 2023 4:58 PMPermanent Link

Ralf Mimoun

Hi all,

no idea if I am the one who tried it first, but ChatGPT knows EWB! I described a project I am just starting in about 10 sentences and asked it for an implementation. First, I got a nicely structured to-do list. Then I asked for implementation details, eg. for REST services or password hashing (and yes, it added salting).

For that hashing, it referred to a non existing TSecurePassword class. And it generated that class when I asked for it. I did not tried to compile it, but it seems to be correct and, more important, secure.

You can use it to write stubs for services and more - but you should not rely on it blindly. Sometimes it falls back to Delphi code, but nobody is perfect Smile
Thu, Nov 9 2023 5:47 PMPermanent Link

erickengelke

Avatar

Ralf Mimoun wrote:

> no idea if I am the one who tried it first, but ChatGPT knows EWB! I described a project I am
> just starting in about 10 sentences and asked it for an implementation.

I use it sometimes too.  In particular, for RegEx and other annoying things that other people have solved before like implementing various algorithms in EWB Pascal when there are Java or C versions published.  Like I needed a working SHA256 having algorithm and it did it in seconds.

As I see it, we humans add value by thinking big picture, like imagining user interfaces we want, finding APIs and connecting them, ensuring security is implemented and understanding which fields should have indices in databases.  But the days when you sit down and hand code from scratch, well they're long gone from productive users.

I view it like the way us old folks used compilers and then we would hand-tune the assembler output.  Well now you check and possibly hand tune the Pascal code.


> You can use it to write stubs for services and more - but you should not rely on it blindly.

Agreed.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Sun, Feb 25 2024 7:22 PMPermanent Link

Steve Gill

Avatar

I, for one, welcome our new AI overlords.
Sun, Feb 25 2024 10:50 PMPermanent Link

erickengelke

Avatar

Steve Gill wrote:

> I, for one, welcome our new AI overlords.

Smile

A study has shown that AI-writen code is often less secure than that done by humans.  And another article talks about poisoning AI with sleeper security exploits.  Both are found in this useful newsletter from a leading security expert:

https://www.schneier.com/crypto-gram/archives/2024/0215.html

It's always important to vet the code generated by AI.  For now, I trust humans more.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Thu, Feb 29 2024 9:41 PMPermanent Link

Steve Gill

Avatar

<< erickengelke wrote:

It's always important to vet the code generated by AI.  For now, I trust humans more. >>

Nothing to do with code.  I'm just preparing for when they take over.  They'll know who the dissidents are when they scan the Internet and all computer systems.
Thu, Feb 29 2024 9:49 PMPermanent Link

erickengelke

Avatar

Steve Gill wrote:

<< erickengelke wrote:

I>>t's always important to vet the code generated by AI.  For now, I trust humans more. >>

> Nothing to do with code.  I'm just preparing for when they take over.  They'll know who the dissidents are when they scan the Internet and all computer systems.

They've got a head start on that.  With everyone willingly using OneDrive, Google Drive, iCloud, GitHub and the like, yeah, it's already being scanned.

Erick

EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Fri, Mar 1 2024 2:50 AMPermanent Link

Ralf Mimoun

Why should they be interested what we think? They need us as long as we are better to swap hard drives than robots. Beyond that point, we will be pets, if we are lucky. Matrix and Terminator are handbooks, not fiction movies.


Steve Gill wrote:

<< erickengelke wrote:

It's always important to vet the code generated by AI.  For now, I trust humans more. >>

Nothing to do with code.  I'm just preparing for when they take over.  They'll know who the dissidents are when they scan the Internet and all computer systems.
Fri, Mar 1 2024 3:55 PMPermanent Link

Steve Gill

Avatar

<< Ralf Mimoun wrote:

Why should they be interested what we think? They need us as long as we are better to swap hard drives than robots. Beyond that point, we will be pets, if we are lucky. Matrix and Terminator are handbooks, not fiction movies. >>

Wow, this was just a joke.  A variation on the joke on The Simpsons: https://www.youtube.com/watch?v=8lcUHQYhPTE
Fri, Mar 1 2024 5:16 PMPermanent Link

erickengelke

Avatar

Steve Gill wrote:


> Wow, this was just a joke.  A variation on the joke on The Simpsons: https://www.youtube.com/watch?v=8lcUHQYhPTE

Yes, but like all good jokes there was enough reality in it to make it interesting.

Erick
EWB Programming Books and Nice Component Library
See my EWB BLOG posts, at:
http://www.erickengelke.com
Fri, Mar 1 2024 7:43 PMPermanent Link

Steve Gill

Avatar

<< Ralf Mimoun wrote:

Why should they be interested what we think? They need us as long as we are better to swap hard drives than robots. Beyond that point, we will be pets, if we are lucky. Matrix and Terminator are handbooks, not fiction movies.
>>

Security.  Some of the hard-disk swappers might not like AI and could sabotage their systems.

Yeah, we will be slaves to the AI.  Maybe I'll become a battery.
Image