Get the latest tech news

Show HN: Zig Topological Sort Library for Parallel Processing


Topological sort library in Zig. Contribute to williamw520/toposort development by creating an account on GitHub.

TopoSort is a highly efficient Zig library for performing topological sort on dependency graph. TopoSort figures out the nodes that have no dependence with each other in the linear order of the topological sequence and groups them together as subsets. If all your node values are positive integers, passing in a number type (u16, u32, u64, etc) for the node data type and setting the max_range let TopoSort use a simpler data structure with faster performance.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of zig

zig

Photo of parallel processing

parallel processing

Related news:

News photo

Building Statically Linked Go Executables with CGO and Zig

News photo

Crabtime: Zig’s Comptime in Rust

News photo

Zig's dot star syntax (value.*)