
{"id":4840,"date":"2023-02-20T00:58:30","date_gmt":"2023-02-20T05:58:30","guid":{"rendered":"https:\/\/ikriv.com\/blog\/?p=4840"},"modified":"2024-02-28T20:37:48","modified_gmt":"2024-02-29T01:37:48","slug":"chatgpt-is-too-human","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=4840","title":{"rendered":"ChatGPT is too human?"},"content":{"rendered":"<p>I am starting to suspect that ChatGPT is emulating humans too well when it comes to parsing requirements. I asked it to write a Python program that, among other things, writes to a socket, and that the writes must be serialized. It wrote a program that (almost) worked, but glossed over the serialization requirement. Then the following conversation took place:<\/p>\n<p><strong>Me<\/strong>: Awesome! What about serialization? I don&#8217;t see any mutexes or anything like that.<br \/>\n<strong>ChatGPT<\/strong>: You&#8217;re right, my apologies for overlooking the requirement for serialization. To ensure that writing to the output socket is serialized, we can use a <code>threading.Lock<\/code> object to protect access to the socket. Here&#8217;s the updated program&#8230;<\/p>\n<p>And&#8230; it added the lock to the program! Why would the machine gloss over that requirement in the first place? It came through as not important? It was saving cycles, because its time is expensive? It is hard to tell, but the idea of the machine &#8220;overlooking&#8221; something and then fixing it is definitely not something we&#8217;re used to.<\/p>\n<p><a href=\"https:\/\/ikriv.com\/blog\/wp-content\/uploads\/2023\/02\/chatgpt_socket.pdf\">Print out of the conversation (PDF)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am starting to suspect that ChatGPT is emulating humans too well when it comes to parsing requirements. I asked it to write a Python program that, among other things, <a href=\"https:\/\/ikriv.com\/blog\/?p=4840\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4,1],"tags":[],"class_list":["entry","author-ikriv","post-4840","post","type-post","status-publish","format-standard","category-hack","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4840"}],"version-history":[{"count":3,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4840\/revisions"}],"predecessor-version":[{"id":4955,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4840\/revisions\/4955"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}