ww520

↗ HN profile [ 64.3 ms ] full profile
Karma
0
Created
()
Submissions
0
  1. Zig Interface Revisited (williamw520.github.io)
  2. Doing dynamic dispatching in a strict static typing language is hard. Something as simple as, map.put("add", add); map.put("hello", hello); fn add(a: i32, b: i32) i32 { return a + b; } fn hello() []const u8 { return…

  3. Some time ago I wanted to write a MCP server in Zig but found out there's no real JSON-RPC support in Zig, which MCP needs for communication. I ended up developing a JSON-RPC 2.0 library in Zig and more [1], which had…

  4. I've finished refining the algorithm proof and write up on TopoSort and did the complexity analysis as the last step. Finished the benchmarks today and was so happy that the benchmark results fit the asymptotic…

  5. There are some interests on the algorithm behind the Topological Sort Library TopoSort posted a few days ago in finding the dependence free subsets for parallel processing. I've written down the explanation in the…

  6. I believe the best way to learn a language is by doing an in-depth project. This is my first Zig project intended for learning the ropes on publishing a Zig package. It turns out to be quite solid and performant. It…

  7. How to Game a Grading Curve (freakonomics.com)
  8. GPS in Space (bbc.co.uk)
  9. Higgs Papers Out (blogs.discovermagazine.com)