@raph This would be a great effort, a data-parallel algorithms library like Thrust/CUB for WebGPU would make developing new algorithms a lot easier. In a previous publication we had to make our own radix sort by key, which might be interesting to look at: https://github.com/Twinklebear/webgpu-prog-iso/blob/main/js/radix_sort_by_key.js . It predates WGSL, so the shaders are GLSL and would need to be ported. I know @mighdoll has been working on some stuff in this area too, on re-usable GPU compute primitives.