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

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

Archive

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