MENU

Fun & Interesting

Building a Redis clone with Zig and Codecrafters, part 2

Code With Cypert 1,402 lượt xem 2 months ago
Video Not Working? Fix It Now

Sign up for free and follow along at https://app.codecrafters.io/join?via=bradcypert

My apologies for the quality on this video. There were a ton of interruptions in recording and my editing skills did the best they could, but theres definitely some parts where it's a bit choppy and, honestly, I got a bit frustrated. Hopefully that doesn't get in the way of you learning though!

The goal is to build a Redis-compatible application in pure Zig. Ideally, we're doing this with no external dependencies and are using this as an opportunity to really understand how Redis works under the hood. I've done a bit of this challenge before with Go, but haven't finished it, but Im hoping to finish the Zig version (and then maybe go back and finish the Go version at some point). If you sign up with CodeCrafters using my link (even as a free account and there's no pressure to convert to a subscriber), I'll be able to follow along with your progress on your coding challenges as well (which can be really helpful if you get stuck or have specific questions!).

In this video, we knock out the fundamentals of the Parser and implement the Echo command. This is a bit of a long one, but we'll dig deep into the parser so hang in there!

Some links that will be handy for us as we tackle this challenge:
- https://redis-doc-test.readthedocs.io/en/latest/topics/protocol/
- https://ziglang.org/documentation/master/std/

Comment