<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>combo.cc</title>
    <subtitle>combo.cc</subtitle>
    <link rel="self" type="application/atom+xml" href="/atom.xml"/>
    <link rel="alternate" type="text/html" href="/"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-12-18T00:00:00+00:00</updated>
    <id>/atom.xml</id>
    <entry xml:lang="en">
        <title>It&#x27;s all about momentum, innit?</title>
        <published>2025-12-18T00:00:00+00:00</published>
        <updated>2025-12-18T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/its-all-about-momentum-innit/"/>
        <id>/posts/its-all-about-momentum-innit/</id>
        
        <content type="html" xml:base="/posts/its-all-about-momentum-innit/">&lt;h1 id=&quot;it-s-all-about-momentum-innit&quot;&gt;It&#x27;s all about momentum, innit?&lt;&#x2F;h1&gt;
&lt;p&gt;In physics and in your life, the only metric you should care about is momentum.&lt;&#x2F;p&gt;
&lt;p&gt;I enjoy rally games. What made them truly click for me is understanding that rally driving is all about weight transfer. A car is a spring, and any of your inputs, throttle, brake or steering, unsettles the 1000 kg of steel you&#x27;re controlling in a particular direction. If you brake too hard, most of the weight moves forward, your steering wheels will have better grip but could easily lock up; the back of the car lifts and sends you spinning. If you steer too hard in one direction, the lateral forces could make you tip over. This phenomenon is especially noticeable when driving older rally cars, which do not have modern tyres and quick-responding engines. You need to remain mindful that you are controlling a hunk of metal moving at large speed, and you need to apply the &lt;em&gt;least&lt;&#x2F;em&gt; amount of force to nudge it in the direction you want. The last thing you want to do is to be abrupt with your inputs and velocity changes.&lt;&#x2F;p&gt;
&lt;p&gt;People naturally resist change, and even more so as they get older. We pursue the ideal of being flexible and agile, but that&#x27;s all aspirational nonsense that is often demanded of us, despite the reality that deep down we are more akin to freight trains, let alone rally cars. Slow to start, slow to change direction, and only once we get going the magic happens.&lt;&#x2F;p&gt;
&lt;p&gt;Take the mandated two weeks of yearly holidays, for example. Have they ever been restorative? After a whole year of being immersed in your work, worrying about your daily chores, it&#x27;s going to take a while to switch off, and a while longer to actually start to get used to the fact that you are in an unfamiliar setting, sleeping in an unknown bed. Why even subject yourself to all this stress for little benefit, one wonders. Your habits and routine condition your momentum, and anything unfamiliar, even if it is sitting on a lovely beach, will feel uncomfortable, and uncomfortable again readjusting to working 40 hours a week.&lt;&#x2F;p&gt;
&lt;p&gt;In the past 3 years I have picked up the habit of dedicating the morning hours of 9 to noon for creative, mental work. Every morning starts a blank slate, the stresses of yesterday hopefully digested and integrated into my psyche by sleep. What I quickly learned is that whatever I do in the first hour after waking up will set the tone for the entire day. If I read social media, my head will fill with nonsense I truly don&#x27;t give a shit about, and will develop into a thirst for quick dopamine which escalates as the day rolls by. Any action, really, will set me in a particular direction and then it&#x27;s too late to do anything about it. The only thing that has been working for me is to be completely intolerant of any distractions in the morning. Until noon, my phone is silenced. My email client is closed. Social media is blocked on all my devices. My chores and admin work are scheduled for the afternoon. This routine doesn&#x27;t always work out, urgent matters might waste my precious morning, and it&#x27;s healthy to accept that I can try and salvage the rest of the day, not to end up scrolling the internet all day.&lt;&#x2F;p&gt;
&lt;p&gt;Cal Newport talks about this exact idea in his book about deep work, but deep work is the just the result of being mindful of your momentum, of being the conductor of a freight train. Truly, the difference between your TV-bingeing self and your dream of being a writer has never been about willpower, or practice, or to never have acquired a taste for the liquor. It is all about being extremely jealous of your attention, setting aside time to pursue your craft and changing your whole life around this dream of yours. The train needs enough space to maneuver and to get going. On the other hand, creativity has never been about sheer effort; you don&#x27;t need much sweating to go far. Consistency is key. Thirty minutes a day are much better than one day a week.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The act of creation</title>
        <published>2025-11-16T00:00:00+00:00</published>
        <updated>2025-11-16T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/the-act-of-creation/"/>
        <id>/posts/the-act-of-creation/</id>
        
        <content type="html" xml:base="/posts/the-act-of-creation/">&lt;h1 id=&quot;the-act-of-creation&quot;&gt;The act of creation&lt;&#x2F;h1&gt;
&lt;p&gt;It was late in life when I learned that creativity isn&#x27;t supposed to
be a pleasant process, self-expression pouring out of the artist as
easy as you and I would breathe.&lt;&#x2F;p&gt;
&lt;p&gt;My own thoughts woke me before dawn, a restless cacophony from a part
of my brain with no concern for sleep or plans for the next day.
Always contriving, whenever it announces itself I am at its mercy.&lt;&#x2F;p&gt;
&lt;p&gt;I got up, made some coffee, pen and paper already on the kitchen table
as I knew the fucker would present itself at the least opportune
time and I&#x27;d have to help the process through. Straining,
reprieving, making space, scrambling for purchase. My thoughts are
jumbled mess, what felt promising minutes before now comes
frustratingly short of the target, unable to condense on paper that
ineffable feeling.&lt;br &#x2F;&gt;It was too soon, I offer, back in control of my own
faculties — unsatisfied.&lt;br &#x2F;&gt;Yes, it will feel good to get it out of my
system.&lt;&#x2F;p&gt;
&lt;p&gt;Creativity is being given a locked box containing a piece of your
soul, its key shattered in a million pieces. If you sit still,
you can hear God cackling in the background.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Permanence</title>
        <published>2024-09-18T00:00:00+00:00</published>
        <updated>2024-09-18T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/permanence/"/>
        <id>/posts/permanence/</id>
        
        <content type="html" xml:base="/posts/permanence/">&lt;h1 id=&quot;permanence&quot;&gt;Permanence&lt;&#x2F;h1&gt;
&lt;blockquote&gt;
&lt;p&gt;No man ever steps into the same river twice, for it is not the same river, and he is not the same man.&lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I dislike having a blog, a collection of curated thoughts, left for posterity. My thoughts are far from ordered and coherent most of the time, and never permanent.&lt;&#x2F;p&gt;
&lt;p&gt;One of the reasons the digital world feels so unnatural is that software is built to retain data indefinitely, mostly because we, the human programmers, loathe the idea of abandoning something we believe we might need later.&lt;&#x2F;p&gt;
&lt;p&gt;For us, any thought seems complete and conclusive, and part of human condition is forgetting time and time again that permanence in Nature is an illusion. In our natural state, we think, change our minds, forget, return to the idea, abandon it, all in one smooth motion. I am no more the person that wrote those words, and those words do not represent me any more. Why should I carry them around with me, baggage from another person?&lt;&#x2F;p&gt;
&lt;p&gt;I wonder whether we can make the human side of the Internet inherently forgetful, so as to respect the chaotic and evolving nature of reality.&lt;&#x2F;p&gt;
&lt;p&gt;By the time these words will have been edited and stored into the ether, I will be long gone.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The Firehose</title>
        <published>2024-07-03T00:00:00+00:00</published>
        <updated>2024-07-03T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/the-firehose/"/>
        <id>/posts/the-firehose/</id>
        
        <content type="html" xml:base="/posts/the-firehose/">&lt;h1 id=&quot;the-firehose&quot;&gt;The Firehose&lt;&#x2F;h1&gt;
&lt;p&gt;I&#x27;m tired. I find myself more and more isolated from the world. As I try to strike a balance between my creative endeavours and my daily chores, I keep wondering where all my time, and energy, disappears to. Most of it seems to turn into dust too weak to direct productively, and too small to try and conserve, not unlike pennies that disappear between folds of my couch.&lt;&#x2F;p&gt;
&lt;p&gt;After my morning session of undistracted work, I try and catch up with the world the best way most of us know how to. Check the latest news - we&#x27;re less than one week away from an election. What&#x27;s new on the Hacker News front page? Let&#x27;s read the latest discussions on the F1 forum. In the evening, after a long and exhausting day, YouTube is my main source of entertainment, with dozens of channels I follow cranking our excellent quality content to rival the best of TV documentaries of yesteryear. How can one ever be bored, and not up to date with the rest of the world?&lt;&#x2F;p&gt;
&lt;center class=&quot;my-16&quot;&gt;⁂&lt;&#x2F;center&gt;
&lt;p&gt;I&#x27;m tired and I didn&#x27;t sleep well. The sky is overcast, and it&#x27;s cold for July. My earthly existence is often pretty pathetic and, behind the screen where everyone lives and where the world seems to happen, lies my sanctuary. &#x27;There&#x27; feels more home than &#x27;here&#x27;. But I am not ready to abandon the weakness of my flesh and upload my consciousness into the machine just yet. In those rare moments away from the screen I can still hear the faint, billion-year voice that reminds me that here, in the grey cold and tired meatsack leading an ordinary life, contentment can be found. Here is where I am meant to be.&lt;&#x2F;p&gt;
&lt;p&gt;Reality could never compete with the Firehose. Endless streams of information our brain tells us is important. All that you ever wanted to know about your loved ones, never miss a birthday or a smile. The entire compendium of human knowledge at your fingertips, in real time. The Firehose knows everything about your current hobbies, and your future ones. Find a discussion about your favourite TV show, seek people agreeing with you, paying attention to you, arguing with you, having sex with you, every time, every moment, forever. The Firehose has everything want, and everything you don&#x27;t even know you want.&lt;&#x2F;p&gt;
&lt;p&gt;I often dream of a world where machines lift humanity into a world of content symbiosis with nature, where we have abandoned the urban prison and are able to create and stay in touch with everyone in the world, from within our automated gardens in the verdant countryside. Exploring this daydreamed utopia, I try not to think too hard about how these machines came to be, who and how programmed them. What&#x27;s behind the screens people like me stare for hours to make these dreams a reality, because I know what lies underneath the glass of screens and fibre optic cables.&lt;&#x2F;p&gt;
&lt;p&gt;It is very hard for me to imagine the Internet without its firehose of recommendation algorithms, the stream of social media updates and mobile notifications. Apps competing for our attention, molding and adapting their digital spaces to retain our attention for as long as possible. As everyone spends an increasing portion of their lives within the expanding firehose, unplugging is to willingly choose a deeper state of isolation and loneliness from the last remaining human contact, now mostly existing in digital form. The Internet once was a tool to augment people&#x27;s lives, to communicate and to learn, until the day the machine started to tell us what is important and what we should pay attention to. Now you just have to open your mouth and the firehose will keep you fed, engaged and stimulated.&lt;&#x2F;p&gt;
&lt;p&gt;Deep within me, I know I do not need it. I don&#x27;t really care about knowing every single moment of my loved one&#x27;s digital existence. I don&#x27;t really care about the latest interesting video documentary about a topic that satisfies my curiosity but has no relevance with the rest of my life. All I ever wanted was to talk with the people I love, in real time, once in a while to keep in touch, and to use the Internet as a library that only I visit when I need. I want Internet to be a toolbox that helps me create, not an IV of morphine and dopamine which makes me hallucinate an engaging life, while my soul and fire gets drained drip by drip. I&#x27;m tired and only the zombies like me remain, plugged into the matrix, always hungry for more, better, flashier.&lt;&#x2F;p&gt;
&lt;p&gt;I keep wondering whether we should introduce artificial limits to our digital lives to find a happier balance. What if you can only make one social media post per week, what would you have to say? What if your chat app didn&#x27;t remember everything that was said while you were away? What would happen if online communities were limited to 100 users? What if you could only speak with people living 50 miles from you?&lt;&#x2F;p&gt;
&lt;p&gt;What if we stopped having front pages on our social media websites?&lt;&#x2F;p&gt;
&lt;p&gt;What if we stopped creating recommendation systems?&lt;&#x2F;p&gt;
&lt;p&gt;What if the machines were to release us, and let us go back into the world?&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Community</title>
        <published>2024-04-14T00:00:00+00:00</published>
        <updated>2024-04-14T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/community/"/>
        <id>/posts/community/</id>
        
        <content type="html" xml:base="/posts/community/">&lt;h1 id=&quot;community&quot;&gt;Community&lt;&#x2F;h1&gt;
&lt;p&gt;I grew up in a sleepy hamlet in Northern Italy, sat right between the growing hills that form the Alps, and the vast Po Valley to the south. We are known for the Arborio and Carnaroli rice that are grown in this area, though no one ever talks about the billions of mosquitos that also thrive in those rice fields. Though I&#x27;ve never been, I always thought it would feel a lot like West Virginia. When John Denver sings, I think of Piedmont.&lt;&#x2F;p&gt;
&lt;p&gt;Less than two hundred people lived in that village, of which only five or six were about my age. My father was a brilliant, curious man, and the knowledge he loved to share made me the person I am today. But as I got older, I started being hungry for more. More people, more knowledge, more experiences.&lt;&#x2F;p&gt;
&lt;p&gt;You see, in remote villages in the middle of nowhere, everything is spread out. Your school is 5 kilometres away, your friends are 10 kilometres away, and maintaining friendships soon becomes a logistical problem, one which solution was outside of my reach. Socialization could then only happen during school hours, while the rest of my day was spent learning about the world in books, lonelier than ever. Luckily for me, this is about the time the Internet arrived in town.&lt;&#x2F;p&gt;
&lt;p&gt;I spent my 14 to 19 doing a lot of late night coding, but more importantly, exploring the world through my computer. Community soon followed, when I found a link to a chat service offered by my Internet service provider. I clicked one on one random chat room, dedicated to the TV Show &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Buffy_the_Vampire_Slayer&quot;&gt;&quot;Buffy the Vampire Slayer.&quot;&lt;&#x2F;a&gt; I never cared about vampires, but here are a lot of kids my age, I might stay a while. And even better for a lonely teenage boy, a lot of girls tend to be into vampires.&lt;&#x2F;p&gt;
&lt;p&gt;On IRC I made my first friends and found my new home. I would spend most of my afternoons gossipping, flirting or talking about anything I cared about with strangers. I met my first few girlfriends. Through the Internet, armed with more knowledge than I would ever need, I learned to become independent, make some money and get out from the hamlet, even if only to meet my latest love-of-my-life. And in the matter of a few years, I learned to thrive in a solitary existence that hid a rich social life no one really knew about. I was lonely, with a ton of friends.&lt;&#x2F;p&gt;
&lt;p&gt;When I was 19, I was two thousand kilometres from home, spending a holiday with a girlfriend when my father suddenly passed away. The world came crashing down, as it usually does, until a school friend asked &lt;em&gt;&quot;hey, would you like to move to Milan? We&#x27;ve got a spare room.&quot;&lt;&#x2F;em&gt;&lt;&#x2F;p&gt;
&lt;center class=&quot;my-16&quot;&gt;⁂&lt;&#x2F;center&gt;
&lt;p&gt;I am still ambivalent about my first job. Their modus operandi was to hire junior computer nerds like me, pay them peanuts and throw them in at the deep end. Within a month of getting hired, I was sent away for a week to teach Linux systems administration to literal soldiers. It was a disaster. The lessons went well, actually, but do not trust a 19-year-old not to be hung over from the night before his teaching job. Soldiers are not keen on this sort of stuff. Still, when I was put to do more ordinary coding and sysadmin work, I managed to learn at tremendous pace.&lt;&#x2F;p&gt;
&lt;p&gt;It&#x27;s in this meat grinder for computer nerds that I met my first good mate in the big city. He&#x27;s of that charismatic tribe of people for whom making friends is just as natural as breathing. Later that night after meeting him I got introduced to his group of friends and in months, my social circle just kept expanding and expanding.&lt;&#x2F;p&gt;
&lt;p&gt;After work, unless I was exhausted or felt the need to be on my own, the default choice was to go spend the rest of my evening at my friend&#x27;s. He first lived in a small flat, and later moved in an artsy, open-space loft, and wherever he lived, he always had guests over. Charismatic people always have this entourage with them, and you never know who&#x27;s gonna pop over to say hello and might stay over for dinner. To me, and dozens other, my friend&#x27;s house was the focal point of an impromptu community. Bring an acquaintance, and there&#x27;s a good chance they become a regular. In those evenings some might play video games, another might put on some music, and two other might meet for the first time and strike a lifelong friendship in this ever-flowing primordial soup of 20-something people &lt;em&gt;just hanging out&lt;&#x2F;em&gt;. These are some of happiest moments in life and my most treasured memories.&lt;&#x2F;p&gt;
&lt;p&gt;I still adored my time alone, in melancholic introversion you might say, but once again, I found peace in this shade between full-on socialization and loneliness. All it took, was a place to aimlessly hang out, with other people.&lt;&#x2F;p&gt;
&lt;p&gt;Life is change, and change also came for this community. I am still friends with a lot of them, many more I lost contact with through laziness and inaction, but the group dissolved, and we all floated in our separate directions.&lt;&#x2F;p&gt;
&lt;center class=&quot;my-16&quot;&gt;⁂&lt;&#x2F;center&gt;
&lt;p&gt;I am in my mid 30s now, I have moved once again, now to another country, and am still the curious introverted person I have always been. But the communities I have lost haven&#x27;t been easy to replace. It is now in hindsight that the two places I found home in were either endangered, or an exception to the rule. I have spent a lot of my time on the Internet, but friendship hasn&#x27;t been easy to create in this place. Faces scroll by endlessly, and tend to be mocking or frowning. Even my childhood friends are so consumed by their modern and efficient lives they barely have time to meet for a beer. The Internet is all we need to socialise and find community, we keep telling each other.&lt;&#x2F;p&gt;
&lt;p&gt;What truly saddens me, as a computer person, is what was once the haven of instant, unprejudiced communication free from any restraint, has simultaneously become the foremost focal point of our lives, while also becoming more isolated than real life could ever be. The vastness of the Internet is now reduced to a handful of towers of Babel, where the cacophony is incessant, and everybody is trying to shout into the void. If you listen carefully, you might hear them whisper &lt;em&gt;&quot;I am here. Can anybody see me?&quot;&lt;&#x2F;em&gt; We are so reduced to thinking about practicalities that we have lost any sort of vision of what a modern, digital community could and should look like, if this is to be where we spend all of our lives.&lt;&#x2F;p&gt;
&lt;p&gt;Teenage kids today do not have any easily accessible, open platforms for discussion that are not controlled, monitored, rigid but also are not tainted, manipulated and infiltrated. All we have today are islands, that promote tribalism if not stagnation, rather than allowing a constant supply of new faces and ideas. 1998 IRC was the secret club that met in the woods, 2024 Discord is a stone fortress run by people who make bureaucracy their hobby. Most of my younger readers would readily defend their Discord forts, but who can blame them, when this is all you have ever known?&lt;&#x2F;p&gt;
&lt;p&gt;In real life, neither teenagers nor adults are fortunate enough to enjoy what is commonly referred to as a &lt;em&gt;third place&lt;&#x2F;em&gt;, the social setting that&#x27;s not family nor work. When I was hanging out at my friend&#x27;s, the third place had already been extinct for a hundred years. As soon as one&#x27;s school life ends, hanging out aimlessly in a sort of club gets replaced by &quot;doing something&quot;. Let&#x27;s go have dinner. Let&#x27;s go to the movies. Sorry, I gotta check my calendar and will get back to you. Our in-person socialisation only revolves around spending money to do something, rather than just sitting with our thoughts, being bored together. I have always been fascinated by old American movies, where even in larger cities, people would just hang out in their front porch; before you know it, a neighbour would stop to have a beer and a little chat.&lt;&#x2F;p&gt;
&lt;p&gt;The solution is easy, I&#x27;ve been told. I should just become like my charismatic friend and create my own following, as if everybody was living a fulfilling and effortless social life, and somehow I never got the memo.&lt;&#x2F;p&gt;
&lt;p&gt;It might seem that we are becoming so used to our fractured existence, atomic families and cripping loneliness. Yet, if you look where the younger generations hang out online these days, even to them is apparent that whatever we are doing right now, is simply not good enough, and the hunger for community and belonging is stronger than ever. And all we&#x27;re doing, is building yet another Twitter.&lt;&#x2F;p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>What I would like to see in a modern Virtual Machine</title>
        <published>2023-08-20T00:00:00+00:00</published>
        <updated>2023-08-20T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/what-i-would-like-to-see-in-a-modern-vm/"/>
        <id>/posts/what-i-would-like-to-see-in-a-modern-vm/</id>
        
        <content type="html" xml:base="/posts/what-i-would-like-to-see-in-a-modern-vm/">&lt;h1 id=&quot;what-i-would-like-to-see-in-a-modern-virtual-machine&quot;&gt;What I would like to see in a modern Virtual Machine&lt;&#x2F;h1&gt;
&lt;p&gt;As I was gathering inspiration (or &lt;em&gt;doing research&lt;&#x2F;em&gt;, if you want to be fancy about it) for the fully-introspectable computing platform introduced &lt;a href=&quot;&#x2F;posts&#x2F;in-search-of-the-holy-grail&#x2F;&quot;&gt;in the previous post&lt;&#x2F;a&gt;, I figured it might be worth taking the idea of abstracting the hardware, to make user-facing software easier to program, to its limit.&lt;&#x2F;p&gt;
&lt;p&gt;One of primary roles of an operating system kernel is to provide a unified interface over hardware, so applications and developers can concentrate on their task without having to care about intricacies and particularities of the hardware the entire stack sits upon. (The other role of the kernel is to multiplex access over hardware.) If you stop to think about it, that&#x27;s the same goal of a Virtual Machine, which instead of abstracting over your peripherals, it provides an abstraction over the CPU itself.&lt;&#x2F;p&gt;
&lt;p&gt;Effectively, there is no conceptual difference between a kernel and a virtual machine, if not for historical reasons. One abstracts over one thing, the other over everything else. What happens if we unify them?&lt;&#x2F;p&gt;
&lt;p&gt;Let&#x27;s imagine what characteristics a potential kernel&#x2F;VM hybrid might have, and what I &lt;em&gt;wish&lt;&#x2F;em&gt; it would have to truly shine over the status quo.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;language-independence&quot;&gt;Language independence&lt;&#x2F;h2&gt;
&lt;p&gt;Language independence is by itself a novel idea, as most VMs are tailor-made for a specific language, often little more than an afterthought added when a naive AST interpreter is deemed to slow.&lt;&#x2F;p&gt;
&lt;p&gt;x86, ARM, etc. are a common target for thousands of languages, but in the VM world you have the &lt;em&gt;Java&lt;&#x2F;em&gt; virtual machine, the &lt;em&gt;CLR&lt;&#x2F;em&gt; virtual machine for .NET languages, the &lt;em&gt;Python&lt;&#x2F;em&gt; bytecode interpreter and so on. Why is that?&lt;&#x2F;p&gt;
&lt;p&gt;WASM might be the first serious step towards a language-independent, generic VM implementation whose sole reason is to exist as a target for native, interpreted, high- and low-level languages alike.&lt;&#x2F;p&gt;
&lt;p&gt;A kernel&#x2F;VM hybrid should allow multiple languages and environments to flourish, focusing on being as generic as possible.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;memory-allocation-primitives&quot;&gt;Memory allocation primitives&lt;&#x2F;h2&gt;
&lt;p&gt;The most annoying part of writing any sort of VM, yet a step required by any language a little more complex than Brainfuck, is implementing a garbage collector. In fact, the speed of a language is to a large extent determined by the quality of its garbage collection algorithm. Is it using a naive mark-and-sweep collector hacked together in an afternoon, or is it a concurrent, generational GC like the state-of-the-art one found in the Java world? I wonder how many languages have died because of their memory allocation subsystem.&lt;&#x2F;p&gt;
&lt;p&gt;Garbage collection also dictates how the applications interact with the outside world, especially when sitting on an existing operating system, which might mandate a particular memory layout and ABI. For example, the Go runtime has to jump through hoops (CGo) in order to interact with the rest of the C and Linux environment because of its different memory allocation semantics.&lt;&#x2F;p&gt;
&lt;p&gt;There is no reason why every single language running on this hypothetical VM should have to reimplement yet another terrible garbage collector. WASM still hasn&#x27;t standardised its GC primitives that would make writing higher-level-than-Rust languages a great deal easier.&lt;&#x2F;p&gt;
&lt;p&gt;A kernel&#x2F;VM hybrid should take care of allocating memory and freeing when it is not in use anymore. Then solve the &quot;how do we make garbage collection really, really fast?&quot; once and for all.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;first-class-pointers&quot;&gt;First class pointers&lt;&#x2F;h2&gt;
&lt;p&gt;We all know by now of Tony Hoare&#x27;s billion-dollar (I&#x27;d even say &lt;em&gt;trillion-dollar&lt;&#x2F;em&gt;) mistake, the invention of the null pointer.&lt;&#x2F;p&gt;
&lt;p&gt;A serious kernel&#x2F;VM hybrid worth its code should make invalid memory references just impossible to construct in the first place. The VM should offer no way of turning a number into a pointer, basically.&lt;&#x2F;p&gt;
&lt;p&gt;So how is pointer formed, and how the heck do you interact with memory then? This is an area of active research for me, but here&#x27;s what I&#x27;ve got so far:&lt;&#x2F;p&gt;
&lt;p&gt;VM words have a 1-bit tag, to distinguish between &lt;em&gt;pointer to an array of memory&lt;&#x2F;em&gt; and &lt;em&gt;not-a-pointer&lt;&#x2F;em&gt;. Pointers have a length (stored in the immediately previous word in memory), are allocated by the primitives I mentioned in the previous section, thus cannot be constructed from a raw number. Pointer arithmetic, the type commonly found in C, is completely disallowed. When you want to interact with memory you can only do it by using this pointer and an index, which is bounds-checked to disallow writing outside your allotted space. In other words, you&#x27;re only allowed to do &lt;code&gt;p[index++] = ...&lt;&#x2F;code&gt; but not &lt;code&gt;*p++ = ...&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;p&gt;This design avoids all the nastiness associated with invalid memory access patterns, which are often silent on regular bare-metal systems. Here, if you try to access an array outside its bounds, that&#x27;s a bug, just kill the process. If you try to allocate memory and there&#x27;s no memory available, you have bigger issues at hand, and you might as well turn the machine off, so effectively, memory allocation is &lt;em&gt;guaranteed&lt;&#x2F;em&gt; to succeed.&lt;&#x2F;p&gt;
&lt;p&gt;Of course, you wouldn&#x27;t be able to implement C on top of this platform — but honestly, so what?&lt;&#x2F;p&gt;
&lt;p&gt;If you allow me a small rant, I do believe there is something wrong in our assessment of computer performance if we have to resort to manual memory management as seen in C, or complex memory semantics as seen in Rust, to be able to squeeze out decent performance and to avoid &lt;em&gt;wasting memory&lt;&#x2F;em&gt;. I&#x27;m writing this post on a machine with 64,000,000,000 bytes of memory, that runs more than 4,000,000,000 instructions &lt;em&gt;every single second&lt;&#x2F;em&gt;. If one wants to avoid wasting resources, it might be worth to review the entire stack so an editor on such an absurdly fast machine doesn&#x27;t open slower than EDIT.COM did on DOS. Our computers are not slow because of VM-level array-bounds checking and garbage collection, but in fact, our quest for performance at all costs is what has allowed us to build this unnecessary tower of complexity in the first place, and it&#x27;s the reason software today feels slower than it did yesterday.&lt;&#x2F;p&gt;
&lt;p&gt;So, good riddance to manual memory allocation. We don&#x27;t need it where we&#x27;re going.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;first-class-concurrency&quot;&gt;First class concurrency&lt;&#x2F;h2&gt;
&lt;p&gt;Even the most established VM designs today completely paper over the fact that we live in a multicore world, and so hide any potential to leverage this power behind runtime functions and ceremony the end-user itself has to officiate, just to be able to split some of that workload on the remaining cores. I bought a Raspberry Pico W for less than $10, it runs at 133 MHz, has 256 &lt;em&gt;kilobyte&lt;&#x2F;em&gt; of RAM, yet ships with two whole cores.&lt;&#x2F;p&gt;
&lt;p&gt;It makes no sense in this day and age to spend a lot of time figuring out the ideal number of registers or optimal opcode encoding system, without providing an instruction to run a function on a separate thread&#x2F;core&#x2F;coroutine. With the same ease I can do &lt;code&gt;CALL function&lt;&#x2F;code&gt;, I want to be able to do &lt;code&gt;SPAWN function&lt;&#x2F;code&gt;, and have it run &lt;em&gt;elsewhere&lt;&#x2F;em&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Of course, to remain memory-safe, nothing should be shared across cores, and communication should be handled at the low level. The good thing of having first-class pointers is that if you send a pointer to another core (which require a copy on NUMA systems), reusing that pointer is easily detected, the program summarily killed, which you&#x27;d catch early in development. Hopefully no more data races.&lt;&#x2F;p&gt;
&lt;p&gt;This share-nothing design would open compatibility with asymmetric architectures, where only some cores have access to a specific piece of hardware or subsystem. A forward-facing platform cannot expect we&#x27;ll keep using ginormous CPUs with a modest amount of cores and uniform memory in the near future. What&#x27;s certain is that compute is increasingly connected, and on the single core cooperative multitasking is fast enough for many applications. Concurrent programming should be as accessible as integer multiplication.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;optimised-for-simplicity&quot;&gt;Optimised for simplicity&lt;&#x2F;h2&gt;
&lt;p&gt;There are a lot of fancy features I&#x27;ve discussed here, but as with many things, the work is not done until the design is made as simple as possible, and then more.&lt;&#x2F;p&gt;
&lt;p&gt;We don&#x27;t need registers. A modern stack machine is &lt;em&gt;good enough&lt;&#x2F;em&gt;. Yes, there are multiple benchmarks that show that register machines can be 30% faster (very debatable) than equivalent stack machines. Nonsense, and if it&#x27;s true, it doesn&#x27;t matter anyway.&lt;&#x2F;p&gt;
&lt;p&gt;Register machines are too tied to the processors they&#x27;re designed to run on. How many registers is good enough? 4? Then you need more work to make use of the 16 registers on x86-64, or the 32 registers on RISC-V. 16 you say? So you need to do more work if you want to port this to an embedded system. Registers are a hardware implementation detail, the exact thing we want to abstract over in this platform.&lt;&#x2F;p&gt;
&lt;p&gt;On the other hand, stack machines are simple, and that&#x27;s their most important quality. They can be made very fast, and research in the matter has died down since the 1980s if not for Chuck Moore himself and his work on Forth processors. A decent kernel&#x2F;VM hybrid would translate its opcodes to machine code anyway, so its relative simplicity is irrelevant.&lt;&#x2F;p&gt;
&lt;hr &#x2F;&gt;
&lt;p&gt;If I were to write a Virtual Machine today, to explore a novel avenue of computation, these are the things I wish it would natively support. The only negative shared by most of these features is how they might not be as performant as the real hardware they&#x27;re running on. But my entire hypothesis is that computers are already more than fast enough, they&#x27;re just terribly mismanaged, because we&#x27;re still in the &lt;a href=&quot;&#x2F;posts&#x2F;in-search-of-the-holy-grail&#x2F;&quot;&gt;Stone Age of computing&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;To make computers fast again, I suggest rebuilding from something slow and naive. Maybe a little less powerful. As long as it&#x27;s simple to understand, this time around.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;see-also-prior-art&quot;&gt;See also &#x2F; Prior art&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;100r.co&#x2F;site&#x2F;uxn.html&quot;&gt;The uxn computing stack&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;akkartik&#x2F;mu&quot;&gt;mu - a human-scale computer&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;maximecb&#x2F;uvm&quot;&gt;UVM - A minimalistic virtual machine to combat code rot&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=0PclgBd6_Zs&quot;&gt;Programming a 144-computer chip to minimize power - Chuck Moore (video)&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>In search of the Holy Grail (of programming languages)</title>
        <published>2023-07-16T00:00:00+00:00</published>
        <updated>2023-07-16T00:00:00+00:00</updated>
        
        <author>
          <name>
            
              Unknown
            
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="/posts/in-search-of-the-holy-grail/"/>
        <id>/posts/in-search-of-the-holy-grail/</id>
        
        <content type="html" xml:base="/posts/in-search-of-the-holy-grail/">&lt;h1 id=&quot;in-search-of-the-holy-grail-of-programming-languages&quot;&gt;In search of the Holy Grail (of programming languages)&lt;&#x2F;h1&gt;
&lt;p&gt;I&#x27;ve been bitten by the Lisp bug last year, and it&#x27;s not getting any better.&lt;&#x2F;p&gt;
&lt;p&gt;It&#x27;s a pastime of mine to feel immensely frustrated with the status quo of software and computer programming in general, how clunky, unstable and unwieldy modern applications are, and how the programming community just collectively shrugs and mumbles something about &lt;em&gt;layers of abstractions&lt;&#x2F;em&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;Applications are terrible because operating systems are terrible, and operating systems are terrible not because everybody is an idiot, but simply, like Alan Kay loves to remind us, we are still in the Stone Age of software engineering and are trying to build spaceships out of sticks and stones.&lt;&#x2F;p&gt;





&lt;div class=&quot;not-prose my-8 max-sm:-mx-4&quot;&gt;
  &lt;a href=&quot;&#x2F;posts&#x2F;in-search-of-the-holy-grail&#x2F;stonehenge.jpg&quot; target=&quot;_blank&quot;&gt;
    &lt;img src=&quot;&amp;#x2F;processed_images&amp;#x2F;stonehenge.f687af911efdced9.webp&quot; alt=&quot;Software engineering in 2023, colorized.&quot; &#x2F;&gt;
  &lt;&#x2F;a&gt;
  &lt;div class=&quot;text-center text-sm lg:text-base italic mt-1&quot;&gt;
    Software engineering in 2023, colorized.
  &lt;&#x2F;div&gt;
&lt;&#x2F;div&gt;
&lt;p&gt;The reason Lisp has achieved its legendary status is that it is freeform and can represent any concept, technique and programming pattern. Lisp is no less expressive than a blank piece of paper, where any idea can be represented into it, &lt;em&gt;if&lt;&#x2F;em&gt; you know how to express it in words. Lisp is &lt;em&gt;merely&lt;&#x2F;em&gt; an unambiguous, machine-readable representation of symbolic processes. Mind you, its power doesn&#x27;t lie in the parentheses themselves, but rather because of its &lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Homoiconicity&quot;&gt;homoiconicity&lt;&#x2F;a&gt;. Language is homoiconic, and so is human thought: they are able to rewrite and transform themselves, and as such, they are potentially able to teach themselves to convey any concept. It&#x27;s not a coincidence written text is the basis of human civilization, and can represent any past, present and future idea, concept, abstraction.&lt;&#x2F;p&gt;
&lt;p&gt;Our programming environments are tools we use to understand and control more efficiently our world, but also, they are literally tools just like a screwdriver is a tool. At the time of writing, we have been inventing better and smarter screwdrivers, but a screwdriver can only do so many things, it cannot describe reality itself. I don&#x27;t know, Mr. Kay, when we&#x27;ll leave the Stone Age of computing, but I am certain it will be the day we are able to program a computer with a language that transcends the physical and logical constraints of the hardware it runs on. Adding static typing to your screwdriver is a conceptual dead end.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;on-lisp&quot;&gt;On Lisp&lt;&#x2F;h2&gt;
&lt;p&gt;I have known of Lisp and played with it a few times in my career, but the Hacker News hivemind, especially the hackers of old that post there and love to reminisce about what we have lost, keep infecting unsuspecting readers and junior engineers. Lately I have had a lot of free time to dive into its history, its teachings, its impact and why the hell is Lisp a relic of a bygone era, but also a glimpse towards the future of computing, the first milestone to computers truly being extensions of our minds.&lt;&#x2F;p&gt;
&lt;p&gt;There&#x27;s this dream project that has been buzzing around my head for literally months. It&#x27;s a piece of digital performance art: Imagine an operating system, that after boot simply prints:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; &lt;span class=&quot;animate-[caret_1s_step-end_infinite]&quot;&gt;_&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;It&#x27;s a Lisp REPL, with a twist. It supports all the special forms McCarthy designed 63 years ago, with an additional one: the ability to tell the CPU to &lt;code&gt;jmp&lt;&#x2F;code&gt; to the location of a binary string. If you can construct bytes in memory and jump to them, you can write and execute machine code. If you have a homoiconic language, you can represent any program. Such a REPL will be able to do literally any operation on your computer, including interfacing with all attached hardware. Writing machine code as binary strings is not fun, but you got a Lisp at your hands. Write an assembler. If you know the memory location of the REPL&#x27;s &lt;code&gt;eval&lt;&#x2F;code&gt; function, you can replace it with a more efficient one. You can do &lt;em&gt;literally&lt;&#x2F;em&gt; anything.&lt;&#x2F;p&gt;
&lt;p&gt;The goal of this project is not practicality. The goal is to figure out what is the most minimal operating system&#x2F;REPL&#x2F;language combo that can represent any single operation of the underlying hardware. The secret sauce is, of course, Lisp. The secret sauce is homoiconicity.&lt;&#x2F;p&gt;
&lt;p&gt;But, to be honest with you, I haven&#x27;t been able to dive very deep into the world of S-expressions with actual Lisp implementations because, frankly, they&#x27;re all a bit shit. I might rant about it on a later post. So I&#x27;ve been designing one in my head, the Holy Grail of Lisp languages, and that involves doing a lot of reading about what&#x27;s been tried in the past 63 years, and they&#x27;ve been doing things decades kid like us these days still just dream about. (This research has stopped two decades ago, when everybody got complacent and paid tons of money to write terrible software in screwdriver languages).&lt;&#x2F;p&gt;
&lt;p&gt;Yet something is still missing from my Lisp-flavoured Holy Grail, and it&#x27;s taken me a long time to track down what&#x27;s not ideal about Lisp&#x27;s level of abstraction.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;bait-and-switch&quot;&gt;Bait and switch&lt;&#x2F;h2&gt;
&lt;p&gt;In fact, this post is not about Lisp.&lt;&#x2F;p&gt;
&lt;p&gt;I love Elixir and Erlang. The real world is best modelled as actors that communicate, a concept bastardised by the OOP priests of the 90s, much to the chagrin of Alan Kay, yet beautifully implemented on the Erlang&#x27;s BEAM virtual machine. Humans think sequentially, but modern CPUs, networked servers, life and reality themselves are (massively) parallel. Organisation arises by the communication between simple actors. This concept has been explored by that same person I have been referencing throughout the post in his language Smalltalk.&lt;&#x2F;p&gt;
&lt;p&gt;Smalltalk is cool, I guess. See, I&#x27;m a practical person. I dislike purely academic research, and the second reason I have been snobbing it until recently is because nobody uses it (the first reason is that I tend to discount things I&#x27;m ignorant about). Smalltalk is a tech demo of a futuristic system centuries ahead of our little screwdrivers, yet no one has written actual software with it. Not even their own orange-tinted forum. Modern engineers are conditioned to open their editor, or a REPL, and start mashing the keyboard, not running a self-contained operating system, clicking words in a dozen small windows set in sans serif font. This is not Smalltalk&#x27;s fault, just a sign of our computing times.&lt;&#x2F;p&gt;
&lt;p&gt;The beauty of Smalltalk is that everything is a communicating object. And it&#x27;s homoiconic. You don&#x27;t need macros if you got objects all the way down. Objects can represent anything, including operations executed remotely and serialised through the wire. The golden age of computing will start the day we are able to model our virtual, digital world as an infinity of communicating systems, each system a simple-to-understand, serial list of instructions for a CPU to execute. Systems might be local (processes, CPU cores themselves) or transparently remote. The physical location of a system should be effectively inconsequential.&lt;&#x2F;p&gt;
&lt;p&gt;Communication should not be a small layer you add on top of a program to interact with the world, but it should be a central paradigm.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;baby-you-got-a-stew-going&quot;&gt;Baby, you got a stew going&lt;&#x2F;h2&gt;
&lt;p&gt;I&#x27;ve been working on this idea, I&#x27;m not sure if it&#x27;s good or not just yet.  Today I&#x27;ve forced myself to take a few hours break from the hyperfocused flow mode of exploring what seems to me to be a novel yet familiar step towards this computing utopia, and I wanted to serialise and distill into words the million of concepts that have been buzzing around in my head over the past year.&lt;&#x2F;p&gt;
&lt;p&gt;Basically I&#x27;ve put Lisp, Smalltalk, Self (a Smalltalk dialect with an interesting idea), Io, Rebol (it is criminal how underrated and how mismanaged this language has been) together into a blender and I think I&#x27;ve got something worth exploring. The goal is a practical and pragmatic language based on communicating systems. The syntax is still being defined, but right now it looks like this:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;name := IO readline
&amp;quot;Hello, &amp;quot; append: name, append: &amp;quot;!&amp;quot; println
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;I&#x27;m using Guile Scheme to write the REPL (I got frustrated with both Chicken Scheme and Common Lisp) and, unless I abandon the project halfway, which is very likely, I&#x27;ll announce it properly at a later date.&lt;&#x2F;p&gt;
&lt;p&gt;I have a great name already, so most of the work is basically done.&lt;&#x2F;p&gt;
</content>
        
    </entry>
</feed>
