• AI coding

    From Alexandru@21:1/5 to All on Wed Dec 21 06:08:59 2022
    Have you tested this already?
    https://chat.openai.com/chat (registration required)

    One can type a human readable question such as "write a Tcl function that computes the rotation inertia of a hollow cylinder" an the AI write the code for you in the requested language.

    What do you think?

    Cheers
    Alexandru

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From saitology9@21:1/5 to Alexandru on Wed Dec 21 12:16:05 2022
    On 12/21/2022 9:08 AM, Alexandru wrote:
    Have you tested this already?
    https://chat.openai.com/chat (registration required)

    One can type a human readable question such as "write a Tcl function that computes the rotation inertia of a hollow cylinder" an the AI write the code for you in the requested language.

    What do you think?


    I dunno; gotta see the code first :-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From che2n@21:1/5 to All on Wed Dec 21 15:48:31 2022
    I have asked it to write snmp ber parser function. I told it to get hex string as input. On the first try it only tried to parse small portion of snmp value types. Then i asked to display all the types and after this to implement all the missing code. It
    did a great job. Only minor error was in how it interpreted hex string. It was saving 1 char in the variable called byte1. I told it that 1 char is 4 bits and it should get 2 hex characters from the string. After this code worked but return values were
    hex strings. Just to test it more, I asked it to write parser for the type object identifier and it did it without major problems.
    I also asked it to implement force-directed graph layout algorithm and it did. I tried to test how it would comment my existing code and it did really fascinating job. For example there is one line were i make binding of configure to canvas with command
    redraw and it understood and commented that this binding was used when windows was resized to redraw data. I have also asked many other questions about Tcl or how to make tcl extension in C. As I found out it doesn't understand much about tcl oo. Most of
    the code it returned was pure nonsense.

    tldr I think it works and have its use cases. Im really fascinated with chatgpt, i have spent much time asking it many other topics and for me it was really a different experience. So this is my humble opinion and after many interactions maybe im just
    biased.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandru@21:1/5 to All on Thu Dec 22 00:08:39 2022
    che2n schrieb am Donnerstag, 22. Dezember 2022 um 00:48:33 UTC+1:
    I have asked it to write snmp ber parser function. I told it to get hex string as input. On the first try it only tried to parse small portion of snmp value types. Then i asked to display all the types and after this to implement all the missing code.
    It did a great job. Only minor error was in how it interpreted hex string. It was saving 1 char in the variable called byte1. I told it that 1 char is 4 bits and it should get 2 hex characters from the string. After this code worked but return values
    were hex strings. Just to test it more, I asked it to write parser for the type object identifier and it did it without major problems.
    I also asked it to implement force-directed graph layout algorithm and it did. I tried to test how it would comment my existing code and it did really fascinating job. For example there is one line were i make binding of configure to canvas with
    command redraw and it understood and commented that this binding was used when windows was resized to redraw data. I have also asked many other questions about Tcl or how to make tcl extension in C. As I found out it doesn't understand much about tcl oo.
    Most of the code it returned was pure nonsense.

    tldr I think it works and have its use cases. Im really fascinated with chatgpt, i have spent much time asking it many other topics and for me it was really a different experience. So this is my humble opinion and after many interactions maybe im just
    biased.

    Wow, I only trie a few simple things. I wouldn't have thougth, that it performs so good with your things.
    Thank you for the feedback.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandru@21:1/5 to Andreas Leitgeb on Thu Dec 22 15:47:00 2022
    Andreas Leitgeb schrieb am Freitag, 23. Dezember 2022 um 00:43:48 UTC+1:
    Alexandru <[email protected]> wrote:
    che2n schrieb am Donnerstag, 22. Dezember 2022 um 00:48:33 UTC+1:
    I have asked it to write snmp ber parser function. ...
    tldr I think it works and have its use cases.
    Wow, I only trie a few simple things. I wouldn't have thougth, that
    it performs so good with your things.
    Thank you for the feedback.
    Who volunteers to ask it for an implementation of TIP 131 ? ;-)
    Good idea, here is the AI answer:

    "I'm sorry, but it is not possible for a Tcl function (or any computer program) to read your mind. Tcl is a programming language that allows you to specify instructions for a computer to follow, but it does not have the ability to interpret thoughts or
    intentions.

    If you would like to use Tcl to accomplish a specific task, you will need to clearly define the task and provide explicit instructions for the computer to follow."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Leitgeb@21:1/5 to Alexandru on Thu Dec 22 23:43:44 2022
    Alexandru <[email protected]> wrote:
    che2n schrieb am Donnerstag, 22. Dezember 2022 um 00:48:33 UTC+1:
    I have asked it to write snmp ber parser function. ...
    tldr I think it works and have its use cases.
    Wow, I only trie a few simple things. I wouldn't have thougth, that
    it performs so good with your things.
    Thank you for the feedback.

    Who volunteers to ask it for an implementation of TIP 131 ? ;-)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan Grunwald@21:1/5 to Andreas Leitgeb on Fri Dec 23 11:04:22 2022
    On 22/12/2022 23:43, Andreas Leitgeb wrote:
    Alexandru <[email protected]> wrote:
    che2n schrieb am Donnerstag, 22. Dezember 2022 um 00:48:33 UTC+1:
    I have asked it to write snmp ber parser function. ...
    tldr I think it works and have its use cases.
    Wow, I only trie a few simple things. I wouldn't have thougth, that
    it performs so good with your things.
    Thank you for the feedback.

    Who volunteers to ask it for an implementation of TIP 131 ? ;-)

    Doesn't TIP 131 require RFC1149?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)