{"id":1,"date":"2025-08-17T15:59:53","date_gmt":"2025-08-17T15:59:53","guid":{"rendered":"http:\/\/blog.yzelman.net\/?p=1"},"modified":"2025-09-29T18:16:37","modified_gmt":"2025-09-29T18:16:37","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/blog.yzelman.net\/?p=1","title":{"rendered":"Algebraic Programming according to ChatGPT"},"content":{"rendered":"\n<p>The current version of ChatGPT seems to have a working understanding of Algebraic Programming (ALP). We asked it to explain ALP to an 8-year old &#8212; and found it did a reasonable job, don&#8217;t you agree?<\/p>\n\n\n\n<p>Alright \u2014 let\u2019s explain&nbsp;<strong>ALP (Algebraic&nbsp;Programming)<\/strong>&nbsp;for an 8-year-old&nbsp;in&nbsp;English.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Imagine you are playing with&nbsp;<strong>LEGO blocks<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have different shapes: squares, long sticks, triangles.<\/li>\n\n\n\n<li>You know the&nbsp;<strong>rules<\/strong>: squares can stack on squares, sticks can go on the side, triangles can be&nbsp;a&nbsp;roof.<\/li>\n<\/ul>\n\n\n\n<p>These rules tell you&nbsp;<em>how things should fit together<\/em>. You don\u2019t need to figure it out from scratch every time.<\/p>\n\n\n\n<p><strong>ALP is like giving the computer \u201cLEGO rules\u201d for&nbsp;programming.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You tell the computer what kinds of \u201cblocks\u201d exist (numbers, lists, shapes, etc.).<\/li>\n\n\n\n<li>You tell it the rules for combining them (like addition, multiplication, stacking).<\/li>\n\n\n\n<li>Then the computer can build things by itself, and even find the fastest way to do it.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You say \u201cadding numbers\u201d has&nbsp;a&nbsp;rule:&nbsp;<code>2 + 3 = 3 + 2<\/code>&nbsp;(order doesn\u2019t matter).<\/li>\n\n\n\n<li>The computer learns that and uses it to rearrange things to calculate faster.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>So,&nbsp;in&nbsp;one sentence:<br><img decoding=\"async\" alt=\"\ud83d\udc49\" src=\"https:\/\/fonts.gstatic.com\/s\/e\/notoemoji\/16.0\/1f449\/32.png\">&nbsp;<strong>ALP is like teaching the computer to play LEGO with rules, instead of giving it step-by-step instructions.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The current version of ChatGPT seems to have a working understanding of Algebraic Programming (ALP). We asked it to explain ALP to an 8-year old &#8212; and found it did a reasonable job, don&#8217;t you agree? Alright \u2014 let\u2019s explain&nbsp;ALP (Algebraic&nbsp;Programming)&nbsp;for an 8-year-old&nbsp;in&nbsp;English. Imagine you are playing with&nbsp;LEGO blocks. These rules tell you&nbsp;how things should [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[7,8],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-alp","tag-chatgpt","tag-fun"],"_links":{"self":[{"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":2,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yzelman.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}