<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated>2026-05-29T23:12:44Z</updated>
  <generator>https://yabu.me</generator>

  <title>Nostr notes by Pat</title>
  <author>
    <name>Pat</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://yabu.me/npub1vquz2zegznsrz8vcmefrkfwt3t802x8998vxd4ez0c928dcc8azql3pr3x.rss" />
  <link href="https://yabu.me/npub1vquz2zegznsrz8vcmefrkfwt3t802x8998vxd4ez0c928dcc8azql3pr3x" />
  <id>https://yabu.me/npub1vquz2zegznsrz8vcmefrkfwt3t802x8998vxd4ez0c928dcc8azql3pr3x</id>
  <icon>https://mastodon.sdf.org/system/accounts/avatars/113/528/616/189/257/837/original/5b11d34628ca204b.png</icon>
  <logo>https://mastodon.sdf.org/system/accounts/avatars/113/528/616/189/257/837/original/5b11d34628ca204b.png</logo>




  <entry>
    <id>https://yabu.me/nevent1qqsghtattty500lkz22sghhjedculxlsyz20t9zzlvy58feny9v708qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gs4mm4v</id>
    
      <title type="html">I had the same feeling recently (been learning Forth and using a ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsghtattty500lkz22sghhjedculxlsyz20t9zzlvy58feny9v708qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gs4mm4v" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqszvhfqfl9jkstk9fz8jjg3kqm7jy357vah2y0pulzzj2q0qxsu0jsfqsqxy&#39;&gt;nevent1q…sqxy&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;I had the same feeling recently (been learning Forth and using a lot of Scheme)&lt;br/&gt;&lt;br/&gt;Cons = Push&lt;br/&gt;Cdr = Pop&lt;br/&gt;Quote and unquote = [ and ]&lt;br/&gt;Functions are lists = Words are stacks&lt;br/&gt;(Potentially heretical, but) parentheses are fiddly = Stack manipulation is fiddly&lt;br/&gt;&lt;br/&gt;(I&amp;#39;m sure there are many other equivalences!)
    </content>
    <updated>2025-12-05T18:45:13Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqszf3lpczft5upz823drz35kmmsp5trdwxdk6nq36kxmnet23u5haqzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g6fs9q2</id>
    
      <title type="html">Latest ThinkPad update (I should probably name her?) ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqszf3lpczft5upz823drz35kmmsp5trdwxdk6nq36kxmnet23u5haqzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g6fs9q2" />
    <content type="html">
      Latest ThinkPad update (I should probably name her?)&lt;br/&gt; &lt;img src=&#34;https://mastodon.sdf.org/system/media_attachments/files/115/543/467/383/963/220/original/d75d8c901fbd5844.jpg&#34;&gt; &lt;br/&gt;
    </content>
    <updated>2025-11-13T17:04:29Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsvq99qdqypcvlqhswpumz8vs2ya9jk7r4vp8k7z5229j9dvhlj0hszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gqh258f</id>
    
      <title type="html">@npub1z2c…laft you might enjoy this cute bookmark I just got ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsvq99qdqypcvlqhswpumz8vs2ya9jk7r4vp8k7z5229j9dvhlj0hszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gqh258f" />
    <content type="html">
      &lt;span itemprop=&#34;mentions&#34; itemscope itemtype=&#34;https://schema.org/Person&#34;&gt;&lt;a itemprop=&#34;url&#34; href=&#34;/npub1z2cvkdv4e89xpe5v6rl93vud3fm4mxxygcr3s6xfxrf52u4k34gs8tlaft&#34; class=&#34;bg-lavender dark:prose:text-neutral-50 dark:text-neutral-50 dark:bg-garnet px-1&#34;&gt;&lt;span&gt;R E K&lt;/span&gt; (&lt;span class=&#34;italic&#34;&gt;npub1z2c…laft&lt;/span&gt;)&lt;/a&gt;&lt;/span&gt; you might enjoy this cute bookmark I just got (from a bookshop on a boat in Leeds, called Holdfast)&lt;br/&gt;&lt;br/&gt;(I decoded it with Rabbit Waves. I love the note about Japanese semaphore, I always enjoy learning about non-Latin encodings to stuff)&lt;br/&gt; &lt;img src=&#34;https://mastodon.sdf.org/system/media_attachments/files/115/520/234/955/441/463/original/fda33c3693b6f443.jpg&#34;&gt; &lt;br/&gt;
    </content>
    <updated>2025-11-09T14:36:42Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsqzhwtp5gqzk8xfw2qgaausdkhlhdpu2q9k5qky52f36k5rpw2gyczypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g2u74r0</id>
    
      <title type="html">(Not really relevant to this thread as I used Scheme, so feel ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsqzhwtp5gqzk8xfw2qgaausdkhlhdpu2q9k5qky52f36k5rpw2gyczypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g2u74r0" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqst4weyzdccss9c7k56ttl467mv27z079629jgpnmynkls0hjrj99crv99tx&#39;&gt;nevent1q…99tx&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;(Not really relevant to this thread as I used Scheme, so feel free to disregard!) &lt;br/&gt;&lt;br/&gt;I did it. It works (if by &amp;#34;works&amp;#34; you mean a relative error of less than 0.1)&lt;br/&gt;&lt;br/&gt;I also stumbled across Stirling&amp;#39;s Approximation, which actually can be derived using Poisson and Normal distributions! So my silly idea was not completely nuts!&lt;br/&gt;&lt;br/&gt;For the Poisson bit, I used Knuth&amp;#39;s algorithm to generate random Poisson-distributed numbers, and used that to find P(X = k)&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://patpatpat.xyz/data/scheme/badfactorial.scm&#34;&gt;https://patpatpat.xyz/data/scheme/badfactorial.scm&lt;/a&gt;
    </content>
    <updated>2025-10-16T19:30:28Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqszr2fw2caq7uaj5yffewukkunyzys8kkxqc4m4lx4kw34sune3y5qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gqkp2jy</id>
    
      <title type="html">this gave me a very stupid idea: the PMF of the Poisson ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqszr2fw2caq7uaj5yffewukkunyzys8kkxqc4m4lx4kw34sune3y5qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gqkp2jy" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs9x0r6cjy07czztgkhsfrjl4xdnm328m6vxk743lavtqpsehwzhjcq5hdlu&#39;&gt;nevent1q…hdlu&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;this gave me a very stupid idea: the PMF of the Poisson distribution uses a factorial, therefore you could (if you were feeling suitably whimsical) calculate factorials using it&lt;br/&gt;&lt;br/&gt;i.e., k! = mean^k / (e^mean * P(X = k))&lt;br/&gt;&lt;br/&gt;Where P(X = k) can be found using a Poisson distribution table of your choice&lt;br/&gt;&lt;br/&gt;(Needless to say, the accuracy is atrocious)
    </content>
    <updated>2025-10-15T19:05:07Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsxj9vrllyzfnu80k3r3pcphq87cltqh2khu7yawzv789jdhm8n0zqzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5get9uhh</id>
    
      <title type="html">I wonder if there is an alife/automaton to simulate a crowd at a ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsxj9vrllyzfnu80k3r3pcphq87cltqh2khu7yawzv789jdhm8n0zqzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5get9uhh" />
    <content type="html">
      I wonder if there is an alife/automaton to simulate a crowd at a rave/gig&lt;br/&gt;&lt;br/&gt;E.g.:&lt;br/&gt;- Urge to fill space and move to front&lt;br/&gt;- Constant oscillating movements in time with music&lt;br/&gt;- Simultaneous events (cheering, arms up, etc)&lt;br/&gt;- Some attractions between friends&lt;br/&gt;- Some enclaves of friends with a weak circle-forming urge&lt;br/&gt;- Ability for people to pass to exit, via the classic hand-on-shoulder method. Possibly forming a chain of people
    </content>
    <updated>2025-07-27T02:05:19Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsfmsmg9gaungcljw86a2s44rnvehgm4p3ed37he08vvyezgy9he8qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5geqezn8</id>
    
      <title type="html">I always want there to be &amp;#34;one correct way&amp;#34; of doing ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsfmsmg9gaungcljw86a2s44rnvehgm4p3ed37he08vvyezgy9he8qzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5geqezn8" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsg6zgq3vpw8trwr0k0c26wvy8ta7n7zx0v77qx2ednhwk32vr5dscgahn0p&#39;&gt;nevent1q…hn0p&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;I always want there to be &amp;#34;one correct way&amp;#34; of doing things, but unfortunately that essentially never happens in computing (or anywhere, really)&lt;br/&gt;&lt;br/&gt;I think my pure maths background leads me to want a direct indisputable line of reasoning, when in reality there are multiple paths and all of them are wrong/right (in slightly different ways)&lt;br/&gt;&lt;br/&gt;So, yeah having flexibility to do both methods is probably the way to go: pragmatism over dogmatism
    </content>
    <updated>2025-07-13T15:17:05Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsymlgp2zmlzy3v2vq6sz9me6khnqwlwf29tw3u56xq3jmvm7rrq0czypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g8dg86n</id>
    
      <title type="html">Length-prefixed strings (length &#43; string) are so much nicer than ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsymlgp2zmlzy3v2vq6sz9me6khnqwlwf29tw3u56xq3jmvm7rrq0czypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g8dg86n" />
    <content type="html">
      Length-prefixed strings (length &#43; string) are so much nicer than null-terminated (string &#43; 0)&lt;br/&gt;&lt;br/&gt;E.g, if I want to save my string to a binary file and read it again, I know immediately how much memory to allocate for it (rather than reading it once and backtracking)&lt;br/&gt;&lt;br/&gt;Also removes all the unsafe str functions, by forcing the use of the strn functions as default&lt;br/&gt;&lt;br/&gt;Perhaps a big issue is that a string is now sizeof(size_t) &#43; sizeof(char*), rather than length &#43; 1&lt;br/&gt;&lt;br/&gt;I am open to counter arguments :)
    </content>
    <updated>2025-07-13T08:48:42Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsq7e6tpnzfuj77ehg4ycd7xmn3ahq3zc0m4p7lfpx80xdamrw23dgzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gjgv8d0</id>
    
      <title type="html">Ooh that is very cool, it really shows off how great stacks are ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsq7e6tpnzfuj77ehg4ycd7xmn3ahq3zc0m4p7lfpx80xdamrw23dgzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gjgv8d0" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqspafc6xgl7l7vka0wh5uj3pducvp792qvlf6r5472cdxmznlep28can93lh&#39;&gt;nevent1q…93lh&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;Ooh that is very cool, it really shows off how great stacks are as a construct. Its quite fun that a good way of performing infix maths is just to convert it to RPN&lt;br/&gt;&lt;br/&gt;Mixed-fractions, decimal/fraction conversion, and some misc functions are on the TODO list in my head. I probably also need to add variables, as currently the result is just printed out?&lt;br/&gt;&lt;br/&gt;I actually just treat everything as a fraction, so there&amp;#39;s not really a concept of separate digits. Its all just reciprocals
    </content>
    <updated>2025-04-03T23:39:50Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsv6lnv6r0kuvrwm2lttxqwzsx4tudwpkdu9p59a3nmc6p4wcscr7gzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g7t9g8z</id>
    
      <title type="html">I&amp;#39;ve made a fraction-based calculator, for simplifying ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsv6lnv6r0kuvrwm2lttxqwzsx4tudwpkdu9p59a3nmc6p4wcscr7gzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g7t9g8z" />
    <content type="html">
      I&amp;#39;ve made a fraction-based calculator, for simplifying rational expressions (written in ANSI-C using vi)&lt;br/&gt;&lt;br/&gt;I was aiming to merge a scientific calculator with &amp;#34;bc&amp;#34;, because I often need to simplify various fractions and whatnot. Quite happy with the result!&lt;br/&gt;&lt;br/&gt;Uses shunting yard algorithm to evaluate the expressions, and a naive descent parser (I think?) to tokenise&lt;br/&gt;&lt;br/&gt;Aside: OpenBSD&amp;#39;s &amp;#34;editline&amp;#34; is very easy to use&lt;br/&gt;&lt;br/&gt;Please ask any questions :)&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;http://patpatpat.xyz/data/frac&#34;&gt;http://patpatpat.xyz/data/frac&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#c #bsd #unix #math&lt;br/&gt; &lt;img src=&#34;https://mastodon.sdf.org/system/media_attachments/files/114/276/472/321/733/302/original/81f8c7475cc9ed07.png&#34;&gt; &lt;br/&gt;
    </content>
    <updated>2025-04-03T23:01:57Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsvl72v9skuq0wukkylhd3vuqh4xkkeasz0q5qs7fjc47ud89w8lhgzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g5clmrw</id>
    
      <title type="html">I should learn how to use mailing lists and IRC. Because a.) they ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsvl72v9skuq0wukkylhd3vuqh4xkkeasz0q5qs7fjc47ud89w8lhgzypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5g5clmrw" />
    <content type="html">
      I should learn how to use mailing lists and IRC. &lt;br/&gt;&lt;br/&gt;Because a.) they have cool people on them, and b.) they are so old that they are essentially immune to the enshittification wafting over the waking world.&lt;br/&gt;&lt;br/&gt;My only issue with IRC is that it seems like you have to be constantly connected in order to actually keep track of a conversation? I like COMMODE on SDF because it has a nice room history (as well as a friendly TUI). Any tips are appreciated.&lt;br/&gt;&lt;br/&gt;#irc #email #mailinglist
    </content>
    <updated>2025-03-06T19:37:33Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqsg4pzxu50jasl3mjdtz6xee49wmxy9k96t94vqtxh8952y2mp0tdszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gfp7d34</id>
    
      <title type="html">For reasons unbeknownst to God, I have been writing a BASIC ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqsg4pzxu50jasl3mjdtz6xee49wmxy9k96t94vqtxh8952y2mp0tdszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gfp7d34" />
    <content type="html">
      For reasons unbeknownst to God, I have been writing a BASIC interpreter&lt;br/&gt;&lt;br/&gt;This book has been very useful. Its a really clearly written explanation of the inner workings of the BASIC interpreter for the Atari 8-bit computers. Includes all the data structures, memory layouts, language syntax, etc&lt;br/&gt;&lt;br/&gt;Interestingly, it calls it a &amp;#34;pre-compiled&amp;#34; interpreter because it converts the user input to numerical tokens. But I guess we would call it &amp;#34;bytecode&amp;#34; nowadays?&lt;br/&gt;&lt;br/&gt;&lt;a href=&#34;https://archive.org/details/ataribooks-the-atari-basic-source-book&#34;&gt;https://archive.org/details/ataribooks-the-atari-basic-source-book&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;#atari #BASIC&lt;br/&gt; &lt;img src=&#34;https://mastodon.sdf.org/system/media_attachments/files/113/755/086/678/802/616/original/0cce14ae63f99daa.png&#34;&gt; &lt;br/&gt;
    </content>
    <updated>2025-01-01T20:54:15Z</updated>
  </entry>

  <entry>
    <id>https://yabu.me/nevent1qqswh5y78efmtk6atyhyepwpgfkwctfc9guz38x7ap6zfkd3vex05jszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gel5qy7</id>
    
      <title type="html">I find it quite depressing to imagine a future where teachers ...</title>
    
    <link rel="alternate" href="https://yabu.me/nevent1qqswh5y78efmtk6atyhyepwpgfkwctfc9guz38x7ap6zfkd3vex05jszypsrsfgt9q2wqvganr09ywe9ew9vaagcu55asekhyflq4gahrql5gel5qy7" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqs9e40y2pzwxwykhemquw80sltylprn45rg7ktcgugnqf4skgkw3ys02hv9k&#39;&gt;nevent1q…hv9k&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;I find it quite depressing to imagine a future where teachers just use AI to create courses, and students just use AI to attend courses&lt;br/&gt;&lt;br/&gt;It presents learning as a means-to-an-end, and attempts to skip the difficult bits (like having to read, understand nuance, search for sources, discuss with peers). There is no short-cut to learning, the difficulty IS the learning (a quote I like is, &amp;#34;memory is the residue of thought&amp;#34;)
    </content>
    <updated>2024-11-23T09:43:45Z</updated>
  </entry>

</feed>