{"id":25242,"date":"2023-02-28T00:00:08","date_gmt":"2023-02-28T05:00:08","guid":{"rendered":"http:\/\/blog.kenperlin.com\/?p=25242"},"modified":"2023-02-28T00:00:08","modified_gmt":"2023-02-28T05:00:08","slug":"frankencode","status":"publish","type":"post","link":"http:\/\/blog.kenperlin.com\/?p=25242","title":{"rendered":"Frankencode"},"content":{"rendered":"<p>I was curious to see whether ChatGPT could write yesterday&#8217;s intersection program for me. So I told it:<\/p>\n<blockquote><p>&#8220;Write a Javascript program to intersect two convex polygons by checking whether any vertex or the center of either polygon is inside the other polygon.&#8221;<\/p><\/blockquote>\n<p>It responded with a perfectly correct Javascript program. I then asked the question again, and it responded with a different Javascript program, also perfectly correct.<\/p>\n<p>When I compared the code it produced those two different times, it appeared as though it was stealing pieces from different programmers who had very different styles of coding. I could recognize the thinking of the programmers who wrote the original code that it was using.<\/p>\n<p>The final programs it produced tended to be kind of clumsy and inelegant &#8212; although definitely functional and correct. I am guessing that this was because it was stitching together parts of programs that it had found in different places. The result was a kind of Frankencode.<\/p>\n<p>This is pretty much the impression I get when I read prose generated by ChatGPT. Just beyond the text, I can perceive the half-digested bits and pieces of the creative thoughts of unnamed humans.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was curious to see whether ChatGPT could write yesterday&#8217;s intersection program for me. So I told it: &#8220;Write a Javascript program to intersect two convex polygons by checking whether any vertex or the center of either polygon is inside the other polygon.&#8221; It responded with a perfectly correct Javascript program. I then asked the &hellip; <a href=\"http:\/\/blog.kenperlin.com\/?p=25242\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Frankencode&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/25242"}],"collection":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25242"}],"version-history":[{"count":1,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/25242\/revisions"}],"predecessor-version":[{"id":25243,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=\/wp\/v2\/posts\/25242\/revisions\/25243"}],"wp:attachment":[{"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25242"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.kenperlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}