Sorting
3 articles on Sorting from Ayoob AI, the full code AI automation agency based in Newcastle upon Tyne.
Bypassing Array.prototype.sort() with IEEE 754 Bit-Transforms
V8's TimSort coerces numbers to strings. Transform IEEE 754 floats to order-preserving unsigned ints for radix-256 CPU sort and GPU bitonic-merge sort.
14 min read·2026-04-12
The Hidden Compute Costs of Array.prototype.sort() in Enterprise SaaS
V8's TimSort runs 20 million comparator callbacks per million elements, each crossing the native-to-JS boundary. Our adaptive GPU sort bypasses this.
14 min read·2026-04-07
IEEE 754 Bit-Transforms for High-Speed Float Processing in JavaScript
JavaScript uses Float64, WebGPU needs Float32. The IEEE 754 bit-transform converts floats to sort-order-preserving integers, with a Float32 safety guard.
12 min read·2026-04-05
Want to discuss sorting for your business?
Book a Discovery Call