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

  • Post #2952475

    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 $.

  • Post #2952474

    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

  • Post #2952473

    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...

  • Post #2952471

    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;

  • Post #2952470

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

  • Post #2952469

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

  • Post #2952468

    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;

  • Post #2952467

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

  • Post #2952466

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

  • Post #2685460

    Made a wee geometry/linear algebra thing, all transformations are done using &quot;points&quot; (vectors) which are manipulated using matrices :) Note: spotted some major flaws, further tinkering is required! https://patpatpat.xyz/data/Geometry.pm

  • Post #2685459

    The Silmarillion is fantastic, surprisingly readable too (there are quite a few characters, but each story only involves a few key ones). The geography is the hard bit imo I may even have enjoyed it more than The Hobbit and LOTR (don&#39;t quote me on that) I&#39;ve built up this mental image of Beleriand, which is utterly useless (i.e., has no relevance to other Tolkien stories) The way all the histories/lineages/geographies compound on eachother is incredible. Everything echoes, and those e...

  • Post #2685458

    Playing with a non-overlapping circles thing. i.e., given a list of circles, find a radius so that none of the circles overlap :) (Probably some sort of k-d/quad tree would be useful, I&#39;m just doing a lazy linear search)

  • Post #2685457

    Ah, the FOSS conundrum: I wish snac had better word muting (i.e., options for matching whole words case sensitive, maybe even regex?), but do I care enough to add the feature myself? Hmm... (If I could easily set up a local test environment I might be more likely to)

  • Post #2685456

    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,...

  • Post #2685454

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

  • Post #2685453

    Looks like YouTube has finally cracked down on the horrible practice of...watching YouTube videos without an account? It insists I &quot;Sign in to confirm that you&#39;re not a bot&quot;, which is quite rich given the amount of DDOS-ing and aggressive crawling that Google is responsible for

  • Post #2685452

    Cats are non-deterministic

  • Post #2685450

    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...

  • Post #1316243

    I wrote some documentation for this silly Turing machine assembly language thing I&#39;ve been fiddling with for ages :) https://patpatpat.xyz/data/turing.pl/turing.html The actual repository is here https://patpatpat.xyz/data/turing.pl I would like to include some translations of this code into real Turing machine diagrams, just to prove that it does actually work I feel like my writing in this is way too verbose, its been a while since I&#39;ve written some non-fiction. I find it a lot har...

  • Post #1004231

    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;...

  • Post #889346

    Puffy sighted outside Wharf Chambers in Leeds If this was your doing, lemme know :) #openbsd