Algorithms
2 articles on Algorithms from Ayoob AI, the full code AI automation agency based in Newcastle upon Tyne.
Why We Built the First Non-Comparison Float Sort in JavaScript (And Open Sourced It)
Array.prototype.sort() is broken for numerical data. We built a three-tier adaptive sorting engine that dispatches between CPU, Web Workers, and WebGPU compute shaders based on dataset characteristics. Here is why, and how.
10 min read·2026-04-12
IEEE 754 Bit-Transforms for High-Speed Float Processing in JavaScript
JavaScript uses Float64. WebGPU requires Float32. The IEEE 754 bit-transform (Herf 2001) converts floats to sort-order-preserving unsigned integers. Our contribution is the Float32 safety guard that inhibits GPU dispatch when Float64-to-Float32 truncation would alter sort order, plus the adaptive multi-tier dispatch system.
12 min read·2026-04-05
Want to discuss algorithms for your business?
Book a Discovery Call