Notes on moving tree layout out of the client and into stored geometry, then rendering only the viewport across three levels of detail — so draw cost tracks what's on screen instead of how big the tree is.
11 min
WritingAlgorithms
Search, optimisation and layout worked out in code: backtracking, evolutionary methods, and drawing large trees without drawing all of them.
3 posts · newest first
Notes on moving tree layout out of the client and into stored geometry, then rendering only the viewport across three levels of detail — so draw cost tracks what's on screen instead of how big the tree is.
11 min
Working through constraint search — pruned tree exploration, candidate checks, recursive descent and undo — by building a browser Sudoku solver that animates its own search using async/await to yield to the event loop.
6 minJavaScript
Working through genome design, fitness shaping, selection, mutation and elitism by building a browser simulation where a population of dots evolves its way to a goal — and learning what population diversity actually buys you.
7 minJavaScript