ChatGPT and programming: Incredible. Terrifying. I love it.

ChatGPT and programming: Incredible. Terrifying. I love it.

I feel like a farm worker in the early 1900s that has seen a tractor for the first time.

The future is here. I’ve seen it. I’ve used it. It has blown my mind.

ChatGPT?has been released in free research preview and it is?incredible.

While ChatGPT can do many different things, it’s the programming side that I’m particularly interested in.

You can ask it — in plain english — to generate code for you by describing what you want the code to do. Recently I’ve been using MicroPython and Python a lot, so focussed on that.

Here’s some examples:

Prompt:

“in python, open an image then draw a red alpha’d filed rectangle around any human faces. Show the rectangle properties aligned under the rectangle. Make the text red and bold”

Execution: (on AI faces)

No alt text provided for this image
No alt text provided for this image
The generated code


Prompt:

“in python, open a video, then draw a red alpha’d filed rectangle around any human faces in each frame. Show the rectangle properties aligned under the rectangle. Make the text red and bold.”

Execution:

No alt text provided for this image

More in that series here:?https://twitter.com/yezzer/status/1599031876416520192

Prompt:

“in python, write a web service that will return a live feed of my webcam”

Execution:

No alt text provided for this image

Prompt:?“in python, open an image, and place a dog loaded from?https://dog.ceo/api/breeds/image/random/?on top of the faces”

+ “each face should show a different dog”

+ “the dogs should be RGB not greyscale”

+ asking it to fix some errors (it fixes it’s own code too!)

Execution:

No alt text provided for this image

Prompt:

write me python to open an image and draw a grid on top. the grid spacing should be 12 pixels”

Execution:

No alt text provided for this image


Followup prompt:

“As I move the mouse over a grid square it should highlight the square in red”

Execution:

No alt text provided for this image


This is usable?right now.?While it can’t — yet — write larger programs, it’s absolutely a quick way to write parts that can be taken and expanded on, and it’s a super easy way to test concepts.

Exciting times, and I haven't even scratched the surface of what ChatGPT can do.

More ChatGPT posts by me on?Twitter?and?Mastodon

Andrew Solesbury

Senior Unity developer at Nimlok

2 年

I discovered this yesterday and had the same thoughts, but it's not without it's flaws and needs a user with knowledge and understanding of the code it generates to validate and potentially tweak it. - but if you are really stuck, it can at least head you in the right direction and get you 90% of the way their in an instant.

Alan Owen

Technical Director / Freelance Senior HTML5 Game Developer

2 年

Insane isn’t it. I’ve been paddling in these waters for 2 weeks since discovering a gateway to current state of AI via Midjourney, and my head hasn’t yet stopped exploding. The next disruption in tech is here for sure

要查看或添加评论,请登录

Iestyn Lloyd-Wilkins的更多文章

  • Hiring Unity Developers and Project Managers!

    Hiring Unity Developers and Project Managers!

    Would you like to help us build the future of immersive collaboration? We are recruiting for a number of roles, both…

  • Introducing VISIONxR? - connecting VR, AR, mobile and desktop

    Introducing VISIONxR? - connecting VR, AR, mobile and desktop

    At Future Visual we've been working on a way to allow distributed teams to collaborate in a shared space. No matter…

  • GDC 2016: Vive VR project for Two Big Ears

    GDC 2016: Vive VR project for Two Big Ears

    I've been working on a Vive project for Two Big Ears which showcases their new audio technology for VR, which will be…

  • Introducing the Vive Pre!

    Introducing the Vive Pre!

    The Vive Pre has arrived! If you're not aware, this is the latest developer version of HTC / Valve's VR headset, and…

  • "Is your PC really VR-ready?" - A few words from me

    "Is your PC really VR-ready?" - A few words from me

    A few words from me on VR, system specs and things looking shiny in this article by Digital Foundry in Eurogamer.

  • Unity VR Samples

    Unity VR Samples

    Want to get started with making VR games and experiences in Unity? I worked with Will, James, Peet and Dave at Unity to…

  • Speaking at VR World Congress

    Speaking at VR World Congress

    I'll be speaking at VR World Congress in 2016. There's a call for submissions here.

  • We won funding!

    We won funding!

    Very happy to say that my VR startup Arc Realities is one of the winners of the Innovate UK funding contest! More info…

    20 条评论
  • HTC Vive has arrived!

    HTC Vive has arrived!

    Very happy that I have now received a Vive dev kit! I was blown away after originally using the Vive at EGX in March…

    4 条评论
  • SO YOU WANT TO BE A UNITY FREELANCER - UNITE EUROPE 2015

    SO YOU WANT TO BE A UNITY FREELANCER - UNITE EUROPE 2015

    Here's Cat Burton, Emil Johansen, me, and Kerry Turner talking about being a Unity freelancer at Unite Europe 2015.

社区洞察

其他会员也浏览了