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

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

Archive

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