Skip to content
Snippets Groups Projects

hack: zig and zoekt 4 lyfe

Open Warren Gifford requested to merge k/zoekt-zig into main

Created by: keegancsmith

Zig and Zoekt hack

#fy23-q1-sourcegraph-hackathon

Authors: @stefanhengl and @keegancsmith

Spent a day to see how easy it would be to search a Zoekt shard with zig. We had a very low bar for a goal, which was just enough parsing of a shard file to look for lines that match a needle. Our main goal was to gain some insight into using zig for fun (and profit?).

We succeeded to search the test shard with a hardcoded needle.

Why Zig? Interesting high performance language. Easy integration into other c libraries, so we could potentially use best in class regex engines (eg hyperscan).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading