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's a fine line between obscure notation and madness... (Taken from https://blog.ivank.net/introduction-to-metamath.html) formula2 $p |- ( ( A -&#62; A ) -&#62; ( A -&#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 "Google", as in "to search the web", since apparently they don't do that any more
-
View post
As much as I hate technology, Jupyter (horrible name) Notebooks are kinda rad. I've been writing some little follow-along Python worksheets for the little '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) "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 "question" exactly what is going on. That's psychology...." "o - pretend to optimize your code, but actually introduce bugs"
-
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: "No [Function] of that [Language] must exceed in Words the Number of Letters in their Alphabet; which consists of only two and twenty"
-
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'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'm co-opting the (semi-)colon word from FORTH to define "players" (need to find a better name) These players are stored in a table, and each contains a "code" 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's looks like this...
-
View post
I implemented @neauoire@merveilles.town 's Rejoice, in Perl for some reason :) This was attempt like 3? I vaguely remember reading a Moore quote about "writing, rewriting, and rewriting again". 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'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'...