<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jon Trauntvein on Medium]]></title>
        <description><![CDATA[Stories by Jon Trauntvein on Medium]]></description>
        <link>https://medium.com/@jtrauntvein?source=rss-f21cdd3bade9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*w5zkDYxesI_XYylH.</url>
            <title>Stories by Jon Trauntvein on Medium</title>
            <link>https://medium.com/@jtrauntvein?source=rss-f21cdd3bade9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 21:28:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jtrauntvein/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Cry for Help?]]></title>
            <link>https://medium.com/know-thyself-heal-thyself/a-cry-for-help-32d04b4b11cc?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/32d04b4b11cc</guid>
            <category><![CDATA[know-thyself-heal-thyself]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[healing-journey]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[depression]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 16:36:05 GMT</pubDate>
            <atom:updated>2026-02-04T16:36:05.011Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Spontaneous Reflection on Ruin</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuOxPK9PFRpZjuhiKKCEgw.png" /><figcaption>Spring Crocuses In Smithfield Canyon, Cache Valley, Utah — photo taken by author</figcaption></figure><p>I am not normally this ill prepared to write. My perpetual habit is to scribble. To write over and over again all the while dissecting myself with my thoughts and scorning myself for my weakness. I’ve lost count of the number of times that I have started on something that felt meaningful only to lay it aside as maudlin and self-centred. When I come too near to raw emotion my mind and body rebel and it isn’t long until those uncomfortable feelings are slashed with scorn and buried in bloody soil waiting for the next rain to wash the coverlet away. But today I feel desperate and all I can see and hear is ruin rising around me. I long to find someone to whom I can talk without feeling like I am laying too heavy a burden at their feet and I, the prince of introverts, find myself wanting to reach out to utter strangers as my frail craft barely tops monstrous waves and near founders in the troughs. And so I am taking a chance hoping against hope that my pain and tears can somehow be translated to prayer.</p><p>I am the type of person who has always longed for yet never quite achieved the dream of stability. I am uncomfortable with change and have been happiest when I have achieved the increasingly rare mental state where my whole being is drawn into the fierce joy of creation. Yet, entirely without my permission, the world continues to spin and change beneath my feet. The places where I once found peace and solace are buried forever beneath urban sprawl and noise. The deep snows and even deeper cold of my childhood winters have been supplanted with barren lawns and fields and skeletal trees. Too often now I see patches of brown and dying evergreens in my journeys through the mountains because the winter cold is no longer sufficient to keep the pine-borer beetles at bay. Altogether too often do I wake up to see my beloved valley air choked in the smoke of wildfires that burn out of control hundreds of miles away destroying homes, hopes, dreams, and habitat in their relentless march through the mountains and feel the cold fist of fear in my heart and sorrow for the hurt to the earth inflicted by the utterly callous carelessness of her children. I see the mountain snowpack arrive later and disappear sooner. I see rivers and creeks run lowly through their beds as the watershed shrinks and we take and take without the thought of once giving back. I see the Great Salt Lake wither as she is choked in poisonous dust that will soon lie exposed in vast, flat beds to be picked up by the winds and carried into the homes and breath of the people around her. This much change is too much and too drastic for one lifetime and I feel utterly worn down. Oh, how much do I long to hear the racket of Canada geese and Sandhill cranes returning from their long migration or to hear the sweet songs of robins and meadowlarks and my heart is broken with the horror of the thought that these small things which have so often brought me joy and solace may vanish into the noisome silence of endless traffic and barren roads littered with the corpses of those creatures with whom I have always shared my home.</p><p>This all wouldn’t be so painful if I didn’t feel so utterly alone and helpless. I have chosen now for many years to run my errands and perform my daily commute by bicycle. I do this for many reasons: I need the physical effort to keep the shadows at bay; I suffer from severe anxiety in traffic and am too often transformed into a raging monster; I want to feel like I am part of a solution rather than a passive contributor to the ruin of all that I love. Riding a bike leaves you utterly exposed to the world around you. The fierce heat of summer that makes the sweat sting my eyes; the cold fog of winter that threatens to render my eyeglasses translucent; so many things make me feel that I am part of something greater than my pathetic self and I revel in this. There is a darker side that stings. I often see the bodies of birds: ducks, robins, pheasants… so many lifeless on the side of the road or smashed cruelly into the tarmac by heedless humanity in their infernal machines. Every single one of these encounters shakes me to the core as I think of the loss of blood and life that accompanies our meaningless “progress”. It seems that I am the only one who notices these things. People rush by in their cars at unsafe speeds completely and literally isolated from the world around them with minds that are obsessed with ceaseless activity that is too often meaningless. I wonder if they ever see or notice the beauty of the sun rising from behind the eastern mountains or the winter moonlight glistening over the snow covered valley floor. I feel like there is no one with whom I can share my delight at the long shadows thrown across the stark white ridges of the Wellsville Mountains by the low winter sun. Increasingly, I wonder if there is anyone who cares about the ruin that seems to stalk us daily. More and more, it seems as if we no longer even care about neighbours and their hopes, pains, and fears nor they about us. It feels as if goodness and life are slowly being leached from the world and all that I can do is to hopelessly watch and witness.</p><p>I would feel some hope if I could see evidence of efforts toward positive change instead of the steady stream of vitriol and hate that has come to dominate our public discourse. It would help if I didn’t have to watch those who would call themselves our leaders openly spurn calls for reform and improvement as they wallow in a cesspool of effluent and corruption. Can they not hear the groans of a tortured planet beneath their heels or even recognise the profound changes that have been wrought in a period far shorter than their life times? And why do so many about me pay them heed? These merciless daemons hold sway at least in part because many who I count as friends and neighbours voted to put them where they are. I am astounded by the many who I thought to be sincere in their devotion openly support the sort of monsters and their actions that would make Jesus weep. Yet they seem to be utterly oblivious to and silent about the tide of evil that is engulfing all of us. Am I the one who is wrong? Is my mind too easily overwhelmed about things that stronger people shrug off? Am I in reality the apostate? Or are my dark visions merely a shadow of the creeping evil that stalks the whole world?</p><p>So why am I writing this pitiful lament and seeming call for help? I have to believe that there is a better way. I am forced to cling to the hope that people the world over can learn to lay their meaningless differences aside and learn to rejoice in the endless beauty and diversity that still fills the world. I hear a faint whisper in the darkness that tells me that I am not alone; that there are others around the world that may read these words and not dismiss them as meaningless whinging; that they may feel and share my pain, my fears for the future, and, even more precious, my hope that, even now, we can unite in our strength and diversity and somehow bring sanity into a world that daily makes less sense.</p><p>What is most sorely needed now is a new type of revolution: not a revolution of bullets and shouting for there is already too much blood staining the earth and crying towards the heavens for justice but a revolution of the heart. We need a change that will allow us finally to put aside our factions and difference. We need to stop shouting and begin listening to one another. We all need to recognise the humanity, goodness, and decency in those around us and the common hopes that I know that we all share for peace in our families and a brightness of hope for our children’s future. We need to channel our collective wills and work toward a path of healing. We need to stop in our hurried lives and simply soak in and feel gratitude for the beauty of nature that still surrounds us. We need to set aside our weapons of war and economy and push to the side those who seek only to ruin that which is still good in the world and profit from its destruction. We need to finally put aside the fear that drives us and cling to one another with hope and faith. We need to finally own the eternal truth that a fellow human can look, believe, think, and feel differently than we do and that is perfectly acceptable; that our differences and diversity can make us stronger; that children now struggling for life in dingy favelas can have a better life because we have chosen to act and work together.</p><p>Is this all a pleasant dream that shatters in the cruel face of reality? I would be dishonest if I didn’t admit that possibility but I cannot continue to live in a world that lurches drunkenly toward the abyss of ruin and I don’t think that dark future has to be foreordained and inevitable. I have to believe that there is a better way that lies in reach of the hearts of humanity across the world. I have to believe that tears and prayers alone are not enough; that somehow, my weak actions and work can budge the stuck moral compass of our leadership at least in some small way; and that there are those who will read these words and perhaps feel a glimmer of hope or at least a solace in not being utterly alone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32d04b4b11cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/know-thyself-heal-thyself/a-cry-for-help-32d04b4b11cc">A Cry for Help?</a> was originally published in <a href="https://medium.com/know-thyself-heal-thyself">Know Thyself, Heal Thyself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fascism and What To Do About It]]></title>
            <link>https://medium.com/@jtrauntvein/fascism-and-what-to-do-about-it-09f41e9acc19?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/09f41e9acc19</guid>
            <category><![CDATA[personal-choice]]></category>
            <category><![CDATA[fascism]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Mon, 27 Jan 2025 02:29:28 GMT</pubDate>
            <atom:updated>2025-01-27T02:29:28.059Z</atom:updated>
            <content:encoded><![CDATA[<h4>Avoiding the Sins of our Past</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HoJ-Kx1fehTzm2w5-USOrA.jpeg" /><figcaption>Raising the Flag on Iwo Jima taken 23 February 1945 by Joe Rosenthal of Associated Press</figcaption></figure><p>There is one picture from Monday 20 January 2025 that sticks in my mind and in my craw. It is that of Musk, Bezos, Zuckerberg, and other self-appointed captains of our economy given a place of honour at a ceremony that is itself a travesty of everything that an inauguration ought to be. They are looking pleased as they gaze upon the stooge that they bought and we all shall pay for. There are certain images that somehow capture the spirit of the occasion on which they were taken. There is the heroic image of US Marines raising the US flag atop the volcanic Mount Suribachi during the battle for Iwo Jima. There is a photo of Martin Luther King Jr standing before a vast crowd from the Lincoln Memorial as he gave a speech of his dream for a better nation and world. There are hollow eyes and emaciated faces of the fortunate few who managed to survive the Nazi death camps. There are images of the bodies of murdered people stacked naked like cordwood after literally everything was stripped from them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*D_-CA7uu68y-8CqQaR2oHg.jpeg" /><figcaption>National Park Service — Martin Luther King Jr Memorial Site taken in 1963</figcaption></figure><p>There is the desecrated and contorted body of Spotted Elk, one of the great leaders of the Lakota Nation, laying in the blood-soaked snow of Wounded Knee Creek. There is also the image of saluting and shouting people gathered around a great pyre of burning books in 1933.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bHAHZ8WVK1KDLg8tvrT8zg.jpeg" /><figcaption>Body of Miniconjou Chief Spotted Elk — taken 1 January 1891 after the massacre at Wounded Knee</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfu7ZshbgvCpMNDhMiRVxw.jpeg" /><figcaption>Burning of Books in Berlin — taken 11 May 1933 by Georg Pahl</figcaption></figure><p>Each of these images and many more are tangible objects that are symbolic of great and/or terrible events that are otherwise too vast to be grasped by those of us that were not there to witness and absolutely must never be forgotten.</p><p>For me, the image of Musk &amp; Co standing there smirking captures the triumph of oligarchs as they gaze upon the ruins of the idea that government and its officers should act in behalf of the governed and in the interest of the people that they claim to represent. I suspect that this photo will one day take its place in the museum of infamy and shame that our children’s children will visit.</p><p>When my father died a couple of years ago, I became awkwardly aware of the role that I play as a bridge to past generations. My mum’s father was born in 1899 in the goldfields of Kalgoorlie, Western Australia and my father’s dad was born in 1901 in the tiny town of Mount Pleasant, Utah. My father was born in the even tinier coal mining town of Clear Creek, Utah and my mother was born in the small town of Harvey, Western Australia where her father worked as a labourer in the construction of a weir on Harvey River. These three generations span an interval of over 126 years that have seen some of the most tumultuous times in the written history of world civilisation. This time has seen at least two world-wide and deadly pandemics that spread over the entire world. They bear solemn witness to wars that have engulfed every nation and brought premature death and endless misery to countless millions. The scale of these things is so massive that it beggars my imagination and takes my breath away. The things that have made those events real to me are the stories and photos of family and friends who lived in those times.</p><p>I still remember the very real fear experienced by my mother as she and other Australians faced the very real possibility of a Japanese invasion over the vast northern coast as they seemed to burn their way across the Pacific and Indian oceans. I remember her talking about the absence of her father who was stationed with many other soldiers guarding that very same coast. I remember conversations with my employer during my teenage years as we worked together in the milking parlour as he described how he and other kindergartners were lined up so that they could spit on photos of Hirohito and Tojo. It is stories and memories such as these small and seemingly inconsequential things such as young children under the shadow or war that bring to life for me the horrors of that time and kindle a determination that those things must never be repeated.</p><p>I am not a historian but have always been fascinated and obsessive about history. Perhaps this is the reason for my unease as I observe the eerie similarities between our time and the decades of the 1920s and 1930s as the creature slouched toward Bethlehem waiting to to be born. These decades saw the rise and fall of the Weimar republic in Germany to be replaced with the swastika and all the evils it came to represent, the rise of militarists in Tokyo, the ascension to power of Mussolini in Italy, and the cementation of power to the Bolsheviks in Russia. These years bore witness as psychopathic, power-hungry monsters who masqueraded themselves as men as they manipulated their way to power by fanning the flames of racial hatred, coopted beliefs and symbols of the past, and cemented their hold on power through terror to silence all who would oppose them.</p><p>When did these events transition between civilisation and barbarism? When did the drunken shouting of crackpots transform itself into the terrors of Kristallnacht? Where is the inflection point in the line of events that eventually tipped the entire world into an inferno of war and hate? When could these seemingly inevitable tides that swept the world have been turned back to give us all a better future and a less horrific past? The question most dear to my heart is: what can I do as an individual to stand against the resurgence of these awful tides? It is this question that drives me to take up the pen and to raise my weak voice against the tsunami of hate and greed that threatens to overwhelm us all.</p><p>The seventeenth and eighteenth centuries were also a time of tumultuous events with continent spanning wars and civil unrest. These times gave rise to the great voices of Voltaire, Hobbes, Smith, &amp; Locke whose books made their way across the atlantic storms into the hands of merchants, traders, smugglers, and planters who experienced increasing frustration at the ineptitude of a king and the indifference of parliament. The ideas of these philosophers are apparent in the words found at the beginning of the second paragraph of the Declaration of Independence:</p><blockquote>We hold these truths to be self-evident, that all men are created equal, that they are endowed by their creator with certain unalienable rights, that among these are Life, Liberty, and the Pursuit of Happiness.</blockquote><p>It is remarkably easy for us to look askance at the slave-holders who wrote these words. The hypocrisy of those who would claim those rights for themselves while denying those same rights to those who gave and maintained their fortunes while living in literal bondage is undeniable. Our tragic history is that of a nation founded on the most noble of principles and in the lives of those whose words and actions worked to refute them in the most forceful ways. Nothing manifests this more clearly than the clause still embedded in the constitution that defines a slave as 3/5 of a man. The ink of their signatures was not even dry before they went about trying to restrict the definition of the word, “man”. All of this is ably summed up in the words of George Orwell: “All animals are equal but some are more equal than others”.</p><p>Yet despite our inability as a nation to approach these ideals and hold them in our hearts, they still resonate because these ideals <em>ARE</em> self-evident despite the circumstances in which they were written and the weakness of the people who wrote them. It is in the light of these ideals that we have celebrated our greatest success, it is in their shadow where our deepest shame lies hidden, and they represent the path by which we can go about building a nation and, perhaps, even a world that can reflect more fully their truth. I believe that these ideals are the balance upon which we can measure the success or failure of governments and society. The extent to which institutions work to see them realised is the greatest cause of glory and the extent to which we as a nation or society work to exclude others from these rights should be our greatest shame.</p><p>I started this spiel looking back on the memories of our parents, grand parents, and great-grandparents and thinking of the things that led to the most intense conflagrations. It may be overly simplistic to state that the well-springs of these bitter fountains came when people chose to exclude others from the very things that blessed their lives and sought to portray whole peoples with different beliefs, languages, culture and race (whatever the word “race” is supposed to mean) as something other than human and less than a man. I do believe however that it is not far from a basic truth.</p><p>As a Christian, one of my core beliefs is that of repentance enabled through the atonement of Jesus Christ. I am not offended if you don’t share that or any other belief with me and I hope that you are not in turn offended by my belief. Regardless of whether you share my belief, I would point out the Greek roots of the word, repentance, is “to make sorry” or to “turn away from sorrow”. It is in this more general sense that I state my belief that we are in great need of repentance as a nation. We need to look to and remember the blessings that have, at times, made us a light to the world and we must strive in everything in our power that we do to ensure that all others can share in those same blessings. With the existential crises that hang over our heads and those of our children, we can no longer afford the luxury of thinking ourselves to be somehow greater than the meanest beggar on the street or a person who may not look like us or share our beliefs, lifestyle, and culture.</p><p>This brings me last of all to my dearest question and my entire purpose in writing. What can I do as a weak individual to stand against the tide of sorrow that threatens us all? My words and actions are unlikely to reach very few of the billions that share this planet with me but these are the things that I personally can do. I must believe and make alive that belief that all who I encounter are as precious or more so than myself. That they deserve to be heard. That they are entitled to my respect and protection from those who would deny them this respect. That the appearance, culture, lifestyle, or belief (or the lack thereof) must not be a factor in how I choose to interact with them. When it comes down to it, this is the only thing that I or anyone else CAN do. It is too easy for me to despair and to give into the depression and grief for the evil in our world that haunts me daily but I must not and cannot give into it. In the end analysis of my life and actions, I can perhaps hope that those who knew me best could recognise that I never gave up trying despite my many flaws and weakness and perhaps inspire in them a willingness to also never give up. Perhaps, together, by working with each other with fraternal love and respect, we CAN turn what seems to be an inevitable tide to build a better future for our children.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09f41e9acc19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Memory Devices]]></title>
            <link>https://medium.com/@jtrauntvein/building-memory-devices-bf6964177309?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf6964177309</guid>
            <category><![CDATA[latch]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[computer-simulation]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 23:21:56 GMT</pubDate>
            <atom:updated>2024-12-29T23:21:56.775Z</atom:updated>
            <content:encoded><![CDATA[<p>It is no exaggeration to state that control theory is so fundamental that we can do little to understand or interact with our universe without it. It is embedded in our understanding of biological systems such as cardio vascular, thyroid, blood sugar/insulin, and predator/prey relations. It is unavoidable in the study of physics, climate, &amp; weather. We rely upon it to safely use all of the machines that make our life more convenient such as air conditioners, furnaces, planes, trains and automobiles. In short, there are very few, if any, aspects of our daily experiences that do not incorporate the principals of control and feedback.</p><p>Feedback is a word used to describe a mechanism that operates by sampling its own output(s) and incorporating a modified version of that signal as another device input. It brings to mind a poem that I remember reading while very young in “Danny Dunn and the Swamp Monster”. If you didn’t experience childhood during the early seventies, its likely that you have never heard of this book and, before you ask, I am indeed old enough that I read the first edition published in 1971. This poem is about a fisherman who has caught an electric eel and lacks the means to cook it. The protagonist in the poem suggests that he (the fisherman) should “plug its tail into its head and let it cook itself”. I suppose that we can consider feedback as the art of cooking one’s self.</p><p>In previous drafts of this article, I have gone on at length about my personal journey of discovery regarding how feedback and control relate to the design of computer memory. I will spare you most of those maudlin details except for one observation that finally jumped out to me as I struggled to describe how it works. Someone less dense than myself would recognise the blatantly obvious that in order for something like “memory” to function, that its current state must relay upon previous changes to its inputs and state and this is exactly what feedback does. Oh well, I have never claimed to be ingenious in any way other than finding new and interesting ways to make mistakes and I can certainly make no such claim now either.</p><p>I hope it is not too distressing to dredge up memories of maths in school when you consider the following graphical representation of a function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVKzxnjAzsAB2vQ0a9c8tw.png" /><figcaption>Function Block Diagram</figcaption></figure><p>Here, we consider the function, <em>f, </em>a machine of some kind that operates upon values from its input domain and maps those values into related values in its range. We can also define a function that can operate on multiple inputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*FQaBOTVihwKqx0m1bxXG5A.png" /><figcaption>Function Block with Multiple Inputs (variables)</figcaption></figure><p>We can take the seemingly benign step of creating a function that operates on an input but that also operates on a modified version of its output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*wJAc2gWpv2V_OtaVIVcj-w.png" /><figcaption>Function Block with Control Feedback</figcaption></figure><p>The key to understanding this system is that the value of <em>x</em> that appears in <em>c(f(x))</em> is not the same value as the current value of <em>x</em> but is rather the result of the function operating on a previous value of <em>x</em>. We can make two observations here:</p><ul><li>the behaviour of the device is dependent upon time as well as the current value of its input</li><li>In order to understand the current behaviour of the device, we have to be able to understand its initial conditions.</li></ul><h3>Building an S-R Latch</h3><p>Let’s back off a bit from the abstract and consider the humble OR gate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LdYwKlNasn_-hGhiMtFpQ.png" /><figcaption>OR Logic Operator</figcaption></figure><p>As shown in the poorly drawn truth table, the output of <em>OR(A, B)</em> is true only if one of its inputs is true. There is a graphical representation of logic functions that represent the changes to inputs and outputs over time. There is a separate event line for each input as well as each output that will alternate between zero and one depending upon whether the value is asserted. The following diagram is derived from the function of the <em>OR</em> operator:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrKc6cwmJxgWIysWi64UCQ.png" /><figcaption>OR Gate Timing Diagram</figcaption></figure><p>Note that value transitions in the output line align (more or less by my lack of drawing skill) with changes to the values of inputs and the output level is always dependent on the immediate state of those inputs. Let us now take that simple gate and connect the output to one of the gate inputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*WJzqBe2al9AG1NA7y1g3oQ.png" /><figcaption>Set Once Cell</figcaption></figure><p>This is our first exposure to feedback and it has very interesting behaviour indeed. The output, Q, is going to be asserted if either of the inputs to the OR gate are set. If we assert input, A, Q will be asserted and this value is fed back into the other OR gate input. The resulting behaviour is that the device output will always be set after A is set regardless of any future changes to A. We can simulate this device using the classes that were developed in the previous installment:</p><pre>const { OrGate, connect_gates } = require(&quot;jhtrauntvein-basic-logic-gates&quot;);<br>const gate = new OrGate();<br>gate.on((value) =&gt; {<br>  console.log(`Q is ${value}`);<br>}<br>connect_gates(gate, 0, gate, 1); // connect output 0 to input 1<br>console.log(&quot;setting A to true&quot;);<br>gate.set(true, 0);<br>console.log(&quot;setting A to false&quot;);<br>gate.set(false, 0);</pre><p>If we run this script using node, we can see the following output:</p><pre>Q is false<br>setting A to true<br>Q is true<br>Q is true<br>setting A to false<br>Q is true</pre><p>The two Q is true statements that follow setting A to true happen once because A is set to true and a second time once the gate evaluates its output. This is not the most useful of devices but it is the simplest possible logical device that exhibits the characteristic of memory.</p><p>By using two NOR gates connected in a similar way, we can construct a device that has the characteristics of memory but is also more amenable to control:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ixr414oP0RcLYot56t5o2w.png" /><figcaption>SR Latch With Timing</figcaption></figure><p>A NOR gate’s output is going to be true unless one or more of its inputs are asserted. The first interesting thing to note about this gate is its initial state. With both S and R set to a default value of false, both outputs will evaluate to true. However, since the output of the bottom gate is driving one of the top gate’s inputs, Q will almost immediately be set to a value of false. When the S input is set to true, the other input of the bottom gate will be false so that gate will evaluate to false. This value is fed into one of the top gate’s inputs and, since R is still false, that gate will evaluate to true. This value, in turn, is fed as one of the inputs of the bottom gate so it will now evaluate as false. For me at least, trying to keep track of all of these transitions is very difficult and it has been a huge struggle for me to get to the point where I can describe it in a semi-coherent manner. My key to understanding was the realising two things:</p><ul><li>Even when you are hooking this circuit up on a bread board with high speed ICs, it takes time for the logical output to reflect its inputs. The same holds true and, perhaps, more starkly since we are using function calls to convey input state information</li><li>All of the transitions described above really happen. With a good enough oscilloscope on the electronic circuit and the the ability to trace all of the connections at the same time, you would be able to see the intermediate states until the device reaches a steady state.</li></ul><p>With our simulated gates, this is even easier to see because we can log the exact time that a transition occurs and we can also step through the calls to set() functions with the debugger. Let’s create a simulation in the same way that we did with the one-time latch:</p><pre>const { NorGate, connect_gates } = require(&quot;jhtrauntvein-basic-logic-gates&quot;);<br><br>// initial setup<br>const top = new NorGate();<br>const bottom = new NorGate();<br>top.on((value) =&gt; console.log(`top value is ${value}`));<br>bottom.on((value) =&gt; console.log(`bottom value is ${value}`));<br>console.log(`Top: ${top.evaluate(0)}, Bottom: ${bottom.evaluate()[0]}`);<br>connect_gates(bottom, 0, top, 1);<br>console.log(&quot;connecting top to bottom&quot;);<br>connect_gates(top, 0, bottom, 0);<br><br>// what does R do?<br>console.log(&quot;setting R to true&quot;);<br>top.set(true, 0);<br>console.log(&quot;setting R to false&quot;);<br>top.set(true, 0);<br><br>// what does S do?<br>console.log(&quot;setting S to true&quot;);<br>bottom.set(true, 1);<br>console.log(&quot;setting S to false&quot;);<br>bottom.set(false, 1);<br><br>// does changing S again change anything?<br>console.log(&quot;changing S to true&quot;);<br>bottom.set(true, 1);<br>console.log(&quot;changing S to false&quot;);<br>bottom.set(false, 1);<br><br>// now what does R do?<br>console.log(&quot;setting R to true&quot;);<br>top.set(true, 0);<br>console.log(&quot;setting R to false&quot;);<br>top.set(false, 0);</pre><p>If we step through this code with the debugger and stop just before setting any of the inputs, we should see the following output:</p><pre>Top: true, Bottom: true<br>top value is false<br>connecting top to bottom<br>bottom value is true</pre><p>If we now step through the next four lines of code, the following output should be added:</p><pre>setting R to true<br>top value is false<br>setting R to false<br>top value is false</pre><p>The top gate output was already false and the bottom gate output was already true. As you can see, changing the value of R alone causes no change in the device outputs. If we now step through the next eight lines of code, we should see the following additional output:</p><pre>setting S to true<br>bottom value is false<br>top value is true<br>bottom value is false<br>setting S to false<br>bottom value is false<br>changing S to true<br>bottom value is false<br>changing S to false<br>bottom value is false</pre><p>We can see here that setting the S input alone to true, will cause the top gate output to be true and the bottom gate output to be false. Another attempt to change S has no effect on the device output. Now let’s step through the last four lines of code. We should see the following additional output:</p><pre>setting R to true<br>top value is false<br>bottom value is true<br>top value is false<br>setting R to false<br>top value is false</pre><p>So, once the device is in a set state, it will remain in that state regardless of what happens on S until the value of R is set which will cause the device to toggle back into its original state.</p><p>There is one case that I won’t consider here which is what happens when both S and R are asserted at the same time. The behaviour of the device with these inputs is not predictable so we consider that to be an invalid input. What we have just created is called an S-R Latch and it forms the core of almost all memory circuits. What follows is a node module that implements this device as a JavaScript class:</p><pre>const { NorGate, connect_gates } = require(&quot;jhtrauntvein-basic-logic-gates&quot;);<br><br>class SrLatch {<br>   #g1;<br>   #g2;<br><br>   constructor() {<br>      this.#g1 = new NorGate();<br>      this.#g2 = new NorGate();<br>      connect_gates(this.#g2, 0, this.#g1, 1);<br>      connect_gates(this.#g1, 0, this.#g2, 0);<br>   }<br><br>   set(value, channel) {<br>      if(channel === 0) {<br>         this.#g1.set(value, 0);<br>      }<br>      else {<br>         this.#g2.set(value, 1);<br>      }<br>      return this.evaluate();<br>   }<br><br>   on(handler, channel) {<br>      if(channel === 0) {<br>         this.#g1.on((value) =&gt; {<br>            handler(value, 0, this);<br>         });<br>      }<br>      else {<br>         this.#g2.on((value) =&gt; {<br>            handler(value, 1, this);<br>         });<br>      }<br>   }<br><br>   evaluate() {<br>      return [ this.#g1.evaluate()[0], this.#g2.evaluate()[0] ];<br>   }<br>};<br><br>module.exports = {<br>   SrLatch<br>}</pre><h4>Building the D Latch</h4><p>We can overcome some of the shortcomings of the SR latch by adding AND gates to both the S and R inputs of the SR latch. The gate will still have two inputs but their function will change. The primary D (data) input will represent the value that will be stored and the E (enable) will control when that value will be stored. What follows is a diagram with an associated timing scenario that more or less describes the behaviour of this new device:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7OeDkk53XUQPsIL70KH8g.png" /><figcaption>D Type Latch &amp; Timing</figcaption></figure><p>As with previous examples we can construct a JavaScript class that implements this:</p><pre>const { NotGate, AndGate, connect_gates } = require(&quot;jhtrauntvein-basic-logic-gates&quot;);<br>const { SrLatch } = require(&quot;./SRLatch.js&quot;);<br><br>/**<br> * @type {import(&quot;jhtrauntvein-basic-gates&quot;).GateInterface} implements a composition of five gates<br> */<br>class DLatch {<br>   #inverter;<br>   #input1;<br>   #input2;<br>   #latch;<br>   <br>   constructor() {<br>      this.#inverter = new NotGate();<br>      this.#input1 = new AndGate();<br>      this.#input2 = new AndGate();<br>      this.#latch = new SrLatch();<br>      connect_gates(this.#inverter, 0, this.#input1, 0);<br>      connect_gates(this.#input1, 0, this.#latch, 0)<br>      connect_gates(this.#input2, 0, this.#latch, 1);<br>   }<br><br>   /**<br>    * Sets the value of one of the input channels<br>    * @param {boolean} value specifies the input channel value<br>    * @param {number} channel specifies the input channel to set:<br>    *   - 0: the value will be set on the D input<br>    *   - 1: the value will be set on the ENABLE input<br>    * @returns <br>    */<br>   set(value, channel) {<br>      if(channel === 0) {<br>         this.#inverter.set(value, 0);<br>         this.#input2.set(value, 1);<br>      }<br>      else {<br>         this.#input1.set(value, 1);<br>         this.#input2.set(value, 0);<br>      }<br>      return this.evaluate();<br>   }<br><br>   /**<br>    * <br>    * @returns {boolean[]} Returns the current state of outputs.  The positions in the array correspond with the following output channels:<br>    *   - 0: Q output<br>    *   - 1: NOT(Q) output<br>    */<br>   evaluate() {<br>      return this.#latch.evaluate();<br>   }<br><br>   /**<br>    * Registers an output handler function that will be called when one of the input values have been set<br>    * @param {@import(&quot;jhtrauntvein-basic-logic-gates&quot;).OutputHandlerType} handler specifies the function that will be called <br>    * for the given output channel when one of the inputs has been set.<br>    * @param {number} channel specifies the channel for which the listener will be registered.  The following values are <br>    * supported:<br>    *    - 0: Q output<br>    *    - 1: NOT(Q) output <br>    */<br>   on(handler, channel) {<br>      this.#latch.on((value) =&gt; {<br>         handler(value, channel, this);<br>      }, channel);<br>   }<br><br>   /**<br>    * Sets the value of the D input<br>    * @param {boolean} value specifies the value of D<br>    * @return {boolean[]} returns the evaluated state<br>    */<br>   set_d(value) {<br>      return this.set(value, 0);<br>   }<br><br>   /**<br>    * Sets the value of the ENABLE input<br>    * @param {boolean} value specifies the value of CLK<br>    * @return {boolean[]} returns the evaluated state<br>    */<br>   set_enable(value) {<br>      return this.set(value, 1);<br>   }<br>};<br><br>module.exports = {<br>   DLatch<br>};</pre><p>As we did with the S-R latch, let’s look at an example program that I wrote that uses it. We create the latch and set up an output handler as follows:</p><pre>const { DLatch } = require(&quot;../DLatch.js&quot;);<br>const latch = new DLatch();<br><br>latch.on((value) =&gt; console.log(`latched value is ${value}`));</pre><p>Let’s now set the data and then the enable lines to true:</p><pre>console.log(&quot;setting D to false&quot;);<br>latch.set_d(false);<br>console.log(&quot;setting E to false&quot;);<br>latch.set_enable(false);<br>console.log(&quot;setting D to false&quot;);<br>latch.set_d(false);<br>console.log(`latch state is ${latch.evaluate()[0]}`);</pre><p>Up to the point where the enable input is set, we will see the following output</p><pre>setting D to true<br>setting E to true<br>latched value is true</pre><p>As can be seen at this stage, the value of D was not latched until the value of E was set to true. If we leave the enable input set and change the value of D to false, we can see that the latch will adopt the value of false:</p><pre>setting D to false<br>latched value is false<br>latched value is false</pre><h4>Conclusion</h4><p>I feel as if I have dumped a vast amount of technical information here and have seemingly little to show for it. I am nowhere near my end goal of building an emulated CPU. However, our progress to date marks a significant milestone. We have begun to build more complex devices from the basic logic gates that we explored earlier and we have also been enable to experience the emergent behaviour that comes from employing feedback mechanisms. The devices that we have designed here will be used extensively as we begin to assemble more complex components. In particular, this will allow us to start to construct memory registers and indexed memory both of which will be crucial for the final goal.</p><p>The code from this article can be found on a separate repo on <a href="https://github.com/jtrauntvein/latches">github</a> <a href="https://github.com/jtrauntvein/latches#readme">https://github.com/jtrauntvein/latches</a>. Additionally, the SRLatch and DLatch classes can be installed in a nodejs package by installing the jhtrauntvein-latches package from NPM. In the next article, I plan on starting to put things together using buses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf6964177309" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating Boolean Gates in JavaScript]]></title>
            <link>https://medium.com/cpu-simulation-in-javascript/simulating-boolean-gates-in-javascript-cc40e3d65478?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc40e3d65478</guid>
            <category><![CDATA[simulator]]></category>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[boolean]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Sun, 24 Nov 2024 20:58:58 GMT</pubDate>
            <atom:updated>2024-11-24T20:58:58.980Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*6wKpTYFgAnwqsJu28cDUOw.jpeg" /><figcaption>Turn of the Century Burroughs Adding Machine — Photo Taken by Author</figcaption></figure><p>Two years ago, I wrote an article in this publication called <a href="https://medium.com/cpu-simulation-in-javascript/logic-gates-a40e03c0a0f6">Logic Gates</a> in which I attempted a basic introduction of basic Boolean logic functions. I recall thinking that, having gotten that out of my hair, I could proceed at break-neck pace to the next article about registers. I have indeed made starts at that topic… five of them to be exact. Unfortunately, along the way, I realised that I needed a more rigorous set of tools to simulate the basic logic gates and the means of connecting them together. So this belated installment will be much more code heavy than the previous two and, in it, I will describes a collection of JavaScript classes that can be used to simulate the logical operations of these gates. In advance, I will mention that the full implementation of these classes can be found on <a href="https://github.com/jtrauntvein/basic-logic-gates">GitHub</a>. In addition, I have published this package to <a href="https://www.npmjs.com/package/jhtrauntvein-basic-logic-gates">NPM </a>so that these classes can be easily loaded and used in the various projects that I am going to have to create for these articles.</p><h4>Requirements</h4><p>Let’s start with a basic set of requirements. I want to:</p><ul><li>illustrate the basic operation of logic functions</li><li>be able to create objects that would represent individual gates and connect them with event handling functions</li><li>be able to place monitors (such as logging events to console or, much later, create visual real-time state indicators at various locations in composed device</li><li>be able to evaluate the current output of a gate at any time without changing that state.</li></ul><p>An astute observer may notice that there is no mention of operation efficiency in this list. It would be easy enough to implement all of the basic operations using JavaScript logic operators but that does very little to illustrate the basic functions of those operators. I have instead chosen to use truth table structures to map the state of device inputs to the device outputs. This approach will turn a very efficient JavaScript expression such as (A &amp;&amp; B) into a linear lookup in an array.</p><p>My design approach is to create a single base class that manages inputs, output event handlers, and logical evaluation using a provided truth table. I am going to call this base class TruthTableGate and, once it is defined, we will be able to derive all of the other basic Boolean functions in extended classes. Any logic device has at least one input channel and at least one output channel. In order to evaluate the logic function at any time, our emulator will maintain an array of Boolean values called inputs:</p><pre>class TruthTableGate {<br>  /**<br>   * specifies the collection of input channel values<br>   */<br>  #inputs;<br><br>  constructor() {<br>    this.#inputs = [ false, false ];<br>  }<br><br>  /**<br>   * sets the state of one of the input channels<br>   * @param {number} channel specifies the input channel number<br>   * @param {boolean} value specifies the value for the channel<br>  set(channel, value) {<br>    if(this.#inputs[channel] !== value) {<br>      this.#inputs[channel] = value;<br>      // @todo: we need to evaluate the logical function and report any change events<br>    }<br>  }<br>}</pre><p>We’ve already defined a constructor for this class as well as a set() method that is not yet complete. I was at first tempted to reevaluate the logical function any time that an input was set to any value but I soon learned that my event handlers could get called far more times than I wanted. Instead, we will only change the value of an input channel and evaluate the logical function. Before we start on the evaluate() function, let’s first consider what it will be operating on beyond the inputs that we have already defined.</p><h4>Truth Table Structure</h4><p>I wrote of truth tables in depth in the previous article but a short review might be in order. A truth table is an approach of defining a function where we list all of the possible combinations of inputs and the expected output(s) for each combination. In “normal” math, the size of the range and domain of most functions tends toward infinity. Fortunately, for the logical functions that we will consider here, we have a very limited set of inputs and outputs for each basic function. Thus the truth table is actually a viable approach. If I have have a logical function that expects one input, there are only two values that can be considered: true and false. Likewise, if I have a function that accepts two inputs, there are only four combinations that need be considered: false-false, false-true, true-false, true-true. With three inputs, such a function would needs to consider a total of eight combinations. In designing the structure for our truth table, it makes sense to create an array of something where each element of that array represents one of these combinations. For the sake of clarity, I have chosen make this an array of objects where each object has two properties:</p><ul><li>inputs (boolean[]): specifies the combination of input values for one row in the truth table. The size of this array must be equal to the size of the #inputs private member.</li><li>outputs (boolean[]): specifies the output value(s) associated with the combination of input values. For the basic functions that we will implement here, there is only one output for any given function but that will not always be the case and it feels right to establish the more general pattern now. Let’s construct a truth table array that describes the logical complement (NOT) function:</li></ul><pre>const not_truth_table = [<br>  { inputs: [ false], outputs: [ true ] },<br>  { inputs: [ true ], outputs: [ false ] }<br>];</pre><p>In addition, let’s consider the truth table for the logical AND function:</p><pre>const and_truth_table = [<br>  { inputs: [ false, false ], outputs: [ false ] },<br>  { inputs: [ false, true ], outputs: [ false ] },<br>  { inputs: [ true, false ], outputs: [ false ] },<br>  { inputs: [ true, true ], outputs: [ true ] }<br>];</pre><p>I hope that it is obvious that, by defining the structure in this way, we can write an algorithm that will map the current set of input values to the expected output because the truth table is the concise description of that logical function. Let’s continue building our TruthTableGate class by considering how the object can be initialised with this structure. Let’s also define a new method, evaluate(), that will map the given set of inputs to the expected output. This method will require no parameters and will produce a Boolean array:</p><pre>class TruthTableGate {<br>  #inputs<br>  #truth_table<br><br>  constructor(truth_table) {<br>    // we can construct the default set of inputs from the first row in the<br>    // truth table.  we make our own copy of that row so we don&#39;t risk<br>    // changing the truth table<br>    this.#truth_table = truth_table;<br>    this.#inputs = [ ...truth_table[0].inputs ];<br>  }<br><br>  evaluate() {<br>    const match = this.#truth_table.find((row) =&gt; {<br>      return row.inputs.every((value, channel) {<br>        return value === this.#inputs[channel];<br>      });<br>    });<br>    return [ ...match.outputs ];<br>  }<br>}</pre><p>Since the object is storing the last set state of inputs, this function can be called at any time without affecting the state of the object. The final mechanism that we need to build is a way of registering event handlers for output channels that can be invoked at any time that the gate state changes. We can do this by defining a callback function that can be registered with a specified output channel using the on() method. The gate object will maintain an array of callbacks for each channel. Let’s do so by redeclaring our class again with a modified constructor and on() method. Finally, we can modify the set() method so that it will call evaluate() each time an input is changed and will invoke the registered event handlers:</p><pre>class TruthTableGate {<br>  #inputs<br>  #outputs<br>  #truth_table<br><br>  constructor(truth_table) {<br>    this.#truth_table = truth_table;<br>    this.#inputs = [ ...truth_table[0].inputs ];<br>    // the outputs callback array will be an array of functions that <br>    // has the same length as the number of output channels.<br>    this.#outputs = truth_table[0].outputs.map(() =&gt; []);<br>  }<br><br>  on(handler, channel = 0) {<br>    this.#outputs[channel].push(handler);<br>  }<br><br>  set(value, channel {<br>    let output;<br>    if(this.#inputs[channel] !== value) {<br>      this.#inputs[channel] = value;<br>      output = this.evaluate();<br>      // for each output channel, we want to invoke all of the handlers that<br>      // are registered for that channel.  We will pass the output value,<br>      // output channel number, and a reference to this gate.<br>      this.#outputs.forEach((channel_outputs, out_channel) =&gt; {<br>        channel_outputs.forEach((handler) =&gt; {<br>          handler(output[out_channel], out_channel, this);<br>        }<br>      }<br>    }<br>    return output;<br>  }<br>}</pre><h4>Defining the Basic Gates</h4><p>Aside from a multitude of error checks that need to be made in the constructor as well as the set() and on() methods, this pretty much defines the class that we can use as a basis for any of the logical gates that can be described using a truth table. We can knock each of these out by defining a new class that extends class TruthTableGate and provides its own constructor that initialises the base class with its truth table:</p><pre>class NotGate extends TruthTableGate {<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false ], outputs: [ true ] },<br>      { inputs: [ true ], outputs: [ false ] }<br>    };<br>    super(truth_table);<br>}<br><br>class AndGate extends TruthTableGate {<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false, false ], outputs: [ false ] },<br>      { inputs: [ false, true ], outputs: [ false ] },<br>      { inputs: [ true, false ], outputs: [ false ] },<br>      { inputs: [ true, true ], outputs: [ true ] }<br>    ];<br>    super(truth_table);<br>  }<br>}<br><br>class OrGate extends TruthTableGate {<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false, false ], outputs: [ false ] },<br>      { inputs: [ false, true ], outputs: [ true ] },<br>      { inputs: [ true, false ], outputs: [ true ] },<br>      { inputs: [ true, true ], outputs: [ true ] }<br>    ];<br>    super(truth_table);<br>  }<br>}<br><br>class NandGate extends TruthTableGate {<br>{<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false, false ], outputs: [ true ] },<br>      { inputs: [ false, true ], outputs: [ true ] },<br>      { inputs: [ true, false ], outputs: [ true ] },<br>      { inputs: [ true, true ], outputs: [ false ] }<br>    ];<br>    super(truth_table);<br>  }<br>}<br><br>class NorGate extends TruthTableGate {<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false, false ], outputs: [ true ] },<br>      { inputs: [ false, true ], outputs: [ false ] },<br>      { inputs: [ true, false ], outputs: [ false ] },<br>      { inputs: [ true, true ], outputs: [ false ] }<br>    ];<br>    super(truth_table);<br>  }<br>}<br><br>class XorGate extends TruthTableGate {<br>  constructor() {<br>    const truth_table = [<br>      { inputs: [ false, false ], outputs: [ false ] },<br>      { inputs: [ false, true ], outputs: [ true ] },<br>      { inputs: [ true, false ], outputs: [ true ] },<br>      { inputs: [ true, true ], outputs: [ false ] }<br>    ];<br>    super(truth_table);<br>  }<br>}</pre><h4>Putting It All Together: Composed Gates</h4><p>We have now declared all of the basic logical functions that are commonly used. With these basic building blocks, it is now possible to write programs that can create gate objects, register output callbacks, and set the value of inputs. The most powerful thing that we can do, however, is to use these building blocks to compose more complex logical functions. Let’s consider the case where we want a four input AND gate. We could, of course, build this as an extension of TruthTableGate but we can also choose to compose this more complex function from three basic AND gates:</p><pre>class AndGateFour {<br>  #input_layer<br>  #output_gate<br><br>  constructor() {<br>    this.#input_layer = [ new AndGate(), new AndGate() ];<br>    this.#output_gate = new AndGate();<br>    this.#input_layer.forEach((gate, gate_pos) =&gt; gate.set((value, channel) =&gt; {<br>      this.#output_gate.set(value, gate_pos);<br>    });<br>  }<br><br>  /**<br>   * define the set method in terms of the input layer gates<br>   */<br>  set(value, channel) {<br>    return this.#input_layer[channel * 2].set(value, math.Floor(channel / 2));<br>  }<br><br>  /**<br>   * define the on method in terms of the output gate<br>   */<br>  on(handler, channel = 0) {<br>    this.#output_gate.on(handler, 0);<br>  }<br><br>  /**<br>   * define evaluate in terms of the output gate<br>   */<br>  evaluate() {<br>    return this.#output_gate.evaluate();<br>  }<br>}</pre><p>Our composed gate does not extend class TruthTableGate but does define the same methods as that class. Because of JavaScript’s duck typing, this means that AndGateFour can be used in exactly the same way as any of the basic gates and can even be used to compose other gates as well. In this final sample, let’s create code that tests each of the possible input combinations for an AND gate:</p><pre>const gate = new AndGate();<br>let results;<br>gate.on((value) =&gt; console.log(`value changed to ${value}`));<br>gate.set(false, 0);<br>results = gate.set(false, 1);<br>assert(results[0] === false);<br>results = gate.set(true, 0);<br>assert(results[0] === false);<br>gate.set(true, 1);<br>results = gate.set(false, 0);<br>assert(results[0]) === false);<br>results = gate.set(true, 0);<br>assert(results[0] === true);<br></pre><h4>Conclusion</h4><p>All of the code that appears in our samples in this article can be found on GitHub at <a href="https://github.com/jtrauntvein/basic-logic-gates">https://github.com/jtrauntvein/basic-logic-gates</a>. The only real differences between the samples here and that on GitHub, is that I have implemented better error checking in constructors and other methods. It also has a collection of jest unit tests.</p><p>I know that this has been very code heavy and also repeats a lot of what is in my last article. With these tools in place, however, I am now prepared to begin to show how various CPU components can be emulated in JavaScript. In the next article, I am going to present computer memory and registers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc40e3d65478" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cpu-simulation-in-javascript/simulating-boolean-gates-in-javascript-cc40e3d65478">Simulating Boolean Gates in JavaScript</a> was originally published in <a href="https://medium.com/cpu-simulation-in-javascript">CPU Simulation in JavaScript</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Fractal Geometry of People]]></title>
            <link>https://medium.com/know-thyself-heal-thyself/the-fractal-geometry-of-people-ddb556bccd75?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb556bccd75</guid>
            <category><![CDATA[people]]></category>
            <category><![CDATA[know-thyself-heal-thyself]]></category>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[self-love]]></category>
            <category><![CDATA[self-hatred]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Tue, 12 Nov 2024 14:37:04 GMT</pubDate>
            <atom:updated>2024-11-12T14:37:04.616Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Meditation on Personal Chaos</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cuPNmXt-JgkRoO2MBfkgmg.gif" /><figcaption><a href="https://en.wikipedia.org/wiki/Lorenz_system">Lorenz Attractor Animation — source</a></figcaption></figure><p>What do you write when it feels as if your head is a vast, empty chamber filled with dripping echoes? What do you do when you feel that, somewhere lurking beneath an impenetrable layer of fatigue and dark thoughts, there is a nugget of light that is desperate to be revealed? Writing is, at the best of times, an act of faith: faith in one’s self; faith that there is a spark of divinity that you can strike if only you persist in following the tortuous paths of your mind; faith that the flashes of insight that caused you to take up the pen can somehow be woven into something that resembles a cohesive and logical argument; faith that what you write can make a difference.</p><p>On most days, I utterly lack confidence in myself. I consider the likelihood of my being able to say or do something that others might find to be of value beyond slim. Today, that barrier seems insuperable. Yet as I cast about the dank, empty spaces of my mind, I read and I listen. I find poetry and prose shared by many others who I admire yet I know that also struggle with their own doubts and daemons. What they write wakens something in the murky depths that makes me want to stretch toward my own untapped potential and resonates with the chimes of my own soul. I find a desire kindled to join my own weak voice to their august company.</p><p>What can I possibly hope to accomplish in this conceit? There really is nothing that I can express that has not been stated more clearly by others with more talent and better functioning minds. Yet in my stumbling path through life, I have slowly woken to the truth that each one of us are preciously unique; that each individual that lives or has lived has their own perspective and their own story that must be told; and that it is important that each voice be heard if we are to ever build a society that does more than bicker and exploit. Given that there are billions who currently live on the earth and that there are many billions more that have made their own passage through life, this assertion seems to be remarkable indeed. It seems far more likely that, amongst the uncountable billions who share our journey, that our individuality might be drowned in an ocean of similarity. Here, I have thought of something that can possibly illustrate and perhaps support my assertion.</p><p>In 1963, <a href="https://www.britannica.com/biography/Edward-Lorenz">Edward Lorenz</a>, a mathematician and meteorologist at MIT, derived a set of non-linear differential equations as a rough climate model. In order to evaluate the behaviour of these equations over time, he wrote a program to run on a Royal McBee of questionable reliability (as no doubt applies to most computers of that era). This program calculated iterations of climate descriptor values from the results of previous calculations and produced a continuous printout of the values for each iteration. Despite the simplicity of the equations, the results were complex enough that outcomes were not obviously predictable and this attracted enough interest that a betting pool was maintained by to try to predict future outcomes.</p><p>Following a system crash, Lorenz restarted his program by plugging in the last values that were printed. To his surprise, the model began to produce results that were vastly different from the trends that were shown for the previous iterations. No doubt suspecting an error in his program, Lorenz reviewed its implementation and concluded that it was correctly written. Ultimately, he traced the final source of this “error” to the fact that, internally, the computer represented floating point values with more precision than was being printed and, because of this, the restarted simulation used past values that were very close to but not exactly the same as the program was using internally. He finally concluded that it is possible for minute differences in initial conditions of a system to produce unexpectedly complex and significant results. The insights gains from this experiment ultimately gave rise to a whole new branch of math and science called chaos theory. The effect came to be popularly known as the “butterfly effect”.</p><p>If you were to graph the solutions to these equations in the three dimensions that make up their phase space, a startling picture emerges that shows traces looping around two invisible vortices in different planes. Indeed the chart takes on the appearance of a butterfly’s wings. The path that the solutions take appear similar but never exactly repeat themselves and will occasionally jump from one vortex to the other with seemingly little provocation. This analytical approach has since been applied to a huge range of phenomena such as market fluctuations, biological populations, the heart beat of living animals, climate, geology, and even antenna design. When you watch the flames of a fire or sit beside a rushing mountain creek, you can see these same kinds of patterns in the turbulence of the water as it splashes over branches and boulders. You see something that seems to be recognisable and yet seems to defy any attempt of precise mathematical description.</p><p>At first glance, this detour seems hardly related to my original theme and, to be honest, my inner geek becomes altogether too excited to hare off on wild tangents. To avoid this danger, let me get to the point. Chaos theory provides powerful tools that can aid in the analysis and even prediction of complex systems. Further, there are very few, if any, systems more complex than that of the human mind and even this pales in comparison to the complexity that results from the interactions with humans with each other and their environment. Our brains seem to be fine tuned to recognise patterns and generate conclusions with incomplete data. This ability serves us well particularly when it comes to language, speech, social interaction, and recognition of dangerous conditions. Yet this very superpower often leads us toward oversimplification of complex patterns and an inability to distinguish between cause and effect. This flaw seems to manifest most strongly in how we deal with one another.</p><p>We are all too eager to pigeon-hole our fellow humans and even ourselves into broad categories with which we are either in accordance or opposition. Once we have placed someone in such a category, that assignment comes to colour and even dominate everything else that we observe about that person. If we don’t exercise cautious awareness of these traits in ourselves, such conditions lead altogether too often to conflicts that seem, of late, to be escalating throughout our society. These clashes poison our relations with others, even close friends and family, and greatly diminish any hope of reversing the conflicts that are slowly killing us. Despite the magnificent complexity of our minds, we deal poorly with complex systems by being either overly fearful or full of unwarranted confidence.</p><p>Harking back to Lorenz’s system of equations, if you watch an animation of the graph as it iterates over time, the true nature of that system and its invisible attractors become apparent only after you have taken the time to observe hundreds of iterations. If this holds true for a relatively simple set of equations, how much more must this be the case when we are dealing with or learning about ourselves or our neighbours? It seems to me that we owe ourselves and our neighbours the time and effort that it takes to make the sort of observations that can lead us to a true understanding.</p><p>Of all the people that I struggle to understand, I seem to struggle the most with myself. I am challenged to understand the wild swings of emotion or the lack thereof. I continually replay in my mind all of the crises and mistakes of my past: the times when I allowed fear and anger to dominate my reactions; the cases where I failed to pay attention; the all too frequent times when my self-absorption blinded me to the struggles of family or friends. Invariably, these reflections serve only to deepen a sense of self-loathing and to see myself as a kind of monster. The somewhat more rational part of my mind recognises this as a gross oversimplification in that it fails to take into account my own conditions, the times when I was actually of some use, or the abilities that I have either cultured or acquired natively. At times like this, the vast, seemingly unbridgeable gulf between reasonable thought and irrational self-hatred manifests in stark contrast and I feel as if my soul is forever stuck between these extremes. I allow this state to cloud my perceptions of myself and of those family and friends who have the most claim upon my kindness and who somehow love me despite my faults. I become so fixated on this one attractor in the complex system that defines me that I willfully fail to recognise the other vortices in my life that are either equally or more valid than the object of my fixation. Because of this, a true understanding of myself constantly evades me and I continue to wander meaninglessly through life.</p><p>As I mentioned earlier, the true nature, beauty, and power of Lorenz’s equations only become apparent after you have invested the time to study them and observe them in action over time. If this holds true for a simple set of equations, how much more must this be the case when we consider ourselves and our neighbours? If this is the case on a personal level or within the intimate associations of family and community, does it not follow that it would also apply in wider contexts?</p><p>In our own not so blissful ignorance of the strengths and challenges of those who share our path through life, we too often tend to underestimate and misunderstand the impacts of our seemingly meaningless interactions with our fellow voyagers. Is it possible to predict the impact of a short moment of kindness and hospitality shared with someone who is struggling to find their place and feels isolated? Can we really understand the devastating effect of thoughtless, hostile words directed toward a child who wants nothing more than understanding and acceptance but may lack the emotional maturity to express it? Can we recognise the message that we are sending if we are willing to stop in our busy routines so we can help someone that we see is in need? Can a word spoken with kindness or rancour not have a massive and unintended consequence in the lives of the recipients of that word?</p><p>I go back to how I started this spiel; struggling to hold at bay the flood of uncontrolled emotions that constantly strives to undermine my reason; wanting but not quite believing that my feeble words might be of value to those who have been kind enough to endure them; seeking to stem the tide of self-hatred that far too often poisons everything that I try to do. It becomes apparent that, just as I lack an understanding of my peers, I also lack the ability to understand myself. I am forced to recognise that, if I need to be patient and attentive to loved ones in order to truly know them, that I must also be willing to be patient and attentive to the strangest being of all… myself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb556bccd75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/know-thyself-heal-thyself/the-fractal-geometry-of-people-ddb556bccd75">The Fractal Geometry of People</a> was originally published in <a href="https://medium.com/know-thyself-heal-thyself">Know Thyself, Heal Thyself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Mere Seven Miles]]></title>
            <link>https://medium.com/know-thyself-heal-thyself/a-mere-seven-miles-62d0da1ab897?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d0da1ab897</guid>
            <category><![CDATA[know-thyself-heal-thyself]]></category>
            <category><![CDATA[biketouring]]></category>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[healing-in-nature]]></category>
            <category><![CDATA[prose]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 06:32:08 GMT</pubDate>
            <atom:updated>2024-10-09T06:32:08.452Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Short Journey to a Different World</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*EV7i6mQRy-AHCOtGZImohQ.jpeg" /><figcaption>Summit Creek in Smithfield Canyon — photo taken by author</figcaption></figure><p>Just seven miles from the place where I make my home is a place that is entirely different. Gone is the ordered grid of tarmac choked streets. Instead, there is a narrow gravel road that meanders and creeps with the twists and turns of Smithfield Canyon and Summit Creek. It is surrounded with groves of bigtooth maple, black willow, cottonwood, box elder, and, my personal favourite, river birch with its waxy red bark.</p><p>This place is guarded in its solitude by high ridges of ancient rock. The formation of this rock was begun when the world was yet young and the covering sea thrived with all forms of life. The rocks were buried by repeated layers of sediment and the detritus of living beings, compressed, heated, and fused and were later thrust high into the air by the incomprehensible forces of colliding continents until they were covered with glaciers that carved and molded them.</p><p>Then, as the climate warmed and the glaciers melted, creeks and rivers spawned by glacier runoff etched their way through rock faults and split them open like a surgeon’s scalpel.Their old bones jut high into the sky and are covered with life: quaking aspen, juniper, mountain mahogany, choke cherries, service berries, dogwood, sage, rabbit brush cling to those steep slopes and overhang the numerous craggy protrusions. The top of the ridge is crowned with a dense grove of douglas fir. The contrast of that deep, velvet green is so stark against the yellow leaves of mingled aspen and the lower slopes of bigtooth maple that it takes my breath away.</p><p>Abundant and convenient food, a comfortable bed, strong square walls and machines that temper the worst of the elements do much to isolate me from the web of life and death in which we all are enmeshed. It is too easy for me to become engrossed in the thousands of meaningless, every day activities and to forget my part in this ancient dance of life. I slip far too readily into the thought that I am an outsider — an intruder whose bumbling steps leave ruin in my wake. Yet here, beside the creek, whose endless song is always familiar but never the same; perched on a convenient boulder that tells the story of ancient life, cataclysmic forces, and the slow grind of ever present erosion; basking in the warm fall sun; surrounded by creatures literally buzzing with life; here that web is overwhelming, glorious and beautiful.</p><p>The sound of the creek, the light breeze drifting through leaning trees, the grass beneath my bare feet, and the brilliant blue of the sky all whisper to me that I also belong; that I am no more a stranger or foreigner; that even when I think to isolate myself and try to rend the tendrils of that web that reach out to hold me that I am a part.</p><p>That sense of belonging fills the dark voids of my soul with substance. It gives meaning to every inane thought. It sparks wonder, fascination, and a fierce determination to heal rather than wound; to build rather than to destroy; to protect rather than to threaten; to act with kindness and love rather than fear and hate; and to reach out rather than to hide.</p><p>Soon, I will have strapped all of my gear back on my bike. I will put on my shoes. I will mount that bike and retrace my ingress down the canyon with wild abandon. I will return to those square walls and comfortable bed. I will immerse myself again in frenetic and often meaningless activity. I will again put on the mask that unsuccessfully hides my autism and anxiety. I will try again, with mixed results, to fit in with those around me.</p><p>The memory of these brief nights stay beneath the wheeling stars will fade and join the pleasant and treasured amalgam of hundreds of other similar memories. Yet the singing of the creek will remain within my mind and will move me again to revere and to wonder. In the future, when despair and opportunity happen to coincide, I will again strap my gear to my bike, slowly climb the canyon with my pulse thundering in my ears and I will return to this place… a mere seven miles away yet a world apart.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d0da1ab897" width="1" height="1" alt=""><hr><p><a href="https://medium.com/know-thyself-heal-thyself/a-mere-seven-miles-62d0da1ab897">A Mere Seven Miles</a> was originally published in <a href="https://medium.com/know-thyself-heal-thyself">Know Thyself, Heal Thyself</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Perspective]]></title>
            <link>https://medium.com/@jtrauntvein/perspective-a126b5cac156?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a126b5cac156</guid>
            <category><![CDATA[depression]]></category>
            <category><![CDATA[chronic-pain]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Sun, 08 Sep 2024 22:28:25 GMT</pubDate>
            <atom:updated>2024-09-08T22:28:25.883Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyb0Uv0nXpcwzYKF0az2hQ.jpeg" /><figcaption>Image by author</figcaption></figure><p>Over the past few months, I have started and later abandoned various personal writing projects. I begin with the germ of an idea that I try to develop and then one of two things will happen: I run out of free time and, when trying to pick the project up again, the ideas that once seemed so clear are no longer coherent; or I become disgusted with myself. I have noticed, however, that there has been a convergence in the themes that I have tried to approach and this type of pattern is usually a sign that something is trying to break through the murk. So… once more unto the breach dear friends!</p><p>What is depression? At one time, I would have thought that it arises when one is dominated by overwhelming thoughts of sadness and despair and is the internal pain that drives so many to try to drown it in frenetic activity or chemical oblivion. As time has passed for me, I have learned that these things are but components to such an untenable condition. Having a spark plug does not imply that one has a functional engine.</p><p>Pain is a very subjective thing as are emotions. How do we assign a quantity to something that is purely qualitative? Without that kind of analysis, how do you even begin to compare the types of pain that you have personally experienced to the types of pain that we see others bear? Physical pain is perhaps easier to measure. It seems relatively easy to compare the pain incurred through a paper cut versus that of a broken femur as these would appear to be at opposite ends of a spectrum and are orders of magnitude in difference. I would assume that, if I had an fMRI and conducted scans of peoples brains as they undergo these types of experiences, that there would likely be significant differences in the areas of brain activity and, perhaps, this might even be a way of quantifying something that seems purely subjective. Yet even if this approach were to work, the differences between individuals and their responses to stimuli would likely be so varied as to defy classification.</p><p>In recent years, I have personally become much more acquainted with both physical and emotional pain than I have ever desired. I have learned that a relation exists between the pain of the body and pain of the mind but have also found that causality is very difficult to identify. I have born for years chronic pain caused by severe arthritis in one wrist and in both hips. I have found myself unable to even think about doing some of the things that used to bring me peace and fulfillment and, for a time, was even unable to walk or ride my bicycle. With both hips now replaced, I am trying to slowly crawl my way out of the crevasse in which I fell. I continue to experience the frustration of mental fog that comes from a night of interrupted sleep. The feelings of hopelessness and fear that so often are the unwelcome companions to this kind of pain have become altogether too familiar for my tastes. These are not at all pleasant experiences and could serve as an explanation for my depression. Even so, I have to question whether these things are merely convenient excuses for the poor way that I have responded to life’s inevitable headwinds or whether they play a role in creating those very headwinds.</p><p>This month marks the 38th year of my employment at the same company. That is a long time by any measure save geological and I have accumulated many and varied experiences and memories. One such experience stands out perhaps because of its tragic nature. In my first years at the company, I worked in building and maintenance and, one summer day, I received an assignment to drive the company pickup truck to an employee’s home and to bring back a recliner that he could set up in his office. I never really knew him well but knew that he was suffering from a progressive disease that caused unbearable back pain. I also knew that he was married and that he had young children. As I carried out my cleaning duties in the engineering section, I would occasionally see him and we would exchange the normal meaningless pleasantries. Several months after I had brought his recliner to his office, I learned that this man, overwhelmed with his pain and bereft of hope, had driven up a local canyon and jumped off a tall cliff thereby ending his life. In a relatively small company, such an event will affect practically everybody and even affected a self-absorbed young man such as I. I knew then, and am even more certain now, that I have no right to judge him or his actions. I have had many occasions to reflect back on this experience and wonder if there was something more that I could have done to make his life more bearable. I wonder anew about the types of circumstances that can lead a human being to take such a desperate and final action. I wonder at the cost that was and likely continues to be incurred by his family and those that he left behind.</p><p>Sadly, even the kindest and most empathetic of us are isolated within our own skulls and thoughts. Even when we share experiences with one another within the intimate relationships of family or friendship, we struggle to comprehend the struggle and/or pain of our companions in life’s journey. In fact, I have noticed that we often chose to visit our worst behaviours upon those whom we love and that love us. We little reckon the pain that we have forced onto such a victim. I am constantly aghast at my own self-absorption and lack of empathy toward family, neighbours, friends, and co-workers. More often than not, when I see someone that I know is struggling with an unbearable burden of grief and pain, I am reluctant to inflict myself upon them. I can barely comprehend or deal with my own emotions and I fear that my path through life resembles more drunken stumbling than it does a trail blazed with purpose and meaning. I struggle to see through the thick vapours cast up by my emotions and only rarely catch a glimpse of the things that I could do that could lift another’s burden.</p><p>As I have aged, I have become more aware of my own self-absorption and the perils that it brings. I like to think that experience has given me a less imperfect understanding of the human beings that share my orbit. I have learned that my experience and make-up is, perhaps, less exceptional than I once would have thought. I have come to recognise that others also struggle with the effects of trauma and abuse and can similarly fail to recognise their own worth. Most of all, I have learned that these struggles do not define a person unless they choose to make it so. I should state this more clearly: The physical and emotional pain and turmoil that <strong><em>I</em></strong> experience does not define who and what <strong><em>I am </em></strong>unless <strong><em>I choose</em></strong> to make it so.</p><p>I can get up, as I did this morning, after a poor sleep and with the bursitis in my hip acting up. I can feel despair when I see that my valley is filled with the smoke from wildfires hundreds of miles away. I can feel my deep annoyance at the constant sounds of traffic a half mile away. All of these things are hard, physical things with which I personally struggle that know amount of hopeful wishing can change. These all are things that I will carry throughout the day. Importantly, these do not have to be the ONLY things.</p><p>The pleasure that I felt as I laid on the lawn and stretched my hip is every bit as real as the pain with which I woke up; the wonder and fascination that I felt as I gazed upwards at the dappled light and sky as these filtered through a multi-tiered, trembling canopy of leaves are just as, if not more, memorable &amp; intense as my pains; the coolness of the grass and soil beneath my back and the sweet breeze that played across my face can be as calming as my pains are inflaming.</p><p>One of the biggest lies regarding depression and/or pain to which we can subscribe is that, because these things are present in our lives, they somehow become our exclusive reality. It is far too easy for me to get caught up in my fears, frustrations, and impotence and to allow these things to distort my view and reactions. Throughout the entire process, I can think, somewhat justifiably, that I am simply facing the unfortunate reality of my life. However, if I am as devoted to the idea of reality as I would like to think myself to be, than I must also recognise that, in the midst of unpleasant and uncomfortable circumstances, there are still factors that reveal peace, humour, joy, and comfort.</p><p>I am quite certain that my existence is an alloy of both weakness and strength. I suspect that this mix may well be a universal trait of humanity. When I see and interact with other people that are, themselves, struggling against physical or mental disabilities, I can remind myself that these apparent struggles are not ALL of what those people are. I can remember that they also can have experiences that can bring fulfillment, joy, and peace and, perhaps, I could even be an agent in bringing that kind of experience. I can recognise that they have unique outlooks and beliefs and that their voices need to be heard in an increasingly strident, noisy, and tumultuous world. Most importantly of all, despite all of my perceived shortcomings, self-absorption, and introversion, that they can also benefit from something as simple as a warm hand on the shoulder or a listening ear. All of this can be done despite my weak humour, flawed service, and imperfect empathy. I have come to believe, or at least grasp onto the belief, that this sort of remembrance can provide the perspective that destroys the lies that come from depression and pain and that reveals the true face of reality in all of its flawed magnificence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a126b5cac156" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Final Judgement]]></title>
            <link>https://medium.com/@jtrauntvein/the-final-judgement-3ec33e63f9f5?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec33e63f9f5</guid>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[reverence]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 20:34:35 GMT</pubDate>
            <atom:updated>2023-10-29T20:34:35.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*As-qy0GXVFGn25vHgJBKkA.jpeg" /><figcaption>Photo by the author</figcaption></figure><p>I was raised by parents for whom the Gospel of Jesus Christ meant everything. This was particularly true for my mother with whom I had an especially close relationship. I was raised to believe, and I still do, that if I dedicated everything that I do to serve others, to obey and to love, to be found doing the right thing at the right time, that my Saviour’s grace would be sufficient to overcome my many shortcomings. My using past case here does not imply that I have stopped believing these things but rather to provide some necessary background. As I have gotten older and laughably wiser, I have come to realise that there is far more to the atonement than a mere transaction. I stumbled across a poem this morning by Theodore McDowell (<a href="https://medium.com/know-thyself-heal-thyself/portrait-of-an-old-man-85150330549c">https://medium.com/know-thyself-heal-thyself/portrait-of-an-old-man-85150330549c</a>):</p><blockquote>When I was young<br>with powerful legs,<br>I hiked to glassy lakes<br>hidden in the mountains.<br>I watched an osprey hover,<br>strike, rise heavily from the water,<br>a trout in its hooked talons.</blockquote><blockquote>The sight was too majestic<br>for a simple story, too stunning<br>to diminish with words.<br>Will that beauty die with me,<br>or is there a God who will remember<br>the unseen wonder<br>of that solitary moment?</blockquote><p>This thought and question had an electric effect upon me and have been added to my collection of treasured quotes. Shortly after my first reading, I found myself with my bare feet planted in the still green grass; embraced by the crisp fall air with the feel of the brilliant, low sun on my back and legs as I waited for my little dog to do whatever it is that dogs find necessary to do their business. I was staring at the leaves on my two London plain trees fervently hoping that these trees for once would shed their leaves before the first snows of fall (I have already experienced the heartbreak of shattered branches that broke because of the heavy load of wet snow).</p><p>Staring at things is somewhat of a hobby to me. I love to sink into the moment and allow the feel, smell, sounds, and light embrace my mind. I love to trace the fractal geometry of leaves and branches on the trees. I love the sound of geese and sandhill cranes in the fall air as I grind my teeth trying to filter out the ever-present sounds of traffic. I love the velvet texture of grass beneath my bare feet and the remaining warmth of the soil as I stand in the sun. I bathe in the cool fall air. I contemplate the cycles of seeming death and rebirth every year. I think of trees and plants slowly withdrawing their store of sugars into their root boles and their slow dreams of the spring and summer to come. I gaze wonderingly at the grain pattern on a sawn board and see the wavy patterns of light and dark recorded in the bowels of the plant from which they were derived. I feel the immensity of the vast azul dome that stretches between the mountain peaks that form the valley that has always been my home. I contemplate the mirky waters of the Bear River as it winds across multiple valley floors before finally reaching the utter nihilation of the Great Salt Lake. I remember paddling my kayak over its glossy, unbroken surface as I watch the depths below as if they are a portal to some strange, unknown world that beckons me to explore. I luxuriate in the sounds of robins, meadowlarks, finches, sparrows, and blackbirds in spring and early summer. I listen to the lonely cry of the chickadees as I wander the canyon floors. I immerse myself into the constant but ever changing sound of Summit creek in Smithfield canyon. All of these things distill within me as deep reverence and awe and, when I take the time to notice these things, I feel a prayer of gratitude and love deep within my heart.</p><p>The insight that I gained from Mr. McDowell’s poem is that all of these things are a form of worship. Whether you share my belief in a loving creator or not, we all have the opportunities given us throughout our lives to experience the splendour and beauty of this precious planet that is our shared home. I hope that we all have the opportunities to learn, and by that learning to marvel at the fractal complexity of the web of life in which we find ourselves.</p><p>I started writing about the idea of a transactional atonement and with the germ of a thought that this idea is merely the beginning of something far more powerful and transformative. This slow growth within my mind leads me to wonder if, when all of my life’s work is done and the consideration its eternal nature is rendered, how much of that judgement will be based upon whether I allowed these opportunities for wonder and worship to sink into my soul. How well do I remember the joy that filled my entire being when my children were born? How easily am I stirred to reverence at the sight of the winter moon reflecting off snow covered mountain peaks? How often do I allow my sorrow over the marring of this beauty or the suffering of innocence stir within me and incite me to healing action? How much do I treasure the simple acts of love and friendship that have benefitted me throughout my life? How often have I tried to make these gestures myself even when they are awkward and ineffective?</p><p>There is so much business in our lives that it is far too easy to fall into the trap of allowing that business to overwhelm our sense of wonder. In an eternal balance, how much of my personal business must be weighed as dross or chaff? How much have I allowed a sense of gratitude and love to influence my decisions from minute to minute and day by day? I love the work that I do. I love how, in the process of writing instructions for a computer, I glean insights into the murky workings of my own mind. I especially pray that my work will be used by others to measure, evaluate, and, perhaps, to heal a seemingly broken world. I hope that, as a father, I have been an influence for light in the lives of my children and their friends. I hope that as a husband, I have given my wife the love and support that she has so willingly offered to me throughout our many years together. I hope that, as a neighbour, I have taken opportunities to show love and appreciation to others for their own goodness and their intrinsic value as human beings regardless of any differences that we think that we have.</p><p>Regardless of whether you share my spiritual beliefs, it has to be obvious that, at the end of life’s day, the values of our thoughts and actions must be inevitably weighed against the opportunities that we have been given and seized in our life to love, wonder, and to serve. At least in part, that balance must involve whether we have allowed a sense of reverence to stir in our hearts for the beauty that surrounds all of us and a longing to ensure that all of these things will be available to the generations that follow. I think that this has to be true regardless of whether you believe as I do.</p><p>I thank you for your time and kindness to consider these inadequately expressed thoughts from my heart. I hope and I pray that all of your lives will be filled with these opportunities to wonder and exult and that each of us will be willing to slow down, breathe in the air, and revel in the wonder of our beautiful home and each other.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec33e63f9f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of a Bike]]></title>
            <link>https://medium.com/@jtrauntvein/the-power-of-a-bike-c3af3625018?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3af3625018</guid>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[climate-action]]></category>
            <category><![CDATA[bicycles]]></category>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 01:03:06 GMT</pubDate>
            <atom:updated>2023-07-10T13:53:17.944Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*resOTQsTnf6Emsww0uEEBw.jpeg" /><figcaption>Picture of my most recent beauty — taken by author</figcaption></figure><p>Bikes are machines that are near and dear to my heart. As I have aged, my relationship with and dependency on these deceptively simple machines has deepened and become ever more meaningful and layered. Although there is likely much about me that is unique, I suspect that my love affair with bikes is shared by many. It is both my uniqueness and my hope of shared interest that give me the audacity to believe that these hopefully few words might be of interest and value to you.</p><p>I have come to believe strongly that the use of bicycles can be transformative on both a personal and societal level. I hope that, by writing about this, that my own stories and beliefs can serve as an inspiration and a provocation to act. I also hope that, in doing so, I can connect to others who might share my beliefs and feelings regardless of whatever other differences, real or perceived, may be evident.</p><p>These feelings and beliefs of which I speak cannot be fully expressed without me sharing some details about myself. I am a fifty-seven year old man who has grown up (more or less) and still lives in a high mountain valley of northern Utah called Cache Valley. This valley is surrounded by the Bear River and Wellsville mountain ranges. These mountains have always served me as both an inspiration and a protective shelter from a hurried and hectic world. My mother, who grew up in Perth, Western Australia, never had the means nor the inclination to learn how to drive and, when challenged on the subject, would always tritely reply that the only person she might harm while riding her bike was herself. Throughout most of my younger years, my father was employed as an engineer at a company called Thiokol in nearby Howell Valley which was about an hour’s commute by carpool from the town of Logan each day. He would leave for work at 6:00 AM and would generally not be home before 5 PM. Since Logan then did not have anything that might be called mass transit, if my mother, my siblings, and myself wanted to go any distance, we either had to walk or ride our bikes. The benefits of riding were real and obvious. It did not take me very long to learn that there was no part of the town or the valley that was inaccessible to me and my trusty iron steed. As I passed from being a moody teenager to being an even more moody more-or-less adult, I also learned of and grew to appreciate the therapeutic benefits that come from riding along the long country roads that stretched between small towns throughout the valley. The feeling of moving at fifteen to twenty miles an hour or more powered solely by my own body, the cooling wind on my face, the ability to immerse myself in the beauty of the environment in which I pedaled, and the zen-like mindfulness that came from a singular purpose and concentration all combined to make these experiences addictive and meaningful. I rode the same paths with variances over and over and never felt like the experience was repetitive.</p><p>I am saddened to admit that this close relationship with my bikes waned when I got my driver’s license and discovered the joys of riding a motorcycle on dusty mountain roads. Regardless, my interest in and love for bikes never completely disappeared. Through the years, I have owned, ridden, and loved a long succession of bikes from the first twenty inch Huffy on which I learned how to ride. I bought my first road bike, a KHS steel frame (known in those days only as a ten-speed) from an older brother who had literally outgrown it. I bought my first mountain bike, a Trek 6000 aluminium framed beauty at the ripe old age of twenty-one. Within in the year, I had to replace the front wheel on that bike after I crashed on top of and deformed it while riding down Bunchgrass Hollow. I have had many other more or less entertaining occurrences of meeting the ground on less than desirable terms and bear various scars as remembrances of these occasions. I was given a vintage Motebecan touring bike by a dear friend and neighbour and it became my principal mode of transport for years before the aluminium spoke ring on the back wheel hub literally crumbled to pieces. I still have that bike but am indecisive about repairing it because it has a very unique drive-train and storied past. I still have the remnants of my first and only full suspension mountain bike which I rode with my Boy Scouts around the fifty mile circumference of nearby Bear Lake (it suffered a tragic fate beneath the wheels of a truck due to my own negligence in not laying it down in a safe place). The black Specialised Stump-Jumper hard tail mountain bike that we bought for my oldest son when he was twelve has been driven by him, his younger brother, and myself through the years and has managed to draw blood from both of them but not myself (miracle of all miracles) and was given to a friend of my sons. My trusty Giant hard-tail served me as my primary commuter for years after a tragic motorcycle crash (a hit and run driver turned in front of me in an intersection) before the pain and stiffness in my hips made it impossible to for me to mount. I have a worn-through tire rim and bald tire that hold pride of place on my garage wall (my wife does not share my sense of decor). Finally, my treasured Gazelle e-bike that I was able to purchase this year and has allowed me to resume riding even after recovery from hip surgery. All of these machines have been friends and treasured companions throughout the many years. It is very easy for me to understand those (amongst whom I may be) that tend to hoard their bikes. I offer all of these things as evidence of my bonafides as a fair dinkum bike nut.</p><p>Riding a bicycle is by necessity an intimate experience both physically and mentally. Most, if not all of the machine’s components are in full view and their operation and function is both obvious and simple. I have been informed but won’t bother to confirm that a bike is one of the most efficient machines ever created by man. Excluding road friction and wind resistance, a well tuned bicycle drive-train is capable of over 95% efficiency (far better than the rider) in converting the force on the pedals to torque on the wheels. Unlike a car, a bike cannot function at all without its driver as an integral component. Indeed, the human and the machine tend to become one. I can also attest after numerous unplanned mishaps that this tendency can unexpectedly tend towards being invasive in uncomfortable ways. The experience is not all wild flowers and sunshine. A bicyclist is also fully immersed in and subjected to the environment in which they ride. This can unfortunately include rain, headwinds, and ice slush (otherwise known as snirt) on the side of the road. On the flip side, that same cyclist will also experience sunshine, wildflowers, and inexpressibly beautiful vistas because of that same immersion.</p><p>Bicycles are quiet and efficient. Beyond the energy and material involved in their manufacturing process and things such as occasional replacement tires, tubes and other parts that tend to get worn out and should be acknowledged with pride, bicycles require very little in terms of resources in order to perfectly perform their intended function. They are far more amenable to a huge variety of paths and surfaces than any motorised vehicle could hope to be. Bicycles do not require vast acres of tarmac covered parking lots that bake in the summer sun. Bicycles do not require ever widening and more dangerous roads that are toxic to all life (if you don’t believe me, pay closer attention to the sides of the roads as you drive). Bicycles do not require the blood sacrifice of innocent animals on the tarmac altars we have built to our cars. Bikes do not require unsightly and sulphurous smelling refineries nor a vast fleet of tankers and trucks to carry their products. It is far too easy for me to divert myself on a rant on the shortcomings and evils of our increasingly car centred culture so let me summarise this list with the most succinct expression I can muster: Bicycles, as a means of local and even far distance transport, work far better at a human scale than automobiles ever could.</p><p>What bikes DO need are people that are passionate about improving their own lives and making our communities safer and more livable. Perhaps I misspeak, Bicycles do not need these things. <strong>WE DESPERATELY NEED THESE THINGS</strong>. It is fellow humans who suffer as formerly livable neighbourhoods are cut up and isolated in order to accommodate the ever increasing and never satisfiable demands of traffic congestion. All humans and animals suffer from the pervasive effects of noise pollution that originates from tire and engine noise. We all breathe the remnants of tire dust that is continually ground into the pavement by millions of tires travelling at high speeds. All of us are susceptible to the increasing threat to life and health created by an endless stream of distracted drivers going too fast merely to accomplish the most inane tasks. It is our children who suffer from lost opportunities to connect to nature and each other as more green space is sacrificed to ever expanding suburbs. Most of all, it is our children and their children’s children who will pay the unbearable cost of our profligate waste.</p><p>For those of us that literally have a few years stacked behind our belts, it doesn’t require any training in climatology to weigh the difference in places that we know now with the places we knew as children. One does not need to use computer models to recognise the increasingly chaotic and harmful weather patterns all over the planet that have been very obvious for many years now. To all but the most insensate amongst us, it must be increasingly clear that the resources and demands on our environment caused by our lifestyles and greed cannot be sustained without leaving a deplorable and unbearable cost to be borne by our descendants who will likely curse us as the short sighted fools that we are.</p><p>The recent pandemic, if it accomplished nothing else of good, should have taught us both the benefits and desirability of slowing down, choosing to build and to strengthen our families and connections to each other. These things, while idealistic, should not be considered to be unreasonable or impossible to achieve. They are not impractical dreams that must be inevitably punctured and deflated by ugly reality. The power of choice and change are available to us both individually and collectively if we but muster the will to seize it. We all desperately need livable, clean, and human scale communities. We all suffer from the loss of connection and the inevitable divisiveness that comes with that loss. We all need to eliminate the hostility that seems to have grown to dominate all of our spaces both public and private. We are all human beings, children and inhabitants of an astoundingly beautiful and provident planet that abounds with delicate balances and cycles that make our lives both possible and pleasurable. We all have far more in common that unites us than the artifices that we have fabricated to divide us. We can and must work together to heal and preserve our precious home so it can be inherited unsullied by our children.</p><p>Perhaps, it is far too late. Perhaps we have in our greed and inaction allowed too many tipping points to pass us by. In moments of depression and despair, I can believe that this may be so. That it has happened, is happening, and will happen regardless of anything that I might personally do. It may be that all of my efforts will be futile but I cannot and will not give into this belief. While there is breath in my lungs and strength in my limbs, I will not give up trying to be better myself and attempting to shore up the walls of my community. If nothing else, my hope is that my children and other youth with whom I have had the privilege of association and friendship will know that I never gave up working, speaking out, praying, and … riding my bike with the explicit purpose of preserving for them and their descendents the beauties that I have been allowed to enjoy all my days.</p><p>This article has transformed into something far different from what I originally envisioned. I had meant to write about how much I have come to appreciate the pleasure of riding my bikes. I wanted to share how this activity has helped me deal with the very recent challenges of loss of function in my hips and the loss of both my parents over the past two years. All of these benefits are true and precious to me. Nevertheless, I have written the message that I have felt most deeply needs to be shared and shouted from the roof-tops. if nothing else, I would hope that my ramblings might have inspired you to dig your bike out of the pile of unused equipment in your garage or storage area and to rediscover the joys of riding. I thank you, dear reader, with all my heart for your consideration in taking time to read my poor and imperfect words. I hope that they can give you reason to hope and to act. Most of all, I hope that these words have been true to the spirit or repairing rather than rending, healing rather than wounding, and uniting rather than dividing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3af3625018" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Does Free Speech Mean?]]></title>
            <link>https://medium.com/@jtrauntvein/the-term-thought-police-cannot-be-interpreted-outside-of-the-novel-1984-which-gives-a-c39af11c01b1?source=rss-f21cdd3bade9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c39af11c01b1</guid>
            <dc:creator><![CDATA[Jon Trauntvein]]></dc:creator>
            <pubDate>Tue, 21 Feb 2023 22:20:53 GMT</pubDate>
            <atom:updated>2025-05-15T18:14:20.905Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Authors note: This diatribe originated as a comment to an article that must have been retracted or deleted.</blockquote><p>The term &quot;thought police&quot; cannot be interpreted outside of the novel, 1984, which gives a horrifying vision of what can happen when the STATE takes measures to suppress or remodel the governed populations opinions and attitudes. Self proclaimed &quot;conservatives&quot; have gone out of their way and stumbled all over themselves crying about how their infantile opinions (I just realised that the use of this adjective represents an affront to infants everywhere but I am unable to think of an adjective that might be more apropos) because publishers and web sites (which are explicitly NOT government entities) refuse to allow them to proclaim their idiocies (I just realised that this adjective might be an affront to all idiots. You have my more or less sincere apologies) and detritus with abandon. Heaven forbid that there should be a societal standard for polite conversation and behaviour!</p><p>What confuses me regarding this article and its ilk is that, with impartial analysis, the majority that advocates for intrusion into personal lives seems to come from this same set of self-proclaimed &quot;conservatives&quot; that are whining so much about their rights to free speech being trodden upon. These self-serving, loud-mouthed, incoherent people seem to be intent upon preserving their &quot;liberty&quot; at the expense of the rights and privacy of the downtrodden portions of our society. It is not the &quot;liberals&quot; that are insistent upon banning books, modifying curriculum to hide the atrocities of our past because they don&#39;t want to feel guilty or do anything to correct the continuing results of those atrocities, banning the forms in which an individual may dress or express themselves in public, undermining or denying the rights of a large portion of our population that don&#39;t fit their overly binary view of the world, and denying the rights of women to have control over their own bodies.</p><p>So please tell me again, perhaps in a more coherent format, of your suffering from non-existent thought police or why you think that civility, decorum, and respect for individual rights somehow crushes your soul.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c39af11c01b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>