<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Programming Simplicity]]></title><description><![CDATA[Exploring simplicity in programming]]></description><link>https://programmingsimplicity.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png</url><title>Programming Simplicity</title><link>https://programmingsimplicity.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sun, 15 Nov 2026 02:30:31 GMT</lastBuildDate><atom:link href="https://programmingsimplicity.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Paul Tarvydas]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[programmingsimplicity@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[programmingsimplicity@substack.com]]></itunes:email><itunes:name><![CDATA[Paul Tarvydas]]></itunes:name></itunes:owner><itunes:author><![CDATA[Paul Tarvydas]]></itunes:author><googleplay:owner><![CDATA[programmingsimplicity@substack.com]]></googleplay:owner><googleplay:email><![CDATA[programmingsimplicity@substack.com]]></googleplay:email><googleplay:author><![CDATA[Paul Tarvydas]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[UNIX Was Written In Assembler (Not C)]]></title><description><![CDATA[2026-11-12]]></description><link>https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Thu, 12 Nov 2026 21:02:28 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Contrary to what I&#8217;ve been told for decades, UNIX was first written in assembler, not C.</p><p>V4 was the first version of UNIX ported to K&amp;R C.</p><p><a href="https://youtu.be/sMllOlxVgD0?t=1757">Brian Kernighan: Inside Bell Labs, The Best Programmer, Why C Won</a></p><p><a href="https://www.tuhs.org/cgi-bin/utree.pl">TUHS</a></p><h1>IMO</h1><p>Many great ideas were first implemented in assembler, e.g. UNIX, VisiCalc, Sketchpad, Turbo Pascal, Lisp, etc.</p><p>I conclude that the way we write code now - using functions and calling conventions - tends to restrict our inventiveness.</p><p>There are other ways to write code - Prolog and Forth and assembler are obvious examples. Electronics hardware is a completely different approach - ICs are isolated and asynchronous, whereas software functions are synchronous and sequential. See the original form of <a href="https://www.reddit.com/r/EngineeringPorn/comments/ul49zt/the_original_pong_video_game_had_no_code_and_was/">Atari Pong</a>. The schematic<sup>1</sup> for Pong fit on one large piece of paper.</p><p>Casting everything into functions has its uses, but this approach hits an asymptote on usability, after which point we must expend brain power to distort<sup>2</sup> our problems into functional/computational form while discarding anything that doesn&#8217;t fit that paradigm.</p><p>What I favour is a way of creating software using recursive, soft schematics, which I call PBP (Parts Based Programming).</p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>Appendix - Further About PBP</h1><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming">The Spherical Cows of Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow - First Principles of Parts Based Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations?r=1egdky">The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-e6c?r=1egdky">The Case For Composable Notations (3 / 5) - State Isn&#8217;t The Enemy</a> <a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-2bd?r=1egdky">The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-f31?r=1egdky">The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-0d3?r=1egdky">The Case For Composable Notations (6 / 5) - WIP - Notations in Progress</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>Electronics schematics have problems, but, expressing designs composed of asynchronous components is not one of the problems.&#8617;&#65038;</p></li><li><p>This used to be called &#8220;epicycles&#8221;.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/unix-was-written-in-assembler-not?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Responsibility]]></title><description><![CDATA[2026-11-09]]></description><link>https://programmingsimplicity.substack.com/p/responsibility</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/responsibility</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Mon, 09 Nov 2026 21:36:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Professional Engineer</h2><ul><li><p>guarantee: specific guarantees of operation</p></li><li><p>penalty: lawsuit resulting in financial settlement or jail time</p></li></ul><h2>Hardware company</h2><ul><li><p>goal: zero defects in the field</p></li><li><p>guarantee: specific guarantees of operation</p></li><li><p>penalty:</p><ul><li><p>expensive repairs to products, already shipped, in the field, to upgrade hardware</p></li><li><p>loss of business (the invisible hand of the market)</p></li></ul></li></ul><h2>Software nonprofessional engineers and cottage industry</h2><ul><li><p>EULA - disown responsibility</p></li><li><p>effectively no concept of zero defects in the field</p></li><li><p>guarantee: practically none</p></li><li><p>penalty:</p><ul><li><p>possible expense of deflecting lawsuits</p></li><li><p>historical &#8220;marketing costs&#8221; to convince customers that this is just &#8220;software&#8221; and that they should just put up with what they get</p></li><li><p>possible loss of business, albeit hindered by dearth of serious competition</p></li></ul></li><li><p>continuous push for more new features without understanding of how they interact, and too many featuritis edge-cases tangled up with implicit synchronization to thoroughly test</p></li></ul><h1>How?</h1><h2>Professional Engineers</h2><p>Professional Engineers are trained in &#8220;best practices&#8221; in university and are legally certified (certification exams some years after graduation).</p><h2>Hardware</h2><p>Hardware producers employ various kinds of testing:</p><ul><li><p>incoming inspection</p></li><li><p>design reviews for testability</p></li><li><p>outgoing test and ATE (Automated Test Equipment)</p></li><li><p>employ QA department to ferret out design inadequacies and implementation inadequacies (bugs).</p></li></ul><p>Hardware production design involves avoiding single-sourced components.</p><p>Features limited to those that can be guaranteed, pass QA and outgoing testing.</p><p>Hardware, unlike present-day software, is based on massive parallelism and isolated, stand-alone components.</p><h2>Software Cottage industry</h2><p>Weasel out of responsibility by creating walls of legalese and EULAs.</p><p>Weasel out of proper design by relying on CD - Continuous Deployment - leaving design feedback in the hands of paying customers, however slowly this feedback occurs.</p><p>Reliance on essentially a religious belief in the yet unrealized abilities of mathematics and the computational approach to remove the need for serious testing, i.e. testing of the <em>design</em> in addition to testing of code<sup>1</sup>.</p><p>Fundamental inability to use isolated, testable software components due to the reliance on a synchronous / sequential approach. Hidden - implicit synchronization - dependencies occur due to the overuse of the synchronous approach and on the historical reliance on memory sharing. A <em>tell</em> of overuse of memory-sharing is the old-fashioned worry about &#8220;thread safety&#8221;.</p><p>The advent of AI coding will likely make matters worse, due to a software culture that avoids serious, full-spectrum testing and isn&#8217;t held legally accountable.</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>See <a href="https://en.wikipedia.org/wiki/The_Design_of_Everyday_Things">Design of Everyday Things</a> by Norman for examples of lack of good design leading to personal injury and death.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/responsibility/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/responsibility/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/responsibility?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/responsibility?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Why Notations?]]></title><description><![CDATA[2026-11-06]]></description><link>https://programmingsimplicity.substack.com/p/why-notations</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/why-notations</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Sat, 07 Nov 2026 15:01:52 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Rhetorical questions</h2><ul><li><p>Why bother with DSLs, why not just use the underlying PLs?</p></li><li><p>Why bother with PLs, why not just use assembler?</p></li><li><p>Why bother with assembler, why not just build electronics hardware using schematics?</p></li><li><p>Why bother with electronics, why not just build using materials science?</p></li><li><p>Why bother with materials science, why not just build using atoms?</p></li></ul><h2>Answer:</h2><p>Because simplifying notations make doing some specific things easier.</p><p>But, simplifying assumptions ignore certain classes of generalities, for example, assembler can only produce hardware that follows certain guidelines. The guidelines are determined by the opcodes provided by specific CPU architectures. Electronics is more general than programming, but, programming CPUs is easier and more accessible to many more people than is electronics design.</p><h2>Where to Focus?</h2><p>We need to focus more on building DSLs and little notations, rather than elaborating and generalizing old-fashioned PLs and various tools, like type checking.</p><h2>Questions Regarding Moving Forward</h2><p>SQL is a DSL. Is it easy to write? Is it easy to read? Is it easy to build?</p><p>REGEX is a DSL. Is it easy to write? Is it easy to read? Is it easy to build?</p><p>BNF is a DSL. Is it easy to write? Is it easy to read? Is it easy to build?</p><p>Lisp macros are DSLs. Are they easy to write? Are they easy to read? Are they easy to build?</p><p>Racket Language Oriented Programming produces DSLs. Are the DSLs easy to write? Are they easy to read? Are they easy to build?</p><p>PEG libraries for various languages create DSLs. Are they easy to write? Are they easy to read? Are they easy to build?</p><p>PEG embedded into various languages helps to create DSLs, e.g. Rebol, Janet. Are these DSLs easy to write? Are they easy to read? Are they easy to build?</p><p>What&#8217;s easier than SQL, REGEX, etc? I claim that SCNs - little, nano-DSLs - are a step in that direction. The goals are:</p><ul><li><p>to be able to build them quickly (approximately an hour or so)</p></li><li><p>to allow syntactic freedom, so more people can read them more easily (that quality depends on the abilities of the SCN-creator to choose &amp; design wisely)</p></li><li><p>to customize DSLs/notations on a per-project basis, instead of generalizing them for use across many projects</p></li><li><p>to allow using multiple DSLs/notations in each project. That seems to contradict the current prejudice against using multiple languages. Why does that prejudice exist? How can we turn it around?</p></li><li><p>to allow portability between PLs (instead of allowing portability by extending PLs with features like <code>#ifdefs</code>)</p></li><li><p>to allow using Diagrams as Syntax (DaS) instead of sticking only to 500-year old type-setting technology</p></li><li><p>enable speed of development by removing complexity</p></li><li><p>to use SCN-based tools to create new SCNs</p></li></ul><p>Using PBP, DaS, T2T<sup>1</sup> makes it possible to more-easily build notations disregarding the biased syntax of the target PLs. This isn&#8217;t the full answer to the above set of problems, but I claim that it is a step in that direction. Essentially, writing an SCN<sup>2</sup> in PBP or T2T is like writing a compiler, except that you can expect to be finished in an afternoon or so, instead of in several years. Take the complexity out, enable speed of development.</p><p>What contributes to complexity? Niggly details. Breaking data shapes down into various specific types. If you intend to analyze code, or believe that perfect code is necessary and actually achievable, then you need this level of complexity. If you just want to build useful devices, you don&#8217;t this kind of complexity. You might need complexity that is related to the problem-at-hand, but you want to ignore complexities that are beyond the scope of the problem-at-hand. Proving that code is perfect involves different issues than making a useful device.</p><p>Analogy: you don&#8217;t want to create Ford Pintos that explode into flames in accidents, but it must be noted that Mercedes builds cars that work without MB having yet attained design perfection.</p><h1>Appendix - T2T</h1><p>T2T is one of the tools in the PBP toolkit &#8212; once you install PBP, you have access to T2T.</p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h2>Further About PBP</h2><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>T2T == text to text == PEG + text rewriting&#8617;&#65038;</p></li><li><p>SCN == Solution Centric Notation == throw-away nano-DSL for use on a per-project basis&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-notations/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-notations/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-notations?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-notations?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Simplifying Notations - Towards Composable Notations]]></title><description><![CDATA[2026-11-05]]></description><link>https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Thu, 05 Nov 2026 09:34:37 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Kqgp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>It might be possible to draw something that represents recursion and mutual recursion in a diagram, like the dtree example given below,</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Kqgp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Kqgp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 424w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 848w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 1272w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Kqgp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png" width="1372" height="875" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:875,&quot;width&quot;:1372,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Kqgp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 424w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 848w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 1272w, https://substackcdn.com/image/fetch/$s_!Kqgp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F45502e33-71e2-45bc-a0e4-855197a0b598_1372x875.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Despite this possibility, I am of the opinion that it is better to use diagrams for what they are good at and to use text for what it is good at.</p><p>A reasonable <em>simplifying notation</em> should not be an attempt to cover every possible use-case. Turing-completeness is over-rated at the code snippet level. A complete workflow might need to be Turing-complete, but a piece of code - an SCN<sup>1</sup> - need not be. What we call &#8220;programming languages&#8221; are just 20th century, cave-man attempts to create IDEs for programming computers, tainted by the desire to formalize the process. 21st century IDEs should support many, disparate SCNs (little languages) and provide Turing-completeness as only an aspect of the overall workflow.</p><p>There are several kinds of control flow at this level:</p><ol><li><p>looping</p></li><li><p>recursion</p></li><li><p>feedback</p></li><li><p>if-elif (no else)</p></li></ol><p>Looping and feedback are not well handled in text (not impossible, just less expressive to human readers). They are better handled in diagrammatic form. Drakon for looping, PBP and message-passing for feedback.</p><p>Recursion is better handled using a textual notation.</p><p><code>Else</code> is just a lazy way to handle not having to specify every decision-case in a textual notation, tangled up with branching control flow. It should actually be written in a declarative manner something like</p><pre><code><code>if (x) {
...
}
if (not x) {
...
}</code></code></pre><p>(which, of course IMO, is better written in diagrammatic form, or at least in Prolog-ish relational form).</p><p>We are forced to learn recursion because, in the 20th century, we were stuck with machines that could conveniently handle 500-year old, Gutenberg type-setting notations, but were too weak to handle diagrams, and because we (incorrectly, IMO) thought that mathematic, type-set notation would be the best - and the only - way to write programs for controlling computers. 21st century hardware is very different from what we had in the last century. IMO, it is time to re-think our approach to using this new kind of hardware.</p><h2>References</h2><p><a href="https://www.slideshare.net/slideshow/drakon-part1-eng/22563246">Drakon Tutorial Part 1</a><br><a href="https://www.slideshare.net/slideshow/drakon-part2-eng/22758304">Drakon Tutorial Part 2</a><br><a href="https://www.slideshare.net/slideshow/drakon-part3-eng/22894119?from_search=0">Drakon Tutorial Part 3</a><br><a href="https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily?r=1egdky">SCNs - Building Them Quickly and Easily</a></p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>Appendix - Further About PBP</h1><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming">The Spherical Cows of Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow - First Principles of Parts Based Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations?r=1egdky">The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-e6c?r=1egdky">The Case For Composable Notations (3 / 5) - State Isn&#8217;t The Enemy</a> <a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-2bd?r=1egdky">The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-f31?r=1egdky">The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-0d3?r=1egdky">The Case For Composable Notations (6 / 5) - WIP - Notations in Progress</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>SCN == Solution Centric Notation&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/simplifying-notations-towards-composable?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[SCNs - Building Them Quickly and Easily]]></title><description><![CDATA[2026-11-03]]></description><link>https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Tue, 03 Nov 2026 21:03:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!MfRZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A short note on various experiments (and code repositories) regarding very small DSLs that I call SCNs (for Solution Centric Notation).</p><p>The goal is to produce little notations that express parts of a program better than can be expressed with current programming languages.</p><p>The little notations - SCNs - don&#8217;t need to be Turing complete, just useful.</p><p>The little notations - SCNs - only need to produce a snippet of code. The snippet can be included in a larger project by using COPY/PASTE in an editor or using something like the <a href="https://en.wikipedia.org/wiki/M4_(computer_language)">m4</a> command line tool, or just some Javascript or Python (or whatever).</p><p>In the following examples, I lean towards targeting Python. I&#8217;m a Lisper at heart, but I think that more people can read Python, so I use Python to make my examples / experiments &#8220;more accessible&#8221;. I&#8217;ve generated code for other languages, like Javascript, Odin, etc. The techniques described below can be used to generate code in just about any textual language.</p><p>In the following examples, I tend to used <a href="https://ohmjs.org/">ohmjs</a> only because I want to build quick and dirty parsers and Ohmjs seems to be the latest and greatest tool that I&#8217;ve found for doing this. As a bonus, ohmjs comes with ohm-editor which is a boon for developing grammars. In fact, I&#8217;d suggest using ohm-editor to quickly create and debug grammars, then hand-convert the grammar for use in other tools. It&#8217;s just so much faster to use an interactive tool like ohm-editor than creating and debugging grammars in any other way. The manual rewrite time is but a minor cost compared to the time wasted doing this some other way.</p><p>Ohmjs happens to be written in Javascript, but it can be used to parse and rewrite code in any language.</p><p>I&#8217;ve created an SCN that I call <a href="https://github.com/guitarvydas/pbp/blob/main/t2td/doc/rwr/RWR%20Spec.pdf">RWR</a> and have incorporated into the PBP toolkit. It&#8217;s the backend of a tool that I call <a href="https://programmingsimplicity.substack.com/p/why-t2t">T2T</a> which is a text-to-text rewriter (parse, then rewrite). T2T uses ohmjs for its front end and RWR for its back end.</p><h2>D2J Parser</h2><pre><code><code>d2j {
  Main = Array
  Array = "[" (KV | Object)+ "]"
  Object = "{" KV+ "}"
  KV = keystring ":" (Array | Object | string | emptyString | number)
  string = "\"" (~"\"" any)+ "\""
  keystring = string
  emptyString = "\"" "\""
  number = digit+
  space += ","
}</code></code></pre><p>The above is an example of an SCN that I&#8217;m currently working on.</p><p>It expresses - in a syntax inspired by ohmjs and BNF - the very minimum required to parse the output of the <code>das2json.mjs</code> tool which converts diagrams - in DPL (Diagrammatic Programming Language) - syntax to a restricted form of JSON.</p><p>The goal is to parse this output, and, convert/rewrite it to a programming language (Python, as stated above) to generate a little parser for this - and only this - kind of input.</p><p>At this point, a mockup of the parser consists of about 100 lines of Python code. This is likely to change as I proceed. To my eyes, the 11 lines of BNF-ish code above is much more expressive of what I want to accomplish than the Python code.</p><p>The general idea is to build programs as diagrams. For example, the &#8220;compiler&#8221; for the PBP kernel is written as a bunch of PBP diagrams - about 30 diagrams. The diagrams output restricted JSON which can be parsed by the above SCN. The kernel diagrams generate over 2,000 lines of restricted JSON, but the above 11-line SCN can ingest all of those 2,000 lines. I tested the above grammar using ohm-editor with the actual<code>kernel.drawio.json</code> generated from the kernel diagrams. Now, knowing that the grammar is OK - Ohmjs does a lot of checking and has PEG formal theory behind it - all I need to do is to convert the above SCN into Python and then I will have an automatically generated parser for all of the 2,000 lines of kernel.drawio.json. Later, I can easily revamp the T2T rewriting script to generate Javascript, Common Lisp and whatever. Currently I&#8217;m trying to generate &#8220;C&#8221;, because most everyone believes that C is &#8220;more efficient&#8221; and &#8220;closer to the hardware&#8221; than those other languages.</p><p>I&#8217;m trying to capture some of my work in video form on this <a href="https://www.youtube.com/playlist?list=PLLklGkLmCilw">playlist</a>. The last few videos (16 and 17) contain brainstorming (diagrams and code) that has led to the above little syntax. I&#8217;ve yet to produce a video about the above SCN and the Python code that it generates.</p><p>The PBP kernel has been working for several years. I&#8217;m just trying to make it even more simple and more understandable.</p><p><a href="https://github.com/guitarvydas/d2jgen">d2jgen code repository (WIP)</a></p><h2>Decision Tree - DTREE Conversion to Python</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MfRZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MfRZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 424w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 848w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 1272w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!MfRZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png" width="1372" height="875" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:875,&quot;width&quot;:1372,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MfRZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 424w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 848w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 1272w, https://substackcdn.com/image/fetch/$s_!MfRZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F583c501b-cbfa-4d51-8adf-10cfcb7159e8_1372x875.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>More powerful SCNs can be created by dropping the text-only requirement and using a DPL - Diagrammatic Programming Language - where suitable. Hybrids of text and diagrams are perfectly fine.</p><p>Text is good for expressing transformations on data. Text is less good for expressing control flow.</p><p>Diagrams are good for expressing control flow, e.g. state machines, flowcharts like those of Drakon, data and event flow.</p><p>Functions express data transformation - one lump of input data produces another lump of output data.</p><p>Functions need kludges added to them to express control flow, e.g. GOTO, exceptions, CPS<sup>1</sup>, allowing RETURN statements anywhere inside functions, etc.</p><p>If-then-else is a function-mapping relationship - a conditional mapping of data from one form to another, like we learned in high school math. When if-then-else is used, instead, for control flow, we end up inventing constructs like flags and unconstrained use of state.</p><p>The decision tree project - <code>dtree</code> - allows us to draw control flows based on simple decisions, yes or no.</p><p>In this [video](</p><div id="youtube2-dZ4p7T3VTcg" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;dZ4p7T3VTcg&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/dZ4p7T3VTcg?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>, I was working on a different project - a Forth-ish like language that I called &#8220;frish&#8221;. I knocked together a DPL with only a few constructs, yes/no decisions based on calls to predicates, and, actions. In this video, I show how to generates &#8220;frish&#8221; meta-code. Later, I converted the dtree transmogrifier to generate Python code and Javascript code.</p><p>The dtree transmogrifier is written as a set of diagrams, as shown in this <a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">playlist</a>. The playlist leans towards showing how to refactor the diagrams into diagrams that are more expressive (IMO).</p><p><a href="https://github.com/guitarvydas/dtree">dtree code repository</a></p><p><a href="https://github.com/guitarvydas/frish">frish code repository</a><br><a href="https://guitarvydas.github.io/2023/11/27/Statecharts-Papers-We-Love-Video.html">Statecharts PWL Toronto 2019</a><br><a href="https://www.slideshare.net/slideshow/drakon-part1-eng/22563246">Drakon Tutorial Part 1</a><br><a href="https://www.slideshare.net/slideshow/drakon-part2-eng/22758304">Drakon Tutorial Part 2</a><br><a href="https://www.slideshare.net/slideshow/drakon-part3-eng/22894119?from_search=0">Drakon Tutorial Part 3</a></p><h2>State Machine Conversion to Python</h2><p>In this <a href="https://youtu.be/ecJGkrpUhQQ">video</a> I drew a diagram of a simple state machine. It isn&#8217;t even necessary to build a diagram transmogrifier.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HUW-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HUW-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 424w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 848w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 1272w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!HUW-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png" width="1233" height="667" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8de19024-feaa-4936-a914-6763a38cc148_1233x667.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:667,&quot;width&quot;:1233,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HUW-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 424w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 848w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 1272w, https://substackcdn.com/image/fetch/$s_!HUW-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8de19024-feaa-4936-a914-6763a38cc148_1233x667.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The diagram was manually translated into a textual meta-language, then the T2T tools were used to convert the meta language into Python code.</p><p>This little diagram becomes 21 lines of Python. I find that the diagram expresses my desired control flow better than the Python code does.</p><p>In essence, the diagram is a new programming language. Python is just used as assembler code. <a href="https://youtu.be/fhOHn9TClXY?t=1909">Alan Kay</a> said &#8220;In a &#8216;real&#8217; Computer Science, the best languages of an era should serve as &#8216;assembly code&#8217; for the next generation of expression&#8221;.</p><p><a href="https://github.com/guitarvydas/sm-pbp">sm-pbp code repository</a></p><h2>Kibitzing and Collaboration</h2><p>If anyone wants to look over my shoulder, kibbitz or participate, please find me on the <a href="https://discord.gg/6TrzW5J52a">programming simplicity discord</a><sup>2</sup> and see my substack articles, blogs, and youtube channel.</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>CPS == GOTO with a new name&#8617;&#65038;</p></li><li><p>Advertisements for work are not allowed.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/scns-building-them-quickly-and-easily?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Kinds of Productivity]]></title><description><![CDATA[2026-11-01]]></description><link>https://programmingsimplicity.substack.com/p/kinds-of-productivity</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/kinds-of-productivity</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Sun, 01 Nov 2026 15:52:12 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I value extrapolative productivity (thinking outside of the box) more than interpolative productivity (more nuance, more features, more edge-cases, &#8220;we&#8217;ve always done it this way&#8221;, notation worship, epicycles).</p><p>What we think of as programming today, is what I would call Production Engineering - optimization, detailing. There is, also, (Design) Engineering - iterating and getting a design right before wasting time on making it &#8220;better&#8221;. We have been emphasizing Production Engineering and essentially ignoring Design. Prematurely declaring that a problem is going to be solved in a &#8220;functional&#8221; manner is most often a commitment towards wasting time right out of the gate.</p><p>I don&#8217;t think of Windows clocking in at 55MLOC as a win. It would be better to do away with operating systems altogether (quite possible) rather than adding more features and edge-cases to them.</p><p>AHA insights are great strides forward, not just mere nuances on top of existing technology. AHA moments in early code written in assembler:</p><ul><li><p>lisp &#8211; garbage collection, first-class functions, structure transforming macros (very different from C-like macros). This kind of macro actually came a few years later, but relied on Lispiness. Tunney&#8217;s more modern Sector Lisp does GC even better.</p></li><li><p>UNIX &#8211; creation of an operating system better than OS/360 and bare monitors, running on a mini-computer (PDP-7), pipes (written in assembler in V3, preceding the V4 rewrite in C of UNIX), stolen ideas from Multics, but drastically shrunk-down</p></li><li><p>Turbo Pascal &#8211;small, quick language compiler running on tiny machines</p></li><li><p>Visicalc &#8211; invention/popularization of interactive spreadsheet idea for desktop machines</p></li><li><p>Sketchpad &#8211; Sketchpad is a constraint-based system. Alan Kay once asked Ivan Sutherland how he managed to build the world&#8217;s first interactive computer graphics system, non-procedural programming language, and object-oriented software system all by himself in just one year. The common belief is that people like this are, somehow, just massively smarter than everyone else, but, one would think that at least some PhDs since then were smart, they&#8217;d just been misled on how to approach solving problems.</p></li></ul><p>Surely we&#8217;ve had AHA moments using function-based languages, but, IMO, many fewer AHAs per unit of time spent.</p><p>Forcing our thought process through a function-based funnel causes lack of inventiveness - which I equate to being a lack of productivity.</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/kinds-of-productivity/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/kinds-of-productivity/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/kinds-of-productivity?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/kinds-of-productivity?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Good Software Is More Than Just Correct Code]]></title><description><![CDATA[2026-10-26]]></description><link>https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Mon, 26 Oct 2026 18:50:02 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1>Separation</h1><p>I liken software to other professions, say something like Structural Engineering.</p><h2>Software Architecture</h2><ul><li><p>thinking deeply about requirements</p></li><li><p>thinking deeply about the desire for fit within a given environment</p></li><li><p>rough-in, sketch of general design</p></li></ul><h2>Software Engineering</h2><ul><li><p>thinking deeply about details</p></li><li><p>can the design be accomplished or do we need to push back on the SW Architects?</p></li><li><p>what&#8217;s missing, what concrete parts are needed for a self-consistent design of SW Architects&#8217; ideas?</p></li><li><p>create blueprints for implementation and/or create MVI (Minimum Viable Implementation - reference implementation, reference semantics - as opposed to MVP (Minimum Viable Product, which skimps on design in lieu of coding))</p></li></ul><h2>Coding - Software Implementation</h2><ul><li><p>building what&#8217;s specified in the blueprints</p></li><li><p>or, pushing back and getting Engineers to make changes and to sign off on the changes</p></li><li><p>if the software breaks because coders made egregious changes, it&#8217;s the coders&#8217; fault</p></li><li><p>if the software breaks because the Engineering was faulty, it&#8217;s the SW Engineers&#8217; fault</p></li><li><p>if the software breaks or doesn&#8217;t satisfy because of other reasons, it&#8217;s the SW Architects&#8217; fault</p></li></ul><h2>Software Analysis</h2><ul><li><p>proving traceability between Engineering blueprints and coders&#8217; product</p></li><li><p>proving inner consistency of code, e.g. via detailed type checking</p></li></ul><h2>Software Production Engineering</h2><ul><li><p>optimization of a working design to make it &#8220;more efficient&#8221; along some dimension</p></li></ul><h2>QA - Quality Assurance</h2><ul><li><p>paid to black-box test the design and the code</p></li><li><p>being as adversarial as possible, finding loopholes that SW Engineers and SW Architects didn&#8217;t think of</p></li><li><p>figure out what needs to change before customers complain or before they make suggestions for design improvement (usually slowly)</p></li></ul><h2>Test Engineering</h2><ul><li><p>examine design and code for &#8220;testability&#8221; and push back at appropriate levels</p></li><li><p>making the product testable</p></li></ul><h2>other</h2><ul><li><p>I&#8217;ve probably missed many important aspects</p></li></ul><h1>Accountability</h1><p>Real professions split work along these lines. SW Engineers should not write code, only think about what code needs to exist and create blueprints.</p><p>It is my understanding that &#8220;Architecture&#8221; and &#8220;Engineering&#8221; are legal terms and that such professionals must sign or stamp their work and take legal responsibility, e.g. they can be sued in court.</p><p>In a cottage industry, a single person (or a single group) is responsible for doing all of the above, often with milquetoast results, poor reproducibility, poor overall design vs. implementation balance, reliance on customers&#8217; suggestions, e.g. through use of continuous deployment instead of striving for zero defects in the field (design defects and code defects)</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/good-software-is-more-than-just-correct?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[What Makes Programming Simpler?]]></title><description><![CDATA[2026-10-21]]></description><link>https://programmingsimplicity.substack.com/p/what-makes-programming-simpler</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/what-makes-programming-simpler</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Wed, 21 Oct 2026 19:44:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>My favourite definition of &#8220;simplicity&#8221; is &#8220;the lack of nuance&#8221;.</p><h2>What Makes Programming Simpler?</h2><ul><li><p>garbage collection</p></li><li><p>heterogenous lists &amp; collections</p></li><li><p>JIT typing (aka dynamic typing)</p></li><li><p>freedom to choose underlying paradigms, i.e. Forth<sup>1</sup>, Prolog<sup>2</sup>, functional, string-only manipulation&#8230;</p></li><li><p>drawings and diagrams</p></li><li><p>explicit expression of state-based control flow in a non-textual manner, e.g. Statecharts</p></li><li><p>explicit expression of flowcharts in a non-textual manner, currently I think that Drakon is a better approach to flowcharting</p></li><li><p>macros<sup>3</sup> and code-that-writes-code</p></li><li><p>REPLs (Read Eval Print Loops)<sup>4</sup></p></li><li><p>a restricted set of types, e.g. Sector Lisp has only two major types - lists and atoms.</p></li></ul><h2>What Makes Programming More Complicated?</h2><ul><li><p>nuance</p></li><li><p>AOT typing (Ahead of Time, aka compilation)</p><ul><li><p>AOT typing is useful for program analysis, but I&#8217;m not convinced that it is helpful for program creation, e.g. many great programs were created without AOT typing, e.g. UNIX<sup>5</sup>, Turbo Pascal, VisiCalc</p></li></ul></li><li><p>the view that everything can be understood if expressed as a functional computation</p></li><li><p>tight coupling hidden by underlying hardware (e.g. CALL/RETURN)</p></li><li><p>formalization</p><ul><li><p>formalization is difficult and slows productivity down and tends to restrict inventiveness</p></li><li><p>some, rightly, feel that formalization is necessary, but formalization should not stand in the way (a roadblock) of creating software, as it currently does</p></li></ul></li><li><p>appeasing the type checker and warping languages to suit the inability of type checking algorithms to handle all actual use-cases</p></li><li><p>thinking that K&amp;R C and ANSI C are the same language</p></li><li><p>thinking that C is &#8220;close to the hardware&#8221; (only true for PDP CPU architectures)</p><ul><li><p>K&amp;R C was only a helper for generating PDP assembler (literally, <code>cc</code> would convert C source text into assembler source text, then another program (<code>as</code>) would convert the assembler text to binary)</p></li></ul></li></ul><h2>References</h2><p><a href="https://guitarvydas.github.io/2023/11/27/Statecharts-Papers-We-Love-Video.html">Statecharts PWL Toronto 2019</a><br><a href="https://www.slideshare.net/slideshow/drakon-part1-eng/22563246">Drakon Tutorial Part 1</a><br><a href="https://www.slideshare.net/slideshow/drakon-part2-eng/22758304">Drakon Tutorial Part 2</a><br><a href="https://www.slideshare.net/slideshow/drakon-part3-eng/22894119?from_search=0">Drakon Tutorial Part 3</a><br><a href="https://github.com/jart/sectorlisp">Sector Lisp</a><br><a href="https://programmingsimplicity.substack.com/p/we-lost-something-1970s-repls-were">We Lost Something: 1970s REPLs Were Better Than Modern Development Environments</a><br><a href="https://leanpub.com/failuredrivendevelopment">Failure Driven Development WIP book</a> - I&#8217;m chipping away at writing a book on FDD, in which programming is thought of as two parts (1) iterative Design Engineering (2)Production Engineering. The book is in early draft form. Comments welcome.<br><a href="https://guitarvydas.github.io/2020/12/09/CALL-RETURN-Spaghetti.html">Call/Return Spaghetti</a> </p><h2>See Also</h2><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>Note that Forth and Prolog (and probably other languages) do not adhere to common calling conventions, like that of <code>cdecl</code>, <code>stdcall</code>, etc. Languages that adhere to these calling conventions can only simulate concepts like those in Forth, Prolog, etc. Just the phrase &#8220;calling convention&#8221; means that one is using the function-calling paradigm. Prolog, for example, does not implement functions, even though the syntax (textual) might look like functions and function calls. Modern languages seem to be wedded to the concept of using functions for writing programs, although this is not necessary. I believe that the overuse of the function-calling paradigm restricts the thought process and reduces the ability to solve problems.&#8617;&#65038;</p></li><li><p>Note that Forth and Prolog (and probably other languages) do not adhere to common calling conventions, like that of <code>cdecl</code>, <code>stdcall</code>, etc. Languages that adhere to these calling conventions can only simulate concepts like those in Forth, Prolog, etc. Just the phrase &#8220;calling convention&#8221; means that one is using the function-calling paradigm. Prolog, for example, does not implement functions, even though the syntax (textual) might look like functions and function calls. Modern languages seem to be wedded to the concept of using functions for writing programs, although this is not necessary. I believe that the overuse of the function-calling paradigm restricts the thought process and reduces the ability to solve problems.&#8617;&#65038;</p></li><li><p>Lisp macros are vastly different from the stunted thing called &#8220;macros&#8221; in something like the C language. In C, macros are written in a limited language which doesn&#8217;t resemble C. In Lisp, a macro can use all of the features of the Lisp language. Macros are evaluated inside of the compiler and affect the compilation process.&#8617;&#65038;</p></li><li><p>Lisp-like REPLs allow the use of the full Lisp language at the REPL command line and allow redefinition of procedures and functions. I believe that supporting such full access is vital to flexibility and simplicity in creating software. I believe that programming consists of two phases (Design Engineering, Production Engineering)&#8617;&#65038;</p></li><li><p>Contrary to the false advertising that I was fed for decades, I recently discovered that UNIX V1 was originally written in assembler. A K&amp;R C version of UNIX only came later (V4). It might be worth trying to figure out how assembler contributed to freedom of thought and invention. Formalization of these concepts only came later, after the concepts had been invented.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/what-makes-programming-simpler/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/what-makes-programming-simpler/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/what-makes-programming-simpler?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/what-makes-programming-simpler?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Three Tiers of Programming a Device]]></title><description><![CDATA[2026-10-12]]></description><link>https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Sun, 18 Oct 2026 12:23:17 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Three Tiers, Not One</h2><p>There are (at least) three tiers to programming a device:</p><ol><li><p>Architecture</p></li><li><p>Engineering</p></li><li><p>Production</p></li></ol><p>Architecture decides what the thing is: its overall form, its parts, and how it should feel to the people who use it. This is the clay modeler&#8217;s work.</p><p>Engineering checks that the architecture holds together. It makes sure every piece has been designed in, that the pieces can be affixed to one another in some manner, and that the i&#8217;s are dotted and the t&#8217;s crossed. It does not choose the cheapest glue or fastener for every situation.</p><p>Production takes a settled design and makes it fast, small, cheap, and shippable. This is the stamping die and the fastener catalogue. It is a different kind of engineering, concerned with optimizing along particular dimensions. Beneath it sits the plain act of implementation, which is not engineering at all. It is carrying out a plan that has already been made.</p><p>Architecture and Engineering together are what I call Design. Production is the other half.</p><p>Most of our AOT (Ahead of Time, statically, strongly typed) programming languages are geared for Production. They are excellent at catching mistakes in the details and generating tight machine code.</p><h2>The Cottage Industry Mentality</h2><p>Yet we use the same, single kind of programming language for all of it. Architecture, engineering, and implementation are conflated, and one person, in one language, in one sitting, does all three. This is the cottage industry. The village cabinetmaker sketches the chair, works out the joinery, selects the wood, and cuts it, all at one bench with one set of tools. For one chair this works well. It does not scale to a skyscraper, a car, or a game engine.</p><p>Industries that grew out of the cottage stage did so by finding clean separations between the tiers, and a notation for each one. The architect&#8217;s drawings are not the engineer&#8217;s calculations, and neither is the machinist&#8217;s tooling spec. Each tier has its own notation, tuned to the questions that tier asks, and each hands something well-defined to the next.</p><p>Programming has not made this move. We have one notation, shaped by the needs of the lowest tier, and we ask it to carry the thinking of the other two. To leave the cottage, we need to find the clean separations between architecture, engineering, and production, and a notation for each.</p><h2>Design Languages Are Shunned</h2><p>We have been taught that languages that support Design should be shunned as &#8220;not sufficiently detailed.&#8221; These are the dynamically typed languages, e.g. Javascript, Python, Lisp. The usual complaint is that they let you get away with too much, as if an architect&#8217;s sketchbook were faulty for lacking a tolerance table.</p><p>Meanwhile, we have built tools that support poor design. Consider the &#8220;CD&#8221; in CI/CD. The pipeline ships quickly and often, and the design is expected to improve afterwards. We expect paying customers to (slowly) give us hints about how to improve the design. In effect, the customers become the design review team, although they never signed up for the job.</p><h2>Premature Optimization of Game Logic</h2><p>When we need to create a hot, fast graphics driver, we use a systems programming language (like C++, etc.). That is a sensible choice, since the driver sits in the tightest loop of the program and every cycle counts. It is Production work, and it deserves a Production language.</p><p>But because of the way our workflow works, we end up using the very same language to code up the higher-level constructs, like game logic, which doesn&#8217;t need the same level of optimization. Whether a dragon decides to attack or flee is not a decision that has to be made in nanoseconds. In essence, the game logic becomes prematurely optimized, and its design suffers from thinking at too low a level. We end up designing the dragon&#8217;s personality in the vocabulary of memory layouts and register pressure. The architecture and the engineering of the game logic never get a tier of their own, so they are done, if at all, in the dialect of the tier below.</p><h2>Why Design Suffers</h2><p>Several forces conspire against Design:</p><ul><li><p>Design is hard to address and hard to quantify. Production is much easier to quantify. We can measure frames per second, memory footprint, and test coverage. &#8220;Is this a good design?&#8221; has no such gauge, and what we can&#8217;t measure tends to get neglected.</p></li><li><p>AOT languages encourage Waterfall design and encourage deferring design to future feedback. The languages demand that types be nailed down early, so the Design hardens before it has been tried.</p></li><li><p>Correct code does not imply good design, or at least, sufficient design. A program can be flawless and still be the wrong program, like a perfectly constructed bridge to the wrong side of the river.</p></li></ul><h3>Designs Need Iteration</h3><p>We need to iterate and test Designs, and to &#8220;go back to the drawing board.&#8221; That means we need the ability to wipe the slate clean, discard all existing code, and re-code. A painter who sees that a composition is wrong paints over the canvas, and nobody calls that waste.</p><p>But if one has spent lots of time appeasing a type checker, one becomes reluctant to discard code. Each hard-won type signature is a small sunk cost, and together they make a large one. So one tends to tweak what they&#8217;ve already got, regardless of whether it is fundamentally flawed. The code stops being a draft and becomes a monument.</p><p>An anecdote: we waited two years for an IDE to be built. When we finally saw it, we immediately asked to change the layout. The programmer told us &#8220;no,&#8221; because it would involve too much rework of the code that was painstakingly created over the past few years. The first time the users could see the design was too late to change it.</p><h2>MVI vs. MVP</h2><p>MVI is different from MVP.</p><h3>MVP</h3><p>MVP (minimum viable product) skimps on Design. Design is adversely altered by the MVP approach, because the toolset ends up deciding what gets designed in the first place.</p><p>It works like a tailor who owns only one pair of scissors and one bolt of cloth. Every suit he makes ends up with the same cut, and he calls this &#8220;what the customer needs.&#8221; We design only what the current toolset provides for. We bend the Design to fit the implementation tools (usually Production tools), instead of thinking about the Design first and then choosing tools that let us implement it.</p><p>Suppose the Design calls for a list of differently typed things, say a game&#8217;s inventory holding swords, potions, and keys. If the only tool at hand is a statically typed functional language that makes heterogeneous lists awkward, the Design quietly changes. The inventory becomes three separate lists, or a single &#8220;Item&#8221; type with a pile of optional fields. Nobody decided that this was better design. It was simply easier to implement.</p><p>The short sprint adds to this. A sprint of, say, two weeks rewards whatever fits in a two-week box, so the Design is trimmed into bits of that size. Pieces that don&#8217;t fit are cut or deferred, much like a sculptor who can only carve what fits in the block he happened to buy.</p><h3>MVI</h3><p>MVI (minimum viable implementation) creates an engineering version of a full product, while skimping on optimization and production issues. Where MVP builds a small piece of the product, MVI builds a rough version of the whole product. It is the full-scale clay model, as opposed to one finished car door.</p><p>The clay modeler works at the level of architecture, shaping the whole form and deciding how it should look and feel. The stamping die sits at the opposite end, a very low-level concern about how to make thousands of identical panels cheaply. The engineer works in between. At this stage, engineering consists of thinking about the design and figuring out which i&#8217;s need to be dotted and which t&#8217;s need to be crossed. The engineer checks that all of the pieces have been designed in and that each can be affixed in some manner. The engineer does not need to decide which glue or hardware fastener is cheapest in every situation, or spend brain bandwidth rearranging the bits of the engineering to optimize along certain dimensions.</p><p>MVI is iterative and stops only when the design is deemed full enough to be useful. Once a design variant is chosen and settled on, Production can commence, either to implement the whole thing or to release it in chunks. There is no expectation of upgrading the actual design. The first two tiers end, and Production inherits a design that has already been tried and found good.</p><h2>Provenance Across the Tiers</h2><p>We should want (but don&#8217;t have, today) a way to track provenance from the original Architecture, through the Engineering, to the actual Production version. When a production decision departs from the design, we should be able to see where and why. Today the thread is cut at each handoff, and the production code can&#8217;t tell us which parts are essential to the design and which are accidents of the toolset.</p><h2>What Do We Need?</h2><h3>A Notation for Each Tier</h3><p>Each tier needs its own notation, shaped by the questions that tier asks. We already have some languages that use dynamic typing and REPLs, like Lisp and Smalltalk. They let you ask a question of the program while it runs, and they make throwing code away cheap, which is exactly what the upper two tiers need. Production already has its languages: the AOT languages we have today.</p><p>The work might need to be split into more than three tiers. This is where I would start.</p><h3>Mappings Between the Tiers</h3><p>We need a way to map constructs in the upper tiers to constructs in Production languages.</p><p>What does it mean to have a list of heterogeneous (differently typed) objects, and how can that be automatically mapped to AOT languages? Currently, we do this manually, by insisting on programming rules, like not allowing the use of collections of heterogeneous objects. The rule is sensible on its face, but it filters the Design before the Design has been judged on its merits, which is the MVP problem again.</p><h3>Hardware Data Types</h3><p>At the bottom, there are only two fundamental data types in hardware:</p><ul><li><p>byte</p></li><li><p>pointer to byte</p></li></ul><p>Hardware is a vast warehouse of identical boxes, each with an address painted on the front. Everything else is a convention about how to read and mutate the contents of the boxes.</p><p>This is not strictly accurate. It depends on CPU architecture, and some CPUs support signed bytes and 16-bit integers. But the picture is close enough to pose the question: how do we map abstract types, like user-defined data structures and objects, onto those boxes?</p><p>Compilers are expected to do this, but they don&#8217;t currently succeed in mapping coarse-grained Objects to hardware types without wasting memory. For example, we often need to build separate data structures and functions for each type. Compilers can optimize at a low level, like shuffling registers and eliminating dead stores, but not at a semantic level. A compiler can tidy the boxes, yet it has no idea what the boxes mean.</p><h3>A Possible Bridge: Union Types?</h3><p>Does the relatively recent invention of union types give us a way to create heterogeneous data structures that can be used to map (dynamically typed) Design issues to (statically typed) Production issues? If so, the inventory of swords, potions, and keys could live in the Design as one natural list, and be mapped into a production-ready layout without anyone having to bend the Design to fit.</p><p>I don&#8217;t know the answer, but it seems a question worth pursuing.</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/three-tiers-of-programming-a-device?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Text vs. Visual Notations]]></title><description><![CDATA[2026-10-13]]></description><link>https://programmingsimplicity.substack.com/p/text-vs-visual-notations</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/text-vs-visual-notations</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Fri, 16 Oct 2026 13:09:33 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1>Text vs. Visual Notations</h1><p>2026-10-13</p><p>Some say that &#8220;text is more powerful than visual&#8221;.</p><p>I feel that this statement needs to be further qualified with the question &#8220;For what purpose?&#8221;.</p><p>Off the top of my head, I see several various purposes:<br>- human -&gt; formal analysis<br>- human -&gt; hardware control<br>- human &lt;-&gt; human communication</p><p>Because text supports recursion and higher order abstractions (closures, generics) in a small amount of space, I would consider that a very restricted form of text is &#8220;more powerful&#8221; for human-&gt;formal analysis purposes.</p><p>Hardware CPUs are based on the principles of mutation and control flow (aka sequencing and GOTO). Hardware CPUs are little sequencers / interpreters and are programmed with binary codes, often written as assembler text. Here, text, again is quite suitable for human-&gt;control usage, but not the same kind of text as used for the above formal analysis, since modern formal forms explicitly deny the existence of mutation and control flow - the basics of hardware CPUs. In fact, functional text notation needs to have warts added to it that break the basic tenets of structured programming (1-in, 1-out) with unruly, dynamic control flow constructs like &#8220;exceptions&#8221;.</p><p>For the purposes of human&lt;-&gt;human communication, visual is clearly &#8220;better&#8221;. Most real engineering disciplines use diagrams, drawings, and blueprints for human-to-human communication. Many humans, especially non-programmers and non-language-analysts want &#8220;simplicity&#8221; and a layered approach to understanding the details of any system or dataset. Simplicity is &#8220;the lack of nuance&#8221;, hence, the textual notation used for detailed formal analysis is unsuitable for this kind of communication. It is difficult to clearly express<sup>1</sup> common design constructs in text, like feedback (which is very different from recursion), looping, multi-path control flows, asynchronous concurrency, etc.</p><p>The formal concept of &#8220;functions&#8221; as the only encapsulation mechanism is a poor substitute for &#8220;not colouring outside of the lines&#8221; (of closed figures) that we all learned in kindergarten. The concept of &#8220;global variables&#8221; and &#8220;free variables&#8221; rose out of the closed-figure inadequacies of textual notation.</p><h2>Isomorphism - Can We Convert Between Visual and Text?</h2><p>Can we freely convert between visual and text?</p><p>Yes.</p><p>Modern diagram editors, like <a href="https://www.drawio.com/">drawio</a>, <a href="https://www.excalidraw.com/">excalidraw</a>, <a href="https://www.yworks.com/products/yed">yed</a>, etc. save diagrams out in XML (graphML, SVG) format, which is a text format.</p><p>The XML-ish format is cumbersome and difficult to read for human eyes, but, is easily parseable by automated tools.</p><p>My favourite tool for parsing such formats is based on <a href="https://en.wikipedia.org/wiki/Parsing_expression_grammar">PEG</a> technology, such as <a href="https://www.ohmjs.org/">OhmJS</a>.</p><p>I use a 2-stage process to convert diagrams to running code<br>1. parse XML-ish<br>2. rewrite from XML-ish to different text (say, to Python code).</p><p>In fact, I&#8217;ve created a little language (a DSL or SCN (Solution Centric Notation), I call RWR, to supplement pass 2 of the above process and combine OhmJS and RWR into a wrapper tool that I call T2T that makes the 2-stage transmogrification process convenient to use.</p><h1>Further</h1><p><a href="https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls?r=1egdky">Why Diagrams and DPLs?</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Back of the Napkin Notes</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>It is not necessarily impossible to express these concepts in text, but it is difficult to do so in a way that immediately conveys meaning to other humans. Aside: asynchronous concurrency (parallelism) is not at all expressible in a sequential, synchronous form - the best one can do is to simulate a small subset of synchronous (the exact opposite of &#8220;asynchronous&#8221;) cases of memory-cell-level-synchronized instances of such behaviours.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/text-vs-visual-notations/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/text-vs-visual-notations/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/text-vs-visual-notations?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/text-vs-visual-notations?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Why Diagrams and DPLs?]]></title><description><![CDATA[2026-10-09]]></description><link>https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Thu, 15 Oct 2026 14:29:08 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!oEcz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Comments go out of sync with code</h2><p>Comments go out of sync with code. Diagrams are a better version of comments. Diagrams are usually more meaningful than text.</p><h2>DPLs do not need to be Turing complete</h2><p>DPLs (Diagrammatic Programming Languages), and any little textual languages, do not need to be Turing complete. A <em>combination</em> of DPLs and little languages might be Turing complete. Even programming languages and workflows that are not Turing complete can be useful.</p><p>We want to glue together a bunch of non-Turing-complete snippets to produce a complete result. If we want Turing-completeness, we simply need to ensure that the combination of snippets is Turing-complete.</p><h2>Diagrams are easy to parse and transmogrify</h2><p>It is easy to parse diagrams and transmogrify them down into existing textual programming languages. We can do this using TDPLs (Top Down Parsing Languages) like OhmJS and the T2T toolkit.</p><p>This is practical now because several modern diagram editors save diagrams out as XML, graphML, SVG, etc. (e.g. drawio.com). That format is textual and is hard to read, but easy to parse - i.e. our current tools, such as text parsing languages, can be used to parse diagrams. In some cases, we might want to extract and infer more information from a diagram, say based on position, like (x,y), above, below, beside, or containment, like inside or on-the-boundary-of. We already have tools and techniques for inferring such information, e.g. relational programming languages like Prolog and its descendants, miniKanren or just plain looping and recursive code.</p><h2>Example</h2><p>Below is an image of one of the diagrams in the PBP kernel.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oEcz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oEcz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 424w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 848w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 1272w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!oEcz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png" width="454" height="712" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:712,&quot;width&quot;:454,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;PBP Kernel Back End&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="PBP Kernel Back End" title="PBP Kernel Back End" srcset="https://substackcdn.com/image/fetch/$s_!oEcz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 424w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 848w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 1272w, https://substackcdn.com/image/fetch/$s_!oEcz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3309858a-2724-4bb9-bcd7-c7c50c067acd_454x712.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">PBP Kernel Back End</figcaption></figure></div><p>Note that it shows various ideas that are harder to express in text form, like fan-out and fan-in. Fan-out is seen as the multiple flows emanating from the white rhombus (the input gate) at the left side of the diagram. Fan-in is seen as multiple flows terminating at the blue rhombus, labelled &#8220;&#10007;&#8221; on the right hand side.</p><p>The diagram does not specify an execution order for the boxes. Each blue-ish box has one<sup>1</sup> input queue where messages (&#8220;mevents&#8221;<sup>2</sup>) pile up on the queue in order of arrival. The boxes run when the PBP kernel notices that any box has inputs on its input queue. This is very similar to how operating systems run processes, but can be implemented in a much lighter weight manner in programming languages instead of being relegated to operating systems.</p><p>It should be immediately obvious that this diagram shows a code generator. It generates code - concurrently &#8220;at the same time&#8221; - for several programming languages (Python, Javascript, Common Lisp, C).</p><p>This diagram does not need to show <em>all</em> of the detail of the code generator. Yet, it gives a quick overview of how the generator works. Interested readers can dig down into the boxes to see more detail. Theoretically, we should be able to organize function-based code in this same manner - eliding detail and moving it into other functions - but, I find that this diagrammatic form is easier to quickly understand.</p><p>A difference between this DPL representation and a function-based representation is that each box is completely isolated from each other box. Boxes communicate only by sending messages through their ports to other boxes. In a function-based representation, though, functions <em>call</em> other functions, <em>blocking</em> themselves until the callee has finished. This causes tight control-flow coupling between functions and unnecessarily synchronizes them at a low level. Loose coupling allows more explicit control of the software architecture than function-based, implicit, tight coupling.</p><p>With looser coupling, it becomes possible to use hierarchical layers instead of flat code sprawl, to describe larger systems.</p><h2>Reading / Viewing List</h2><ul><li><p>Alan Kay In a &#8216;real&#8217; Computer Science, the best languages of an era should serve as &#8216;assembly code&#8217; for the next generation of expression <a href="https://youtu.be/fhOHn9TClXY?t=1908">Alan Kay, 31:50</a></p></li><li><p><a href="https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate?r=1egdky">Stop Writing What Diagrams Can Generate</a></p></li><li><p>T2T / OhmJS / RWR are fundamental tools for transmogrifying diagrams to textual, runnable code. This <a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYEGrLE2IJAXp5V8eHBwzu4">playlist</a> walks through several examples of using T2T to create little languages (most of them DPLs), starting with the simplest version, i.e. just hand-compiling a diagram (a state diagram) to meta-code, then using T2T to transmogrify the meta-code into runnable Python and another example in which I use a DPL to create another DPL. I favour the concept of creating a little SCN<sup>3</sup>/DPL for every project on a per-project basis, instead of prematurely generalizing the DPL and introducing accidental complexities (the YAGNI principle (You Aren&#8217;t Going to Need It)).</p></li></ul><h1>Appendix - T2T</h1><p>T2T is one of the tools in the PBP toolkit &#8212; once you install PBP, you have access to T2T.</p><h1>Appendix RWR</h1><p>RWR is part of T2T. This is the <a href="https://github.com/guitarvydas/pbp/blob/main/t2td/doc/rwr/RWR%20Spec.pdf">specification for RWR</a></p><p>RWR is a little language (a tiny DSL) for string manipulation and rewriting text into other text. RWR is not Turing complete, but, the combination of OhmJS and RWR into a toolset I call T2T (&#8220;text to text&#8221;) is a powerful text matching and text rewriting tool.</p><p>RWR needs only a few operations<br>- create new text by inserting character constants<br>- create new text by inserting text interpolated by tree-walking the parameters passed in from the OhmJS parser<br>- call Javascript support routines that return strings<br>- push, pop and query user-defined stacks, much like Lisp&#8217;s dynamically scoped variables<br>- this allows information to be passed <em>down</em> the parse tree when tree-walking<br>- for example, if a rule needs to include a string from higher up in the tree, the string can be constructed (using rewrite operators) and pushed onto a parameter stack<br>- this is like pass-through parameters supplied to every function, except without the associated syntactic noise<br>- string creation is recursive - string operators can take parameters that are themselves created strings<br># Appendix - PBP <a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>Appendix - Further About PBP</h1><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming">The Spherical Cows of Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow - First Principles of Parts Based Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations?r=1egdky">The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-e6c?r=1egdky">The Case For Composable Notations (3 / 5) - State Isn&#8217;t The Enemy</a> <a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-2bd?r=1egdky">The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-f31?r=1egdky">The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-0d3?r=1egdky">The Case For Composable Notations (6 / 5) - WIP - Notations in Progress</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>Note one input queue per part (box), not one input queue per port.&#8617;&#65038;</p></li><li><p>Mevent = Message Event&#8617;&#65038;</p></li><li><p>SCN = Solution Centric Notation&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-diagrams-and-dpls?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Why T2T?]]></title><description><![CDATA[2026-10-13]]></description><link>https://programmingsimplicity.substack.com/p/why-t2t</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/why-t2t</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Wed, 14 Oct 2026 14:03:54 GMT</pubDate><enclosure url="https://substackcdn.com/image/youtube/w_728,c_limit/awGfr8q6oZQ" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>T2T means text-to-text transmogrification (transpilation).</p><p>Compilers fundamentally work like this - read text in, convert to text out. The other part of compiling is the inclusion of type checking tools which should really be written in inferencing languages, for example Prolog and its descendants.</p><p>One of the earliest compilers - <code>cc</code> on early Unix - worked exactly like this. <code>Cc</code> inhaled C code and exhaled PDP-11<sup>1</sup> assembler code as text. Another tool, <code>as</code> converted the assembler text into binary that could be loaded and run on the computer. Early K&amp;R C was essentially a tool for creating assembler. It popularized some conventions, e.g. the C calling convention, where every subroutine was treated as a function, which required generating extra code. K&amp;R C had limited type checking - just enough to help programmers check their work. Later variations on C - ANSI C - changed the declaration syntax of K&amp;R C, removed the default - that every subroutine was considered to be a function that, by default, returned an <code>int</code> - attempted to make C portable to non-PDP CPU architectures and, generally, twisted C from being a tool for producing PDP assembler to being a tool for type checking that incidentally produced binary code for a plethora of CPU architectures.</p><p>T2T shows that we don&#8217;t need fancy data structures to accomplish a lot of work.</p><p>Strings are fairly simple data structures. String manipulation is supported by most modern languages. The concept of string manipulation was popularized by UNIX pipelines. The main failing of the UNIX tools is that they were based mostly on REGEX, which is a terse, flat notation. T2T uses OhmJS for its front end. Ohm is a proper parser allowing rules to call other rules and allows recursive rules. Hence, T2T can match more interesting structures in text than REGEX can. T2T is more verbose than REGEX. I consider the T2T syntax easier to read than REGEX syntax. Ohm is a top-down parsing language (TDPL) which I find to be significantly more friendly than CFG-based parsing languages, which are bottom-up. Using a TDPL, programmers can write rules that skip over constructs, whereas BUPLs (CFGs like YACC) require a programmer to painstakingly specify every possible incoming token</p><p>When stock OhmJS is used, it is expected that the rest of the &#8220;semantics&#8221; code will be written in Javascript. RWR, though, provides a very simple set of operations and generates OhmJS-compatible Javascript - you don&#8217;t need a lot of the complicated features of Javascript to get a lot of useful work done.</p><p>The T2T rewriting technique can be used to build tools for program development, say to search through code or to build code that writes code. The &#8220;efficiency&#8221; rules for program development tools are different from what is needed for product development. A tool only needs to run &#8220;fast enough&#8221; on development hardware. The goal is to save development time by expending hardware power, instead of saving hardware cycles by expending development time. For example, you can create a little tool / notation that allows you to combine Prolog for type inferencing with another language for doing the actual code emission along with yet another BNF-like language for input parsing.</p><p>When you can develop little languages and little tools rapidly, you are freed to use more than one language for any project - this used to be considered problematic back when writing languages was difficult, but, that is no longer the case.</p><p>LLMs supposedly generate code. But, they use only one coding style based on the functional / function-based paradigm. There are other ways to write programs, for example Prolog, Forth, Statecharts, etc. which might be more suitable for parts of projects than the function-based style.</p><h2>Video Example</h2><p>A video showing setup and build of an example T2T project is in</p><div id="youtube2-awGfr8q6oZQ" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;awGfr8q6oZQ&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/awGfr8q6oZQ?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>. The repository for the code example in the video is in <code>https://github.com/guitarvydas/dictlisp</code>.</p><h1>Appendix - T2T</h1><p>T2T is one of the tools in the PBP toolkit &#8212; once you install PBP, you have access to T2T.</p><h1>Appendix RWR</h1><p>RWR is part of T2T. This is the <a href="https://github.com/guitarvydas/pbp/blob/main/t2td/doc/rwr/RWR%20Spec.pdf">specification for RWR</a></p><p>RWR is a little language (a tiny DSL) for string manipulation and rewriting text into other text. RWR is not Turing complete, but, the combination of OhmJS and RWR into a toolset I call T2T (&#8220;text to text&#8221;) is a powerful text matching and text rewriting tool.</p><p>RWR needs only a few operations<br>- create new text by inserting character constants<br>- create new text by inserting text interpolated by tree-walking the parameters passed in from the OhmJS parser<br>- call Javascript support routines that return strings<br>- push, pop and query user-defined stacks, much like Lisp&#8217;s dynamically scoped variables<br>- this allows information to be passed <em>down</em> the parse tree when tree-walking<br>- for example, if a rule needs to include a string from higher up in the tree, the string can be constructed (using rewrite operators) and pushed onto a parameter stack<br>- this is like pass-through parameters supplied to every function, except without the associated syntactic noise<br>- string creation is recursive - string operators can take parameters that are themselves created strings</p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>another earlier Blog (raw form):</em> https://github.com/guitarvydas/missing-blogs<br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a><br><em>books: WIP Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><div><hr></div><ol><li><p>UNIX was originally written in PDP-7 assembler. <code>Cc</code> appeared in 1972 and emitted code for PDP-11s.&#8617;&#65038;</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-t2t/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-t2t/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/why-t2t?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/why-t2t?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p></li></ol>]]></content:encoded></item><item><title><![CDATA[Stop Writing What Diagrams Can Generate]]></title><description><![CDATA[Your Editor Should Parse Diagrams Too, 2026-01-25]]></description><link>https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Fri, 09 Oct 2026 13:55:54 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/185736585/f0a07934f6de46009b1b0cd236a51084.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p>I&#8217;ve created another YouTube <a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">playlist</a> called &#8220;Decision Tree Transmogrifier&#8221;.</p><p>Having created a diagram to code transpiler, I show how I refactor the code for architectural readability. Further discussion and progress reports are available on the &#8220;programming simplicity&#8221; <a href="https://discord.gg/6TrzW5J52a">discord</a>.</p><p>A little programming language (SCN - Solution Centric Notation) need not be &#8220;Turing Complete&#8221; nor &#8220;general purpose&#8221; to be useful. In this early version, I just manually copy/paste the generated code into a larger project (in fact, I do this automatically with a little include-er program, but copy/paste would be good enough).</p><p>The code &#8220;as is&#8221; is up in a github repo, but the point is that this is so straight forward and easy that you can do it yourself without bothering to use my code.</p><p>What we should want is a workflow and a set of tools that make this kind of thing so easy that we could just do it without fuss and thinking, kind of like using regexs that are built into various modern programming languages, but, better than regex.</p><p>Parsers, like regex, came from the compiler world, but unlike regex, parsers remain tainted with the idea that there is only one use for them - building compilers. Modern parsers can be applied to transmogrifying diagrams, and, diagrams can create snippets of code for use in bigger projects, similar to using a powerful text editor.</p><p>Maybe the penultimate goal would be to graft parsers into editors, then allow editing of projects using a mix of diagrams and text and little languages?</p><p><strong>See Also</strong></p><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a></p><p><em>Substack</em>: <a href="http://paultarvydas.substack.com">paultarvydas.substack.com</a></p><p><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www.youtube.com/@programmingsimplicity2980</a></p><p><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a></p><p><em>Leanpub</em>: [WIP] <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a></p><p><em>Twitter</em>: @paul_tarvydas</p><p><em>Bluesky:</em> @paultarvydas.bsky.social</p><p><em>Mastodon: </em>@paultarvydas</p><p><em>(earlier)</em> <em>Blog:</em> <a href="http://guitarvydas.github.io">guitarvydas.github.io</a></p><p><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/stop-writing-what-diagrams-can-generate?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[First Principles Thinking - 5 Whys Approach]]></title><description><![CDATA[2026-10-09]]></description><link>https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Fri, 09 Oct 2026 13:22:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Mentioned in previous articles, a way of thinking, called the 5 Whys Approach, might be of interest:</p><p><a href="https://fs.blog/first-principles/">https://fs.blog/first-principles/</a></p><h2>Some Examples and Thoughts</h2><p>(some several years old):<br><a href="https://guitarvydas.github.io/2020/12/10/5-Whys-of-Multiprocessing.html">https://guitarvydas.github.io/2020/12/10/5-Whys-of-Multiprocessing.html</a><br><a href="https://guitarvydas.github.io/2020/12/10/5-Whys-of-Full-Preemption.html">https://guitarvydas.github.io/2020/12/10/5-Whys-of-Full-Preemption.html</a><br><a href="https://programmingsimplicity.substack.com/p/five-whys-for-software-component">https://programmingsimplicity.substack.com/p/five-whys-for-software-component</a> (based on <a href="https://guitarvydas.github.io/2020/12/10/5-Whys-of-Software-Components.html">https://guitarvydas.github.io/2020/12/10/5-Whys-of-Software-Components.html</a>)<br><a href="https://guitarvydas.github.io/2022/05/25/Programming-First-Principles-Thinking.html">https://guitarvydas.github.io/2022/05/25/Programming-First-Principles-Thinking.html</a></p><h2>The beginnings of an LLM based approach:</h2><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;04b81421-6842-4836-90d9-72b96ae3176b&quot;,&quot;caption&quot;:&quot;As software consultants and contractors, one of our most challenging tasks is understanding what problem we&#8217;re actually solving. When you ask a customer to describe their problem, they rarely provide a complete answer on the first try. The initial problem statement is often a symptom rather than the root cause.&quot;,&quot;cta&quot;:null,&quot;showBylines&quot;:true,&quot;showDescription&quot;:true,&quot;showImage&quot;:true,&quot;size&quot;:&quot;lg&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;PBP-LLM: Automated Problem Discovery Using Language Models&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:84744898,&quot;name&quot;:&quot;Paul Tarvydas&quot;,&quot;bio&quot;:null,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2110e850-cdbb-4449-8f98-e83b9652bb85_131x131.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2025-12-28T20:50:48.637Z&quot;,&quot;cover_image&quot;:&quot;https://substack-video.s3.amazonaws.com/video_upload/post/182802315/e8d97823-384c-4227-a87d-82838095c73a/transcoded-00001.png&quot;,&quot;cover_image_alt&quot;:null,&quot;cover_image_crop&quot;:null,&quot;canonical_url&quot;:&quot;https://programmingsimplicity.substack.com/p/pbp-llm-automated-problem-discovery&quot;,&quot;section_name&quot;:null,&quot;video_upload_id&quot;:&quot;e8d97823-384c-4227-a87d-82838095c73a&quot;,&quot;id&quot;:182802315,&quot;type&quot;:&quot;podcast&quot;,&quot;reaction_count&quot;:5,&quot;comment_count&quot;:0,&quot;publication_id&quot;:2706416,&quot;publication_name&quot;:&quot;Programming Simplicity&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/$s_!eSyZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png&quot;,&quot;belowTheFold&quot;:false,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/first-principles-thinking-5-whys?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[The Synchronous Straitjacket]]></title><description><![CDATA[2026-09-30]]></description><link>https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Wed, 30 Sep 2026 15:07:58 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>The problem with CSP</h2><p>The problem with CSP is that the processes are synchronous. Synchronous is the exact opposite of asynchronous. It is very hard, in fact impossible, to express asynchronous processes using synchronous notation.</p><p>We&#8217;ve been pushing on CSP-like processes for some 50 years. We have modified the hardware to get a sort-of parallelism: each CPU core has its own private caches. But as soon as cores touch shared memory, the hardware&#8217;s cache coherence protocol synchronizes them with the other processes in the system.</p><h2>Synchronization is unavoidable, but who controls it?</h2><p>The only reasonable way to deal with asynchronous processes is to synchronize them in some way, using some sort of protocol.</p><p>If that protocol is ultra-generalized, it is taken out of the hands of the software architect. It cannot be optimized on a per-project basis. This also leads to accidental complexity: lots and lots of code added to try to keep things running within the L1 cache.</p><p>A more reasonable and simpler way is to let the architect choose when to synchronize. This is done with simple message passing. We see this kind of thing on the Internet and in true asynchronous message-passing systems.</p><h2>Hierarchy</h2><p>The synchronous straitjacket also hinders thinking about hierarchical software architecture. It is much easier to express a hierarchical architecture using message passing between nodes that are not coupled via call/return and function calling.</p><p>This is why, using current programming languages, it appears to be very difficult to write an Ethernet stack, yet using something like statecharts it is quite easy.</p><p>We saw someone building an Ethernet stack in the language C. After six months he was still testing it. We rebuilt the same stack in only two days, using a different mindset: the mindset of state machines.</p><h2>Parts Based Programming</h2><p>Lately I&#8217;ve been experimenting with a system I call Parts Based Programming (PBP), formerly called 0D. It uses simple Python and first-class functions to create asynchronous processes. The nodes are functional, but can only communicate with the outside world through input and output queues (one each per Part, not one per port).</p><p>Creating simple hierarchies this way is natural, and the code inside each node remains fairly simple and easy to understand. You can dig into a node as deeply as you want to discover details. You can also simply get a view of the bigger picture by looking at the upper layers, without bothering to dig down.</p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>Appendix - Further About PBP</h1><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming">The Spherical Cows of Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow - First Principles of Parts Based Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations?r=1egdky">The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-e6c?r=1egdky">The Case For Composable Notations (3 / 5) - State Isn&#8217;t The Enemy</a> <a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-2bd?r=1egdky">The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-f31?r=1egdky">The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-0d3?r=1egdky">The Case For Composable Notations (6 / 5) - WIP - Notations in Progress</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/the-synchronous-straitjacket?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[C Port of PBP Kernel]]></title><description><![CDATA[2026-09-13]]></description><link>https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Sun, 13 Sep 2026 19:48:14 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I&#8217;ve begun an experiment to port the PBP kernel to C.</p><p>The challenge is that the kernel is currently written assuming the use of dynamically typed languages.</p><p>The kernel source code (<code>*.rt</code> in the <a href="https://github.com/guitarvydas/pbp/tree/c_type_annotations/kernel">pbp kernel</a>, branch <code>c_type_annotations</code>) currently contains no type annotations.</p><h2>Why No Type Annotations</h2><p>I think that inserting type annotations into source code results in messy, unreadable code. Type annotations are useful for Production Engineering, but are essentially line noise for Design Engineering.</p><p>It was necessary in the 20th century to conflate programming language syntax with type annotation syntax, because building languages was considered difficult and time consuming. In the 21st century it is much easier to build little languages, and maybe we can finally break this habit.</p><h2>Following Along</h2><p>I&#8217;ve been trying to capture my progress in a Twitch-like manner in a <a href="https://www.youtube.com/playlist?list=PLLklGkLmCilw">YouTube playlist</a>. I started by recording everything, but switched to making shorter videos after part 3.</p><p>If you want to follow along or participate, please visit the <a href="https://discord.gg/ABX97fqtwd">Programming Simplicity Discord</a>, in channel <code>PBP (Parts Based Programming, 0D) #0d</code>.</p><h2>Today&#8217;s Sub-Experiment</h2><p>Part 7 is the beginning of today&#8217;s sub-experiment. I intend to process the existing kernel source code and produce a &#8220;form&#8221; which leaves indicators of where I need to manually supply types.</p><p>In the future, it might be possible to use type inferencing &#8212; say, using Prolog or miniKanren &#8212; to fill in some of this information. For now, I&#8217;ll just enter the information manually, to keep things simple and do-able.</p><h2>Where This Might Go</h2><p>This is an ongoing experiment. One possible result of this line of experimentation might be that I find the task of porting &#8212; this way &#8212; to C to be impossible. We&#8217;ll see. I&#8217;m using the interim results for brainstorming the next steps.</p><h1>Appendix - T2T</h1><p>T2T is one of the tools in the PBP toolkit &#8212; once you install PBP, you have access to T2T.</p><h1>Appendix RWR</h1><p>RWR is part of T2T. This is the <a href="https://github.com/guitarvydas/pbp/blob/main/t2td/doc/rwr/RWR%20Spec.pdf">specification for RWR</a></p><h1>Appendix - PBP</h1><p><a href="https://github.com/guitarvydas/pbp">PBP tools</a></p><h1>Appendix - Further About PBP</h1><p><a href="https://www.youtube.com/watch?v=IFcIptdG2sY&amp;list=PLHh2_dCKBPjYBmubkBfn0LSbDMRKsr9Ui">Towards Parts Based Programming</a><br><a href="https://www.youtube.com/watch?v=EFTzFA82YRc&amp;list=PLHh2_dCKBPjbBN2R8xwBiS4nHlo5iQjqS">PBP cookbook playlist</a><br><a href="https://www.youtube.com/playlist?list=PLHh2_dCKBPjYhpvWSvJNJdrsZE8lNHza7">Decision Tree Diagram Transmogrifier</a><br><a href="https://www.youtube.com/watch?v=ecJGkrpUhQQ&amp;list=PLHh2_dCKBPjZEvCymkt1ZVualP7gt3e1O&amp;index=17">State Machine Diagram Tool</a></p><p><a href="https://github.com/guitarvydas/fdd-llm">FDD LLM - 5 Whys Tool - code repository</a><br><a href="https://github.com/guitarvydas/sm-pbp">State Machine Tool - code repository</a><br><a href="https://github.com/guitarvydas/dtree">Decision Tree Tool - code repository</a><br><a href="https://github.com/guitarvydas/pbp">PBP all tools (PBP, T2T, das2json)</a></p><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming">The Spherical Cows of Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow - First Principles of Parts Based Programming</a><br><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations?r=1egdky">The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-e6c?r=1egdky">The Case For Composable Notations (3 / 5) - State Isn&#8217;t The Enemy</a> <a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-2bd?r=1egdky">The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-f31?r=1egdky">The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way</a><br><a href="https://programmingsimplicity.substack.com/p/the-case-for-composable-notations-0d3?r=1egdky">The Case For Composable Notations (6 / 5) - WIP - Notations in Progress</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/c-port-of-pbp-kernel?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[AI Slop vs. Artistry]]></title><description><![CDATA[2026-09-05]]></description><link>https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Sun, 06 Sep 2026 22:05:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I&#8217;ve heard this song before.</p><p>Not the current hype about AI, exactly &#8212; but the pattern underneath it. I&#8217;ve heard it, watched it, lived through it, in a completely different field.</p><p>Years ago I was deeply into songwriting and music production. I watched drum machines, DAWs, auto-tune, and music video technology arrive one after another. Each time, the same thing happened: suddenly, a lot more people could make music. And most of what they made sounded like slop &#8212; thin, degraded versions of the real, artistic thing.</p><p>It wasn&#8217;t the technology&#8217;s fault. The slop came from the masses playing with a new medium and stopping at the first thing it handed them. Push a button, get a beat, call it done. The technology lowered the floor, and most people stood exactly on it.</p><p>But not everyone stopped there. Some actual artists sat with these same tools long enough to learn them &#8212; not just operate them, but <em>work</em> them, push against their grain, find out what they could do that nothing before them could do. Once that happened, the results stopped sounding like slop. The drum machine that produced a million disposable beats also produced works of art. Same box. Different relationship to it.</p><p>I think we&#8217;re in that exact moment with AI.</p><p>A lot more people can now produce music, images, and prose that resembles what came before. Most of it is slop, for the same old reason &#8212; first draft accepted, first image accepted, first melody accepted. Meanwhile, the &#8220;real artists&#8221; mostly haven&#8217;t figured out yet how to manipulate this new medium the way earlier artists eventually learned to manipulate drum machines and DAWs. That reckoning is still ahead of us, not behind us.</p><p>Here&#8217;s the distinction I keep coming back to: artists evoke feelings. Slop generators produce formulaic output that doesn&#8217;t touch anyone. The difference was never really about the tool. It&#8217;s about whether a human being with intent is wrestling with the tool, or just accepting whatever the tool coughs up first.</p><h2>How I actually use it</h2><p>I&#8217;ve been using AI &#8212; Claude, and Leanpub&#8217;s ghostAI &#8212; to write blog posts, articles, and book chapters for a few years now. I think I&#8217;m getting better at it, which is itself a sign that this is a skill and not a shortcut.</p><p>What it does well is take my point-form notes and turn them into readable prose with a lot less effort than it used to take me. But that&#8217;s the small part. The bigger part is that Claude reads what I&#8217;ve written and criticizes it &#8212; as a piece of writing, not just as a string of facts. It acts as a brainstorming co-writer. I don&#8217;t hand it notes and accept whatever comes back. I argue with it. I push on the draft, criticize it, refine it, the way I would with a human co-writer &#8212; though, admittedly, with fewer arguments and less ego in the room.</p><p>My process usually goes three rounds:</p><ol><li><p>I write a set of ideas in point form.</p></li><li><p>I ask Claude to draft an article from them.</p></li><li><p>I read the draft with a note-taking window open beside it, jotting down my reactions line by line &#8212; what lands, what doesn&#8217;t, what&#8217;s missing, what&#8217;s wrong. When I hit the end, I paste my notes back in and wait for the revision.</p></li></ol><p>I repeat that loop about three times, until I run out of notes to make. At that point the piece is mine in the way that matters &#8212; not because I typed every word, but because every sentence has passed through my judgment at least once.</p><p>That loop is the whole game. It&#8217;s the difference between accepting the first draft and actually working the medium.</p><h2>What this would look like for songwriting</h2><p>If I applied this same process to songwriting, I wouldn&#8217;t feed a prompt to a model and take whatever came out. I&#8217;d want to bring my own craft <em>into</em> the loop.</p><p>Years ago I studied lyric writing with Pat Pattison &#8212; his structural approach to rhyme, prosody, and the relationship between a lyric&#8217;s form and its emotional payload. Those aren&#8217;t vague preferences; they&#8217;re closer to rules. I&#8217;d want to cast those Pattison rules into something like AI &#8220;learnings&#8221; &#8212; a lens the model has to write through, not just a suggestion it can politely ignore. Then I wouldn&#8217;t stop at the first pass. I&#8217;d go around the loop the same way I do with prose: react, push back, ask for variations, notice what rings false against my own ear, and refine.</p><p>I&#8217;d do the same thing with melody and music &#8212; a few passes, treating the AI as a source of inspiration and raw material to react against, not a finish line. The model proposes; I judge; we go again.</p><h2>The tool doesn&#8217;t have the taste</h2><p>That last part is the whole point. AI should help an artist arrive at their artistic vision <em>faster</em> &#8212; not hand them a vision they never had. It&#8217;s a tool. Nothing more mystical than that. A typewriter didn&#8217;t write better novels than a quill; it just let a writer who already had something to say get out of their own way faster. A junior co-writer doesn&#8217;t replace the senior one&#8217;s taste; they generate raw material and rough drafts for the senior writer to shape.</p><p>That&#8217;s what AI is, in the hands of someone who knows what they&#8217;re after: a fast, tireless, occasionally brilliant junior collaborator. It has no taste of its own to impose &#8212; only the taste you bring to the editing.</p><p>The slop isn&#8217;t a property of the technology. It&#8217;s what happens when nobody in the loop has taste, and nobody&#8217;s willing to go around a second time.</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.substack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6Jpq</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https://leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/ai-slop-vs-artistry?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[TDPL, BUPL, and the Trade-Off We Never Revisited]]></title><description><![CDATA[2026-08-31]]></description><link>https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Mon, 31 Aug 2026 20:50:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>There&#8217;s an old, slightly obscure acronym worth resurrecting: <strong>TDPL</strong>, &#8220;Top-Down Parsing Language.&#8221; It was coined by Aho and Ullman in <em>The Theory of Parsing, Translation and Compiling</em>, describing formal work Alexander Birman had done a couple years earlier under the name &#8220;TMG Schema.&#8221; TDPL &#8212; and its generalization, GTDPL &#8212; modeled the kind of backtracking recursive-descent parser that programmers had already been writing by hand.</p><p>Most of the parsers we actually learned in school, though, came from the other direction. YACC and its descendants are bottom-up. There&#8217;s no equally catchy acronym for that lineage, so let&#8217;s coin one to match: <strong>BUPL</strong>, &#8220;Bottom-Up Parsing Language.&#8221; It&#8217;s a fair pairing, because the two approaches aren&#8217;t just different algorithms &#8212; they carve up the space of expressible languages differently. BUPL-style parsers are built to handle context-free grammars. TDPL-style parsers, as it turns out, are strictly more powerful: GTDPL can recognize some languages that aren&#8217;t context-free at all.</p><p>That gap is the part I want to dwell on.</p><p>Context-free grammars were never chosen because they were the natural shape of the languages we wanted to describe. They were chosen because they were the shape we could <em>analyze</em> &#8212; tractably, on 1960s and 70s hardware, with the theory available at the time. CFGs are a technology-driven compromise, not a human-driven one. The rules people actually want to express &#8212; &#8220;this identifier must already be declared,&#8221; &#8220;indentation determines scope,&#8221; &#8220;this word means something different depending on what came before it&#8221; &#8212; are context-sensitive by nature. We just got very good at designing around that fact, and then forgot it was a workaround.</p><p>TDPL-style parsing didn&#8217;t disappear; it resurfaced as <strong>packrat parsing</strong> and PEG (parsing expression grammar) technology. Packrat parsers take the old backtracking recursive-descent idea and make it linear-time by memoizing every partial match. The result is a parser that can express things a CFG struggles with &#8212; longest-match rules, syntactic predicates, lookahead-sensitive grammar &#8212; in a single, readable grammar, without the contortions BUPL grammars require to fake context sensitivity.</p><p>The reason packrat parsing lost the popularity contest for so long comes down to one word: <em>slow</em>. Naive backtracking parsing can blow up combinatorially, and memoizing every rule at every position isn&#8217;t free &#8212; it trades time for space, aggressively. In the 20th century, that trade was a real cost. Memory was precious; cycles were precious. &#8220;Slow&#8221; meant something concrete and often disqualifying.</p><p>But &#8220;slow&#8221; in the 21st century is a different animal. We routinely throw gigabytes of RAM and billions of cycles per second at problems that would have been unthinkable to solve this way fifty years ago. A packrat parser&#8217;s memory appetite, once a dealbreaker, is now a rounding error on a phone. The trade-off that justified CFGs and bottom-up parsing was a trade-off against <em>scarcity</em>. We&#8217;re not scarce anymore, at least not in the way that mattered when the decision was made.</p><p>So it&#8217;s worth asking, plainly: if the constraint that shaped our parsing technology has largely dissolved, why are we still defaulting to the grammar formalism that constraint produced? Context-sensitive, TDPL-style, packrat-flavored parsing isn&#8217;t a curiosity from before the field &#8220;matured&#8221; &#8212; it may be the more honest match for how humans actually express structure. We just needed the hardware to catch up to the idea. It has.</p><h1>References</h1><p><a href="https://en.wikipedia.org/wiki/Packrat_parser">packrat parsing</a></p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.s. bstack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6J. q</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https:. /leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/tdpl-bupl-and-the-trade-off-we-never?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item><item><title><![CDATA[Experiment — Projectional Viewer]]></title><description><![CDATA[2026-08-26]]></description><link>https://programmingsimplicity.substack.com/p/experiment-projectional-viewer</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/experiment-projectional-viewer</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Wed, 26 Aug 2026 15:37:11 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!hhmN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Purpose</h2><p>Modern programming languages bury structure under implementation detail. The signal-to-noise ratio is too low &#8212; there&#8217;s too much <em>how</em> cluttering up the <em>what</em> &#8212; and that makes it hard to reason about anything beyond fairly simple problems.</p><p>This experiment asks whether implementation detail can be elided from code, rather than removed. The detail stays in the source; it&#8217;s just toggled out of view in the editor. The goal is a clearer picture of a solution&#8217;s structure, without having to wade through the mechanics of how that structure gets executed.</p><p>The immediate irritant was PEG (parsing expression grammar) libraries. I know grammars reasonably well, and most PEG implementations I&#8217;ve used smear the grammar itself under a layer of code for capturing and acting on matches during and after the parse. The grammar &#8212; the actual structure of what&#8217;s being recognized &#8212; disappears into the plumbing.</p><p>A full round-trip projectional editor, where you edit the elided view and it writes back to the source, is hard to build well. So this experiment settles for a one-way trip: elide the detail for reading, without trying to support editing the elided form. The question is whether that lesser goal is easy to reach and still worth having.</p><p>Underlying this is a way of treating a &#8220;grammar&#8221; as a DSL for pattern matching &#8212; one little language embedded in another. If eliding works here, it suggests a broader path: composing many small special-purpose languages into a single codebase, instead of forcing every concern through one general-purpose paradigm.</p><h2>Method</h2><p>I started from a small, real example: a phone-number grammar written in Rebol, implementation detail and all.</p><pre><code><code>parse "(416)555-1234" [
    "(" copy area 3 digits ")"
    copy exch 3 digits "-"
    copy line 4 digits
    (print rejoin [area "-" exch "-" line])
]</code></code></pre><p>The <code>copy area</code>, <code>copy exch</code>, <code>copy line</code>, and the trailing <code>(print rejoin ...)</code> block are all implementation detail &#8212; they&#8217;re about capturing values and doing something with them, not about the shape of a valid phone number. Stripped of that, the grammar itself is just:</p><pre><code><code>parse "(416)555-1234" [
    "(" 3 digits ")"
    3 digits "-"
    4 digits
]</code></code></pre><p>To get from one to the other automatically, I had Claude Sonnet 5 Code write an Emacs Lisp file, <code>pelide-view.el</code>, that shells the buffer (or region) out to a small pipeline built on T2T: an OhmJS parser followed by RWR rewrite semantics. The pipeline reads the annotated source and hands back the elided grammar, which the elisp code then displays back in the editor.</p><p>The grammar for the pipeline&#8217;s parser (<code>pelide.ohm</code>) and its rewrite rules (<code>pelide.rwr</code>) are in the appendix, as is the generated <code>pelide-view.el</code>. The rest of the code lives in the <a href="https://github.com/guitarvydas/rebol">github repo</a>.</p><p>Given the time available, I only ran this against the one example above. Whether it generalizes to messier grammars is an open question.</p><p>To reproduce it: eval and load <code>pelide-view.el</code>, load <code>ex.r</code> into Emacs, then hit <code>C-c p t</code>to toggle into the elided view, and again to toggle back.</p><h2>Observations</h2><p>The pipeline did what it was supposed to: it elided the <code>copy</code> clauses and the trailing action block, and left behind the bare grammar shown above. Toggling back and forth in Emacs worked as expected.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!hhmN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!hhmN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 424w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 848w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 1272w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!hhmN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png" width="486" height="340" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/afebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:340,&quot;width&quot;:486,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!hhmN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 424w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 848w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 1272w, https://substackcdn.com/image/fetch/$s_!hhmN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fafebce7e-ce9b-4a0a-9245-0ec36a6c9219_486x340.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HfrX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HfrX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 424w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 848w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 1272w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 1456w" sizes="auto, 100vw"><img src="https://substackcdn.com/image/fetch/$s_!HfrX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png" width="486" height="340" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:340,&quot;width&quot;:486,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HfrX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 424w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 848w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 1272w, https://substackcdn.com/image/fetch/$s_!HfrX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5b748079-bab5-4602-9d1c-8f722ab2d013_486x340.png 1456w" sizes="auto, 100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image buttonBase-GK1x3M"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg" class="icon-noB79L"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image buttonBase-GK1x3M"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2 icon-noB79L"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Under the hood, this is my T2T transmogrifier technology at work: OhmJS does the parsing, and a custom DSL I call RWR does the filtering, rewriting, and eliding. The result is handed back to Emacs for read-only viewing.</p><h2>Conclusions</h2><p>Even from this one example, the elided grammar reads better than the annotated original &#8212; it&#8217;s easier to see, at a glance, what pattern is actually being matched. That&#8217;s a good sign for the general idea.</p><p>It&#8217;s a small enough result that I&#8217;d want to try it against more grammars before drawing strong conclusions, but it seems worth pursuing. A natural next step would be writing elision grammars for other, more current PEG implementations &#8212; Lua&#8217;s and Janet&#8217;s come to mind.</p><p>This also suggests that using T2T as a filter is fast and usable enough on modern hardware &#8212; the lag when toggling is almost imperceptible. I don&#8217;t expect that to change as long as we keep the little languages little: there&#8217;s no need to write grammars for Turing-complete behemoths here, since small code snippets are all that&#8217;s required.</p><p>The experiment also points at a follow-on problem worth tackling: writing grammars that can detect the presence of elidable code within a larger file, rather than assuming the whole file is a single elidable unit.</p><h3>Further ideas: composing many little languages instead of one paradigm</h3><p>This experiment is one piece of a larger question: how do you let many small DSLs coexist inside a single project, instead of forcing everything through one general-purpose language?</p><p>One direction already underway is transmogrification rather than elision: writing in a small meta-language and generating standard target languages from it. The PBP kernel is built this way &#8212; three source files (<code>0d.rt</code>, <code>stock.rt</code>, <code>jit.rt</code>) written in the <code>.rt</code> meta-language, currently transmogrified into Python, JavaScript, and Common Lisp. The transmogrifier itself works (see the <a href="https://github.com/guitarvydas/pbp/tree/main/kernel">kernel repo</a> for details), but I haven&#8217;t yet run the projectional-viewing experiment against it.</p><p>A further-out direction is diagrammatic programming: generating code snippets from a diagrammatic programming language (DPL) rather than text. There are small, early examples of this using drawio &#8212; a <a href="https://github.com/guitarvydas/dtree">decision-tree repo</a> and a <a href="https://github.com/guitarvydas/sm-pbp">state-machine repo</a> &#8212; but again, the elision experiment hasn&#8217;t been done against them, and it isn&#8217;t even clear yet how drawio would couple to Emacs.</p><div><hr></div><h2>Appendix &#8212; Generated <code>pellide-view.el</code> Code</h2><pre><code><code>;;; pellide-view.el --- Shell out to PELLIDE for a condensed view -*-
;;; lexical-binding: t; -*-

(defgroup pellide-view nil
  "Shell buffer/region out to the PELLIDE tool for a condensed view."
  :group 'tools)

(defcustom pellide-view-command "pellide"
  "Shell command to run. Reads source on stdin, writes condensed view on stdout."
  :type 'string)

(defcustom pellide-view-command-args nil
  "Extra CLI args to pass to `pellide-view-command'."
  :type '(repeat string))

(defvar-local pellide-view--original nil
  "Buffer-local stash of the pre-toggle source, used by `pellide-view-toggle-in-place'.")

(defun pellide-view--run (text)
  "Pipe TEXT through `pellide-view-command'; return its stdout as a string."
  (with-temp-buffer
    (insert text)
    (let ((exit-code (apply #'call-process-region
                             (point-min) (point-max)
                             pellide-view-command t t nil
                             pellide-view-command-args)))
      (unless (zerop exit-code)
        (error "%s exited %s: %s" pellide-view-command exit-code (buffer-string)))
      (buffer-string))))

;;;###autoload
(defun pellide-view-region-or-buffer ()
  "Shell the region (or whole buffer) out to PELLIDE; show the result read-only
in a `*PELLIDE View*' side window. Non-destructive -- source buffer is untouched."
  (interactive)
  (let* ((text (if (use-region-p)
                    (buffer-substring-no-properties (region-beginning) (region-end))
                  (buffer-string)))
         (mode major-mode)
         (result (pellide-view--run text))
         (out-buf (get-buffer-create "*PELLIDE View*")))
    (with-current-buffer out-buf
      (let ((inhibit-read-only t))
        (erase-buffer)
        (insert result)
        (funcall mode)
        (setq buffer-read-only t)))
    (display-buffer out-buf
                     '((display-buffer-reuse-window display-buffer-in-side-window)
                       (side . right) (window-width . 0.5)))))

;;;###autoload
(defun pellide-view-toggle-in-place ()
  "Toggle the CURRENT buffer's text between source and PELLIDE's condensed view.
Destructive: only safe if you don't edit while in the condensed view --
PELLIDE is not assumed invertible, so toggling back just restores the stashed
original, discarding any edits made to the condensed text."
  (interactive)
  (if pellide-view--original
      (let ((orig pellide-view--original)
            (modified (buffer-modified-p)))
        (setq pellide-view--original nil)
    (setq buffer-read-only nil)
        (erase-buffer)
        (insert orig)
        (set-buffer-modified-p modified))
    (let ((orig (buffer-string))
          (modified (buffer-modified-p)))
      (erase-buffer)
      (insert (pellide-view--run orig))
      (setq buffer-read-only t)
      (setq pellide-view--original orig)
      (set-buffer-modified-p modified))))

(global-set-key (kbd "C-c p v") #'pellide-view-region-or-buffer)
(global-set-key (kbd "C-c p t") #'pellide-view-toggle-in-place)

(setq pellide-view-command "~/projects/rebol/pellide")

(provide 'pellide-view)</code></code></pre><h2>Appendix &#8212; T2T Grammar <code>pelide.ohm</code></h2><pre><code><code>pelide {
  main = "parse" spaces item spaces pGrammar spaces
  item = string | id
  string = "\"" (~"\"" any)+ "\""
  id = letter idtail*
  idtail = alnum
  pGrammar = "[" grammarItem+ "]"
  grammarItem =
    | space -- space
    | string -- string
    | copyItem -- copy
    | topLevelActionItem -- action
    | ~"[" ~"]" ~"(" ~")" ~"copy" ~space ~string any -- other
  topLevelActionItem = "(" spaces actionItem+ spaces ")"
  copyItem = "copy" spaces id spaces int? spaces id
  actionItem = 
    | "(" spaces actionItem+ spaces ")" -- recparen
    | "[" spaces actionItem+ spaces "]" -- recbrack
    | ~"]" ~"[" ~"(" ~")" ~"copy" any -- other
  int = digit+
}</code></code></pre><h2>Appendix &#8212; T2T Rewrite Rules <code>pelide.rwr</code></h2><pre><code><code>%rewrite pelide {
  main [_parse ws1 item ws2 pGrammar ws3] = &#8219;parse&#171;ws1&#187;&#171;item&#187;&#171;ws2&#187;&#171;pGrammar&#187;&#171;ws3&#187;&#8217;
  item [x] = &#8219;&#171;x&#187;&#8217;
  string [lq cs+ rq] = &#8219;&#171;lq&#187;&#171;cs&#187;&#171;rq&#187;&#8217;
  id [letter idtail*] = &#8219;&#171;letter&#187;&#171;idtail&#187;&#8217;
  idtail [alnum] = &#8219;&#171;alnum&#187;&#8217;
  pGrammar [lb item+ rb] = &#8219;&#171;lb&#187;&#171;item&#187;&#171;rb&#187;&#8217;
  grammarItem_space [s] =&#8219;&#171;s&#187;&#8217;
  grammarItem_string [s] =&#8219;&#171;s&#187;&#8217;
  grammarItem_copy [x] =&#8219;&#171;x&#187;&#8217;
  grammarItem_action [x] =&#8219;&#171;x&#187;&#8217;
  grammarItem_other [x] = &#8219;&#171;x&#187;&#8217;
  topLevelActionItem [lp ws1 A+ ws2 rp] = &#8219;&#8217;
  copyItem [_copy ws1 id ws2 int? ws3 id2] = &#8219;&#171;int&#187;&#171;ws3&#187;&#171;id2&#187;&#8217;
  actionItem_recparen [lp ws1 a+ ws2 rp] =&#8219;&#8217;
  actionItem_recbrack [lb ws2 a+ ws3 rb] =&#8219;&#8217;
  actionItem_other [x] =&#8219;&#8217;
  int [digit+] = &#8219;&#171;digit&#187;&#8217;
}</code></code></pre><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.s. bstack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6J. q</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https:. /leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a><br><em>Notes and Back of the Napkin Scribbles</em>: <a href="https://github.com/guitarvydas/napkin-notes%5D">https://github.com/guitarvydas/napkin-notes</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/experiment-projectional-viewer?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/experiment-projectional-viewer?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/experiment-projectional-viewer/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/experiment-projectional-viewer/comments"><span>Leave a comment</span></a></p><p></p>]]></content:encoded></item><item><title><![CDATA[Simplicity Is in the Eye of the Beholder]]></title><description><![CDATA[2026-08-18]]></description><link>https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder</link><guid isPermaLink="false">https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder</guid><dc:creator><![CDATA[Paul Tarvydas]]></dc:creator><pubDate>Fri, 21 Aug 2026 14:03:43 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!eSyZ!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d69eba9-d5d3-4387-a046-9b881b00bd45_131x131.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>&#8220;General Purpose Languages&#8221; promise to make programming easier by covering every case. What they actually do is force everyone, regardless of what they&#8217;re building, to adopt the same pile of complexity &#8212; instead of letting each of us go looking for the simplicity that actually fits our problem. I don&#8217;t think that&#8217;s an accident of language design. I think it&#8217;s what happens when you forget that &#8220;simple&#8221; was never one thing to begin with.</p><h1>What Is Simplicity?</h1><p>Ask most engineers what &#8220;simple&#8221; means and you&#8217;ll get some version of &#8220;easy to understand&#8221; or &#8220;not complicated.&#8221; That&#8217;s circular &#8212; it just restates the word. Here&#8217;s a sharper definition, one that actually does work: <strong>simplicity is a lack of nuance.</strong></p><p>That sounds backwards. We&#8217;re trained to admire nuance. A &#8220;nuanced&#8221; argument is a sophisticated one; a nuanced understanding is a deep one. But nuance is also where complexity hides. Every special case, every &#8220;well, except when,&#8221; every extra rule bolted on to handle one more scenario &#8212; that&#8217;s nuance accumulating. A system with a lot of nuance is a system with a lot of surface area for things to go wrong, and a lot of surface area a newcomer has to learn before they can be trusted with it.</p><p>But there&#8217;s a second, harder truth sitting underneath the first one: simplicity isn&#8217;t a property of the thing itself. It&#8217;s a property of the thing <em>relative to what you&#8217;re trying to do with it</em>. Simplicity is in the eye of the beholder.</p><p>If you&#8217;re an accountant, a spreadsheet is about as simple as tools get &#8212; rows, columns, formulas, done. But if you&#8217;re trying to analyze a program for self-consistency and correctness, a spreadsheet stops being simple the moment you try to use it for that job. It doesn&#8217;t have the nuance to represent the edge cases correctness analysis actually needs, so you end up bolting nuance on by hand until it can &#8212; at which point it&#8217;s not the simple tool you started with anymore.</p><p>The same split shows up in language design. If you&#8217;re trying to invent a new software system, garbage collection is a genuine boon &#8212; it lets you stop thinking about low-level memory management and put your attention on the design instead, and deep type checking mostly gets in your way while you&#8217;re still figuring out what you&#8217;re building. But if you&#8217;re production-engineering that system afterward &#8212; dotting every i, crossing every t, squeezing real efficiency out of the design &#8212; the opposite is true. Now you want to get rid of generalized garbage collection in favor of memory management tuned to exactly this project, and you want as much type checking as you can get, because that&#8217;s what catches the edge cases before they ship. A language that makes deep type checking effortless is &#8220;simple&#8221; for that job. A language that lets you manipulate memory in excruciating detail, while still checking that every operation is self-consistent and safe, is &#8220;simple&#8221; for that job too &#8212; a different job, a different simplicity.</p><p>Physics has a name for this kind of move: much-greater-than (<code>&gt;&gt;</code>) analysis. You look at a system, decide which effects dominate in the regime you actually care about, and drop everything that&#8217;s small by comparison. It&#8217;s how you get a spherical cow: an idealization that&#8217;s genuinely useful for the question in front of you, and genuinely wrong the moment you forget it was only ever an idealization of one regime. The discipline isn&#8217;t in finding the simplification &#8212; it&#8217;s in remembering which domain it&#8217;s valid for, and knowing that you&#8217;ll eventually need to superimpose several such simplifications, each valid in its own regime, to get back something closer to the full picture.</p><p>I think we&#8217;ve largely forgotten that our dominant notation for programming &#8212; the functional one &#8212; is exactly this kind of simplification. It was built for a specific regime: analyzing programs, proving things about them, reasoning about what they compute. It was not built for designing them, and it was not built for controlling machines. Most of what we actually mean by &#8220;programming,&#8221; in practice, is writing software that controls a machine &#8212; I/O, timing, hardware, concurrency, the physical world leaking in at the edges &#8212; and that&#8217;s a domain the functional simplification was never valid for. We inherited the <code>&gt;&gt;</code> analysis, forgot it was one, and started treating a tool for analyzing programs as though it were the definition of what a program is.</p><h1>Examples of Simplicity</h1><p>With that caveat in front of you &#8212; that every example below is simple <em>for a purpose</em>, not simple in some absolute sense &#8212; here are some cases where someone found the edges of a domain and built a notation that fit only inside them.</p><p><strong>UNIX</strong> made this move at the level of the whole operating system. Devices, pipes, sockets, regular data on disk &#8212; wildly different things &#8212; all get normalized to one kind of object: a file, addressed through a file descriptor. You don&#8217;t need a special API for talking to a printer versus reading a config versus piping output from one program into another. It&#8217;s all <code>read()</code> and <code>write()</code> on a descriptor. That single normalization is why shell pipelines work at all, and it&#8217;s a textbook case of stripping nuance out of an interface until only one shape is left.</p><p><strong>Forth Haiku</strong> shows the same move at a much smaller scale. A few lines of dense, unglamorous Forth notation can expand into a hundred lines of GLSL shader code. The notation is small because it says exactly what needs to be said and nothing else &#8212; the complexity of the output is real, but it isn&#8217;t paid for in the complexity of the source.</p><p><strong>Forth</strong> itself and <strong>Lisp 1.5</strong> both make this trade at the language-design level: an almost absurdly small set of primitives (words and a stack in Forth&#8217;s case, s-expressions and a handful of special forms in Lisp&#8217;s) that compose into everything else. Neither language tries to have a construct for every situation. They have one or two constructs and trust you to build the rest.</p><p><strong>BNF</strong>, and its descendant eBNF, do for grammars what UNIX did for I/O: instead of describing &#8220;how to parse this particular language,&#8221; they give you one small notation for describing <em>any</em> string-matching grammar. Once you know BNF, you can read the shape of a language you&#8217;ve never seen before, because the notation for describing structure is separated from the structure itself.</p><p><strong>CPU opcodes</strong> are simplicity imposed on physics. Underneath every instruction is a genuine rat&#8217;s nest of electronics &#8212; gates, latches, timing &#8212; but the opcode gives you one normalized unit of action (&#8220;add these two registers&#8221;) instead of asking you to reason about the rat&#8217;s nest directly. It&#8217;s the same move UNIX makes with files: pick one small vocabulary and hide the mess behind it.</p><p><strong>Feynman diagrams</strong> did this for particle physics. Before them, interactions were described with sprawling functional equations. Feynman gave physicists a small set of lines and vertices that could be composed like a notation, and the diagrams could be read and manipulated almost visually instead of algebraically. Complicated interactions became combinations of a few simple pictures.</p><p><strong>K&amp;R C</strong>, compared to the ANSI C that came after it, is a smaller and blunter language. It defined every routine as a &#8220;function,&#8221; full stop, and it shipped with a type-checking model that was good enough to build real systems software without trying to be good enough for everything. It didn&#8217;t cover every case. That was the point &#8212; it covered <em>enough</em> cases, and refused the temptation to keep adding nuance to cover the rest.</p><p>UNIX itself makes the point sharper. It wasn&#8217;t invented in C &#8212; it was invented in assembler, and stayed that way until Version 4 rewrote the kernel in C in 1973. Assembler was &#8220;simple enough&#8221; for inventing the core of an operating system; K&amp;R C came later, as a step toward production-engineering and extending what the original, simpler constructs had already proven out. Ivan Sutherland&#8217;s Sketchpad tells the same story from computer graphics &#8212; also built in assembler, also invented rather than production-engineered. Asked how he&#8217;d managed to build the first interactive graphics program, the first non-procedural programming language, and the first object-oriented software system in a single year, Sutherland said, &#8220;Well, I didn&#8217;t know it was hard.&#8221; Assembler was &#8220;simple&#8221; for what he was doing &#8212; not because it had fewer nuances than a high-level language would have, but because inventing didn&#8217;t yet need the nuances a high-level language exists to manage.</p><p><strong>Prolog</strong>, and relational programming generally, buys simplicity of expression at a real cost: you describe relationships instead of steps, and the language figures out how to satisfy them, at the cost of runtime performance. Simplicity, here, is a trade of your cognitive load for CPU cycles &#8212; not a free lunch, just a different bill.</p><p><strong>Children&#8217;s LEGO blocks</strong> are maybe the purest physical example. There&#8217;s exactly one type of connector &#8212; a round peg of fixed dimensions &#8212; and every block uses it. No block is tightly coupled to any other specific block; anything connects to anything. That single, boring, unglamorous decision is why a five-year-old can build things an engineer would call &#8220;extensible&#8221; without ever hearing the word.</p><p><strong>Multi-stage computation</strong> &#8212; pipelines where each stage does one thing and does it well &#8212; applies the same idea to how we structure programs, not just interfaces. When a stage only has to do one job, the person writing it can actually think about that job deeply, instead of splitting their attention across five concerns and reaching for workarounds to keep them from tangling.</p><h1>Examples of Anti-Simplicity</h1><p>The failure mode isn&#8217;t &#8220;trying and failing to be simple.&#8221; It&#8217;s usually nuance creeping in disguised as generality &#8212; someone reaching to cover every domain at once instead of admitting which one they&#8217;re actually in.</p><p><strong>Overuse of the functional paradigm</strong> is the clearest case. Forcing every problem into the shape of a mathematical function creates workarounds wherever the problem doesn&#8217;t naturally fit that shape, and a lot of real problems don&#8217;t. This isn&#8217;t an accident of language design; it&#8217;s a hangover from using CPUs to automate <em>mathematics</em> first, and programming second. Most languages are built around &#8220;functions&#8221; even though the CPUs underneath them don&#8217;t implement functions at all &#8212; you need extra code just to turn a subroutine into something that behaves like one. We inherited a nuance we didn&#8217;t have to have.</p><p><strong>User-defined types</strong> are another. Machines fundamentally have only a couple of types &#8212; a bit, and a pointer to a bit, optimized into bytes for convenience. Every user-defined type is a new layer of invented structure sitting on top of that, and each layer needs its own type-checking rules. It&#8217;s nuance stacked on nuance, and it&#8217;s why type systems keep growing more elaborate instead of settling down.</p><p><strong>Using &#8220;functions&#8221; to describe asynchronous parts</strong> is the sharpest case, because it&#8217;s a category error dressed up as convenience. A function call is synchronous by nature &#8212; the caller blocks and waits for the callee to answer. Asynchronous parts are, definitionally, not that. Describing async behavior with a synchronous vocabulary doesn&#8217;t just add nuance &#8212; it adds nuance that actively lies about how the system behaves.</p><p><strong>BNF</strong>, held up above as a genuine simplification, is also a cautionary tale in how a simplification gets captured by one purpose and then mistaken for having only that purpose. Almost immediately after BNF appeared, its main use became building the same kind of thing over and over: niggly, bottom-up, over-burdened parser state machines that are &#8220;simple&#8221; only if your job is shipping production-quality parsers. That&#8217;s a narrow reading of a notation good for a lot more than that &#8212; specifying string matchers for programming-tool development, for instance, matching recursive text structures in ways plain regular expressions can&#8217;t easily reach. PEG &#8212; formalized by Bryan Ford in the mid-2000s, with OhmJS a well-known later implementation &#8212; finally gave recursive-descent, top-down parsing a first-class alternative to BNF&#8217;s bottom-up habits, but even PEG is still mostly discussed as competition for production parser generators, not as a door into a different way of building programming tools altogether.</p><p><strong>Operating systems</strong> are the anti-simplicity example that&#8217;s easiest to miss, because we&#8217;ve stopped being able to imagine programming without one. Step back far enough, though, and the concept isn&#8217;t actually necessary &#8212; early gaming systems are a working proof of that. A game cartridge plugged into hardware that had no operating system on it at all, and none of the complicated, brittle fluff that comes bundled with a modern OS was needed to make that work.</p><p>The original intent was reasonable: supply common libraries of code so program development goes faster. But instead of building those libraries the way LEGO blocks are built, joined through one small interchangeable connector instead of welded tightly to each other, we built them inside the functional paradigm, and got a huge ball of over-coupled functionality that ships to every user whether they need 2% of it or 90%, and gets cherry-picked at runtime. Instead of production-engineering individual applications, we kept adding nuance and complication to the libraries themselves, hoping a big enough general-purpose pile of code could solve every production problem in advance. And because the functional paradigm was never suited to expressing asynchronous operation or the composition of programs in the first place, that pile keeps growing without closing the gap &#8212; getting closer to the asymptote, never reaching it.</p><p>Operating systems genuinely make software development simpler, and that part is worth keeping. Where the reasoning breaks down is the next step: shipping that same sprawling, general-purpose pile whole-hog to every end user&#8217;s machine. Underneath the megabytes and gigabytes, an operating system is mostly a much more complicated replacement for hardware that used to be a rotary switch or a game cartridge &#8212; simpler to use, simpler to reason about, and not carrying around code for every possibility it will never be asked to serve.</p><p>GPUs are one production-engineering answer to a simple problem: how do you provide a lump of code for every pixel on a screen? Maybe the simpler answer &#8212; in hardware and in software &#8212; would have been one small CPU, with its own private memory, per pixel.</p><h1>How Do You Teach Simplicity?</h1><p>I don&#8217;t know yet.</p><p>What I notice, looking back over the examples above, is that they all seem to come from the same place: <a href="https://guitarvydas.github.io/2022/05/25/Programming-First-Principles-Thinking.html">first-principles thinking</a> &#8212; refusing to solve a problem with the first niggly fix that comes to mind, and instead asking what the smallest true thing underneath it actually is, <em>for the regime you&#8217;re actually in</em>.</p><p>In my first physics course at university, before we were allowed to solve a single problem, we were taught to invent notations for the problem domain &#8212; essentially small, purpose-built DSLs &#8212; and only then start reasoning inside them. That&#8217;s <code>&gt;&gt;</code> analysis again, just applied to notation instead of forces: decide what regime you&#8217;re in, build the smallest language that&#8217;s valid there, and don&#8217;t pretend it generalizes further than it does.</p><p>I don&#8217;t have a tidy answer for how you teach that skill. Pattern-matching a problem to its right regime seems to take taste as much as method. But I&#8217;m fairly sure teaching it starts by refusing the premise I opened with &#8212; that one notation, sufficiently general, could ever replace it.</p><p>I&#8217;ve written about this before, if you want to keep pulling on the thread:</p><ul><li><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cows-of-programming?r=1egdky">The Spherical Cows of Programming</a></p></li><li><p><a href="https://programmingsimplicity.substack.com/p/the-wrong-spherical-cow-first-principles?r=1egdky">The Wrong Spherical Cow &#8212; First Principles of Parts Based Programming</a></p></li><li><p><a href="https://programmingsimplicity.substack.com/p/the-spherical-cow-we-forgot-we-were?r=1egdky">The Case for Composable Notations (1 of 5) The Spherical Cow We Forgot We Were Riding</a></p></li></ul><h1>References</h1><p><a href="https://www.theregister.com/on-prem/2025/12/23/unix-v4-tape-successfully-recovered/2701023">Unix V4 Tape Successfully Recovered</a><br><a href="https://forthsalon.appspot.com/">Forth Haiku Salon</a><br><a href="https://programmingsimplicity.substack.com/p/what-ive-learned-from-forth-haiku?r=1egdky">What I&#8217;ve Learned From Forth Haiku Thus Far</a> (see, also, the substack listed below for articles related to Forth Haiku)<br>OhmJS</p><h1>See Also</h1><p><em>Email</em>: <a href="mailto:ptcomputingsimplicity@gmail.com">ptcomputingsimplicity@gmail.com</a><br><em>Substack</em>: <a href="http://paultarvydas.substack.com/">paultarvydas.s. bstack.com</a><br><em>Videos</em>: <a href="https://www.youtube.com/@programmingsimplicity2980">https://www. youtube.com/@programmingsimplicity2980</a><br><em>Discord</em>: <a href="https://discord.gg/65YZUh6Jpq">https://discord.gg/65YZUh6J. q</a><br><em>Leanpub</em>: <a href="https://leanpub.com/u/paul-tarvydas">https:. /leanpub.com/u/paul-tarvydas</a><br><em>Twitter</em>: @paul_tarvydas<br><em>Bluesky:</em> @paultarvydas.bsky.social<br><em>Mastodon:</em> @paultarvydas<br><em>(earlier) Blog:</em> <a href="http://guitarvydas.github.io/">guitarvydas.github.io</a><br><em>References:</em> <a href="https://guitarvydas.github.io/2024/01/06/References.html">https://guitarvydas.github.io/2024/01/06/References.html</a></p><p><em>Paid subscriptions are a voluntary way to support this work.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder/comments&quot;,&quot;text&quot;:&quot;Leave a comment&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder/comments"><span>Leave a comment</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/p/simplicity-is-in-the-eye-of-the-beholder?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://programmingsimplicity.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://programmingsimplicity.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item></channel></rss>