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

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

Archive

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