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

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

Archive

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