• I'm still processing this, but it is insane

    Imagine a watch that has no functions at start.

    You describe functions in English, ChatGPT writes code.

    I was able to combine ChatGPT with code examples and it wrote me almost-working code to read and display current tea temperature from my Ember smart mug over BLE. For smaller programs it would just write working code directly, potentially with no user interaction needed, today.

    Here is how it works:

    • In general, I use Web IDE and write a..js files to launch with "App Forge" application, for simplicity. Packaging would add too much overhead for this case
    • I open ChatGPT and paste multiple examples of apps with similar functionality (in this case the ble hrm app), including a github page about Ember mug (I could have probably sent just the link)
    • I ask ChatGPT to write application using the examples above that would connect to the BLE mug, read the temperature and output on screen
    • ChatGPT figures out from examples how to do this, writes code
    • I paste the code to Web IDE, save as a.mug.js, then open in on the watch with "App Forge" (I had to do some modifications though)

    I believe it can be automated to the point of just asking for specific functionality and it writes code. Maybe it will need emulator feedback to fix errors, and some additional documentation trickery - like asking it to summarize documentation first and paste that summary as initial prompt so it is more aware about custom function call patterns.

    This is absolutely stunning. Wow. I have the smartwatch with all imaginable functions at once.

About

Avatar for grandrew @grandrew started