Elektrine lite

← Feed

pat

pat@patpatpat.xyz

Computers are bad 🏳️‍🌈<br><br>Teaches maths/computer science at The University of Leeds<br><br>Leeds, UK<br>

Posts

  • View post

    I often think that there&#39;s a fine line between obscure notation and madness... (Taken from https://blog.ivank.net/introduction-to-metamath.html) formula2 $p |- ( ( A -&amp;#62; A ) -&amp;#62; ( A -&amp;#62; A ) ) $= wa wa wa wim wim wa wa wim wa wa wim wim wa wa a1 wa wa wa a2 mp $.

  • View post

    I should stop using the verb &quot;Google&quot;, as in &quot;to search the web&quot;, since apparently they don&#39;t do that any more

  • View post

    As much as I hate technology, Jupyter (horrible name) Notebooks are kinda rad. I&#39;ve been writing some little follow-along Python worksheets for the little &#39;uns (1st year undergrads) to go alongside the theory module Being able to just output a graph, or print an SVG string, or write a table, and have it rendered right there is so cool. Plus, it comes with a perfectly fine editor that runs in the browser (which can be hosted to students by projects like https://noteable.edina.ac.uk/docum...

  • View post

    I love Perl sometimes (quotes from https://perldoc.perl.org/perlre) &quot;A question mark was chosen for this and for the minimal-matching construct because 1) question marks are rare in older regular expressions, and 2) whenever you see one, you should stop and &quot;question&quot; exactly what is going on. That&#39;s psychology....&quot; &quot;o - pretend to optimize your code, but actually introduce bugs&quot;

  • View post

    Nothing too fancy, wee Mandlebrot/Julia generator :) https://patpatpat.xyz/data/mandlebrot.pl and https://patpatpat.xyz/data/TGA.pm

  • View post

    Yet another peaceful OpenBSD upgrade (laptop and server) :)

  • View post

    Brobdingnag programming language idea: &quot;No [Function] of that [Language] must exceed in Words the Number of Letters in their Alphabet; which consists of only two and twenty&quot;

  • View post

    The more I learn about floating point errors, the more I am happy to live in blissful ignorance about floating point errors...

  • View post

    Every time try to write a link in Markdown I have to iterate over every permutation of parentheses and brackets

  • View post

    I&#39;m having another go at my stack-based livecoding audio synthesis thingy from eons ago i.e., this outputs two sine waves whose frequency is oscillating : f 20 sin 1 + 0.5 * 440 * 220 + ; : hello f sin f 2 * sin 0 out ; I&#39;m co-opting the (semi-)colon word from FORTH to define &quot;players&quot; (need to find a better name) These players are stored in a table, and each contains a &quot;code&quot; list and a personal stack. When a player is updated (which is all the time for audio-rate,...

  • View post

    My program is mostly working, time to completely rewrite it from scratch!

  • View post

    I know this is pretty obvious...but predicate logic looks quite neat as a graph rewriting system (is everything just graph rewriting???) Its a shame that manipulating graphs using code is a faff (i.e., juxtaposition between line-based text and graphical 2D graphs) For example, De Morgan&#39;s looks like this...

  • View post

    I implemented @neauoire@merveilles.town &#39;s Rejoice, in Perl for some reason :) This was attempt like 3? I vaguely remember reading a Moore quote about &quot;writing, rewriting, and rewriting again&quot;. I follow that advice religiously I absolutely hate writing parsers, and yet invariably end up having to write a parser. This is probably the best one I&#39;ve done but its still a bit of a mess! The only difference I can spot between my implementation and the UXN one is that mine can&#39;...