mscroggs.co.uk
mscroggs.co.uk

subscribe

Comment

Comments

Comments in green were written by me. Comments in blue were not written by me.
@(anonymous): Thanks for the clarification.
I'm still (slowly) building my asm funcion. I think I have settled on register allocation, leaving only rcx as a 'scratch' register because cl will be needed for some variable shifts.
I also use the xmm registers (14 so far) to minimize memory operations to hopefully let HT/SMT get some decent gains.

How long would Matt Parker's 'terrible Python code' take to solve this problem ? :)
Ok, his maths knowledge might produce some decent algorithms, but it would help him a lot to use something that compiles to native code.
Lord Sméagol
on /blog/119
               

Archive

Show me a random blog post
 2026 

May 2026

World Cup stickers 2026

Apr 2026

A new puzzle every day
Mixing Wordle with other games

Feb 2026

Christmas (2025) is over
 2025 

Dec 2025

Christmas card 2025

Nov 2025

Christmas (2025) is coming!

Sep 2025

The partridge puzzle

Aug 2025

TMiP 2025 puzzle hunt

Jun 2025

A nonogram alphabet

Mar 2025

How to write a crossnumber

Jan 2025

Christmas (2024) is over
Friendly squares
 2024 

Dec 2024

A regular expression Christmas puzzle
Christmas card 2024

Nov 2024

Christmas (2024) is coming!

Feb 2024

Zines, pt. 2

Jan 2024

Christmas (2023) is over
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

computational complexity finite element method asteroids anscombe's quartet european cup video games kings turtles stirling numbers hyperbolic surfaces fonts nine men's morris alphabets light craft raspberry pi game show probability hexapawn regular expressions bodmas bubble bobble approximation speed frobel stickers christmas card tennis wordle statistics standard deviation chalkdust magazine folding paper partridge puzzle weak imposition news wave scattering dates 24 hour maths runge's phenomenon sport coins geometry weather station logic rust mean dinosaurs pi approximation day reuleaux polygons matt parker gather town oeis london fence posts pythagoras coventry plastic ratio flexagons football trigonometry graphs map projections the aperiodical dataset tmip a gamut of games matrix of cofactors polynomials interpolation inline code live stream pac-man world cup inverse matrices machine learning probability cross stitch warwick mathsjam matrices numbers nonograms golden ratio reddit talking maths in public convergence binary royal institution gerry anderson databet simultaneous equations manchester preconditioning dragon curves numerical analysis noughts and crosses martin gardner cambridge ucl national lottery chess bluesky go bots draughts hats big internet math-off graph theory recursion puzzles logo finite group geogebra python exponential growth menace palindromes countdown people maths golden spiral harriss spiral crochet crosswords final fantasy mathsteroids matrix multiplication radio 4 signorini conditions pizza cutting braiding hannah fry books platonic solids crossnumber pascal's triangle estimation arrangement puzzles datasaurus dozen pokémon fractals folding tube maps pi ternary bempp tetris mathslogicbot php accuracy propositional calculus christmas errors rhombicuboctahedron data captain scarlet crossnumbers logs game of life curvature realhats zines chebyshev electromagnetic field matrix of minors latex games kenilworth error bars advent calendar sound manchester science festival misleading statistics london underground arithmetic gaussian elimination friendly squares phd triangles sobolev spaces javascript data visualisation newcastle royal baby rugby guest posts correlation quadrilaterals squares boundary element methods wool sorting edinburgh youtube determinants pokémon wordle thirteen programming

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2026