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

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

Archive

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