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

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

Archive

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