News for hackers. Stuff that matters.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Friday September 19, 2025 @07:40PM (#45308123)
Seems like LLMs are getting good at Zig (with some help, I presume).
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by mtlynch on Friday September 19, 2025 @07:50PM (#45308193)
Is there anything about this project that seems LLM-generated?

I've found that LLMs are particularly bad at writing Zig because the language evolves quickly, so LLMs that are trained on Zig code from two years ago will write code that no longer compiles on modern Zig.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by 5- on Friday September 19, 2025 @08:03PM (#45308296)
https://github.com/barddoo/zedis/blob/87321b04224b2e2e857b67...

these seem to occur only in college assignment projects, and in the output of text generators trained on those.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by WD-42 on Friday September 19, 2025 @08:15PM (#45308389)
I will never place emojis in any of my readmes ever again.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by chucky_z on Friday September 19, 2025 @08:16PM (#45308404)
spell out 'development' with hammer emojis. bring ascii art back as emoji art.

(i actually do this in slack messages and folks find it funny and annoying, but more funny)

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by tayo42 on Friday September 19, 2025 @08:19PM (#45308424)
People were doing this before llms, otherwise how did they learn it?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by WD-42 on Friday September 19, 2025 @08:28PM (#45308486)
Sure, but llms absolutely love to do it for some reason.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by tayo42 on Friday September 19, 2025 @09:14PM (#45308842)
I just took a look at a Readme I had cursor write a couple months ago and there's no emojis
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Sunday September 21, 2025 @04:30AM (#45321031)
You can always have it in your custom prompt: "Do not use emojis, ever".
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by pdntspa on Saturday September 20, 2025 @12:56PM (#45315040)
I had a manager who did this in his slack messages
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by adastra22 on Friday September 19, 2025 @08:57PM (#45308701)
That's why he said "never again"
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nine_k on Friday September 19, 2025 @08:53PM (#45308685)
Has been doing this for years, even before LLMs were a thing. No, not in college assignments; by the time emoji appeared, I had long since walked out of my PhD program and went to the industry.

I put such emojis at the beginning of big headings, because my eyes detect compact shapes and colors faster than entire words and sentences. This helps me (and hopefully others) locate the right section easier.

In Slack, I put large emojis at the beginning of messages that need to stand out. These are few, and emojis work well in this capacity.

(Disclaimer: I may contain a large language model of some kind, but very definitely I cannot be reduced to it in any area of my activity.)

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by adastra22 on Friday September 19, 2025 @08:56PM (#45308699)
FWIW it is really confusing to me and others. What is this emoji supposed to mean? Heck if I know.

But the telltale signs are far more than just that. The whole document is exactly the kind of README produced by Claude.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by MangoToupe on Saturday September 20, 2025 @12:52AM (#45310502)
I had assumed they were referring to stuff like "Type-safe operations with compile-time guarantees". What a weird detail to add to a readme. And the whole section is like that. I wonder if that's part of a prompt leaking through.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by rmonvfer on Friday September 19, 2025 @08:20PM (#45308429)
As an avid Claude Code user, I can tell you with 99% probability, that README is LLM-generated. This exactly the same structure and wording used by Claude (of course, it has some human modification because otherwise I’d filled with emojis)

In my experience, when you work with something like agentic development tools, you describe your goals and give it some constraints like “use modern zig”, “always run tests”… and when you ask it to write a README, it will usually reproduce those constraints more or less verbatim.

The same thing happens with the features section, it reads like instructions for an LLM.

I might be wrong but I spend way too much time using Claude, Gemini, Codex… and IMHO it’s pretty obvious.

But hey, I don’t think it’s a problem! I write a lot of code using LLMs, mostly for learning (and… ejem, some of it might end up in production) and I’ve always found them great tools for learning (supposing you use the appropriate context engineering and make sure the agent has access to updated docs and all of that). For example, I wanted to learn Rust so I half-vibed a GPUI-based chat client for LLMs that works just fine and surprisingly enough, I actually learned and even had some fun.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by adastra22 on Friday September 19, 2025 @08:58PM (#45308710)
I don't know why you're being downvoted. This follows the LLM-generated-README template perfectly. And yeah, it usually ends up being a dumping ground for the constraints you gave it, almost verbatim.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Saturday September 20, 2025 @03:04AM (#45311137)
> But hey, I don’t think it’s a problem! I write a lot of code using LLMs, mostly for learning (and… ejem, some of it might end up in production) and I’ve always found them great tools for learning (supposing you use the appropriate context engineering and make sure the agent has access to updated docs and all of that). For example, I wanted to learn Rust so I half-vibed a GPUI-based chat client for LLMs that works just fine and surprisingly enough, I actually learned and even had some fun.

As I wrote in another comment, it is not inherently a bad thing. I use LLMs too (while knowing what I am doing), and if the project works, why not?

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by samiv on Saturday September 20, 2025 @05:15AM (#45311718)
But wait.. if the chatbot is writing then code then it is not you who is writing the code, but the chatbot.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by hnlmorg on Saturday September 20, 2025 @06:32AM (#45312089)
That would be true if you were vibe coding. However “normal” agentic development is a little more like “pair programming” in my opinion.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by jasonjmcghee on Friday September 19, 2025 @09:09PM (#45308798)
I skimmed, for me it was this: https://github.com/barddoo/zedis/blob/87321b04224b2e2e857b67...

There seems to be a fair amount of stigma around using llms. And many people that use them are uncomfortable talking about it.

It's a weird world. Depending on who is at the wheel, whether an llm is used _can_ make no difference.

But the problem is, you can have no idea what you're doing and make something that feels like it was carefully hand-crafted by someone - a really great project - but there are hidden things or outright lies about functionality, often to the surprise of the author. Like, they weren't trying to mislead, just didn't take them time to see if it did all of what the LLM said it did.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by boredemployee on Friday September 19, 2025 @09:26PM (#45308978)
3 months ago I was vibe coding an idea and for some reason (and luck) I went to check a less important part of the code and saw that the LLM changed the env variable of an API key and hard coded the key explictly in the code. That was scary. I'm glad I saw it before PR and shit like that.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Saturday September 20, 2025 @03:00AM (#45311116)
I generally do not think it is a bad thing. I use LLMs too and I know what I am doing, so I do not know if it could be qualified as vibe coding.

I think it is not inherently a bad thing to use LLMs, only if you have absolutely no clue about what you are doing, but even then, if the project is usable and as-is advertised, why not? shrugs

As for the link, that is exactly the same code that caught my eye, besides the README.md itself. The LRU eviction thing is what GPT (and possibly other LLMs) always comes up with according to my experiences, and he could have just had it properly implemented then. :D

Edit: I am glad author confirmed the use of an LLM. :P

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Saturday September 20, 2025 @03:08AM (#45311161)
Fair enough, but I have made a couple of projects in Odin using Claude, and Odin is evolving too, and it is much more obscure than Zig. I made these projects successfully by feeding the LLM the documentation of Odin and gave it example projects... thus, if I could create Odin projects (with some reiterations and hand-holding, true), then Zig should be even better.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @08:37PM (#45308553)
Oh that’s nice of you. I take that as a compliment.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Saturday September 20, 2025 @03:10AM (#45311176)
It was not intended to be a criticism. I care about the end result, not the process. I use LLMs myself, too.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by pdntspa on Friday September 19, 2025 @07:25PM (#45308007)
Is zig lang stable enough now to start basing real projects on it?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by justinhj on Friday September 19, 2025 @07:29PM (#45308038)
Check out Tigerbeetle and Ghostty
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by jrpelkonen on Friday September 19, 2025 @08:01PM (#45308281)
Also bun
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by fishmicrowaver on Friday September 19, 2025 @08:15PM (#45308387)
I mean no offense but a billionaires vanity terminal and a database with an anime bug mascot are a bit different than a redis alternative
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by dpatterbee on Friday September 19, 2025 @08:29PM (#45308492)
Is software not real software if it's written by a billionaire? What is it about the bug mascot that detracts from the database's legitimacy?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by garbagepatch on Saturday September 20, 2025 @01:14AM (#45310592)
What's the problem with the mascot? PostgreSQL has an elephant and MySQL a dolphin. Is the bug too detailed for database software?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nickmonad on Saturday September 20, 2025 @09:23AM (#45313165)
Why would we want a literal BUG as a mascot?? /s
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by aschobel on Friday September 19, 2025 @08:44PM (#45308614)
bun is real and spectacular. super loving using it
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by rvrb on Friday September 19, 2025 @09:13PM (#45308834)
Good point, the database written in Zig with a bug mascot tells us nothing about writing a database in Zig without a bug mascot
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Friday September 19, 2025 @10:54PM (#45309836)
im not sure i trust any hot takes from a person that doesn't know anything about anime
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by justinhj on Friday September 19, 2025 @10:22PM (#45309607)
If all you know about Tigerbeetle is the mascot you should probably take another look before judging. Some very interesting db tech.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by sroerick on Friday September 19, 2025 @11:08PM (#45309925)
Tigerbeetle is one of the most interesting projects I've seen in recent memory
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by tonyhart7 on Friday September 19, 2025 @08:31PM (#45308512)
"Is zig lang stable enough now to start basing real projects on it?"

only if you want to refactor/rewrite a lot

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @08:36PM (#45308547)
The standard library is changing too much to be honest. During the development of the library Zig 0.15 launched and changed the whole Io library.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by pyrolistical on Friday September 19, 2025 @08:38PM (#45308564)
Depends on your definition of stable. I would suspect most people would consider it unstable as they are still breaking the API for async. Wait for 1.0 if you really need true stability. But zig is just so good not to use now
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nitishr on Friday September 19, 2025 @09:24PM (#45308957)
it hasn't reached version 1.0
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by tcfhgj on Friday September 19, 2025 @07:32PM (#45308065)
So riiR is now riiZ? ;)
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nine_k on Friday September 19, 2025 @09:03PM (#45308745)
"Rewrite it away from C (or C++)". Whether you choose Rust, Zig, Ada, D, Nim, even Pascal, it's likely going to become more secure. It will be supported on fewer platforms though, but still should run fine under Linux, macOS, Windows, *BSD, on x64, Arm64, and likely RISC-V, too.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by maleldil on Friday September 19, 2025 @09:58PM (#45309389)
Zig isn't memory safe, though. It's safer than C or C++, but not much.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by ashikns on Friday September 19, 2025 @10:41PM (#45309760)
This is what I have struggled to understand about Zig. It seems pretty much like C in a mental model aspect - you are responsible for everything. It's slightly better than C, but C already runs on everything on the planet and can be made secure even if painfully so. So what niche is Zig aiming to fill?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Friday September 19, 2025 @10:59PM (#45309865)
no, null pointers are enforced safe at the type level in zig, as are array bounds, this eliminates huge classes of errors, so you are not "responsible for everything". unlike c, you often (unless highly tuned performance is needed) do not have to resort to opaque void pointers, and the compiler gives you typesafety on that, another major footgun in c.

also operators and integer types are unambiguous, and there is no UB in safe compilation modes.

It's arguably much better than C, not "slightly better than C"

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by uecker on Saturday September 20, 2025 @01:43AM (#45310735)
If you write a modern style of C, you can have bounds checked code and do not need to use void pointers. I usually find that people overestimate the advantages of newer languages compared to using C by comparing to old and badly written C.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Saturday September 20, 2025 @02:28PM (#45315926)
GP: "you are responsible for everything"

AKA You are responsible for opting into "modern C". In order to be unsafe in zig (in the dimensions I mentioned) you must opt out.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by uecker on Saturday September 20, 2025 @04:52PM (#45317400)
You would need to opt-in into zig first, which is more effort than opting into modern C when you come from C.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Sunday September 21, 2025 @02:54PM (#45325576)
i suggest you show this thread to a neutral third party and ask them if your line of argument makes sense.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by uecker on Tuesday September 23, 2025 @01:22PM (#45350141)
Considering that basically nobody uses Zig, I think most neutral third-parties seem to agree.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by accelbred on Tuesday September 30, 2025 @12:53PM (#45427943)
I used Zig for my projects for a while, but moved back to C for similar reasons. C23, with gcc extensions, and using MISRA-like coding style where it makes sense, provides a similar experience to Zig but with seamless C interop. You dont have comptime, but my biggest lesson from my time in Zig is that I usually want to pass a vtable instead of monomophizing over input types.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @11:10PM (#45309942)
Zig detects memory leaks pretty well when you build it using -Doptimize=Debug.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Friday September 19, 2025 @10:55PM (#45309844)
checked array bounds is memory safety.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by lyu07282 on Saturday September 20, 2025 @02:38AM (#45311001)
Runtime bounds checking, but only in Debug/ReleaseSafe builds, besides there are many other types of memory safety issues left unaddressed.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by throwawaymaths on Saturday September 20, 2025 @02:22PM (#45315879)
> Runtime bounds checking

Compile time slice bounds checking is generally not a thing, since the length is not known until runtime. Its still safe.

> but only in Debug/ReleaseSafe builds

So, the default build modes?

Istg zig should just eliminate releasefast and releasesmall and force you to opt in on a function by function basis.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by esafak on Friday September 19, 2025 @08:59PM (#45308717)
Consider adding support for vector search and sketching (https://www.sketchingbigdata.org/).
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @11:08PM (#45309919)
I'll take a look. Thanks for the suggestion!
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by jasonjmcghee on Friday September 19, 2025 @09:02PM (#45308740)
I'm not really sure what it costs these days - i know certain projects not entirely free like they were a few years ago, but there's a pretty good "build your own redis" among other things.

It has little step-by-step tasks with automated tests. There are some other good ones like git and docker. It's pretty cool.

https://app.codecrafters.io/courses/redis/overview

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nine_k on Friday September 19, 2025 @09:14PM (#45308845)
It's easy to write a KV store, even a KV store with key expiration. But Redis is quite a bit more than that. Consider sharding and replication at least. Then lists, sets, zsets, bitfields, streams, geospatial indexes, hyperloglog / bloom filters, time series.

Something like LevelDB is relatively easy to write. Then you can build the rest of Redis on top of it.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by johnisgood on Saturday September 20, 2025 @06:03AM (#45311950)
> Then lists, sets, zsets, bitfields, streams, geospatial indexes, hyperloglog / bloom filters, time series.

I mean, I have my own C libraries for most of these!

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by dns_snek on Sunday September 21, 2025 @02:46AM (#45320612)
In Redis those operations are performed server-side, on a shared dataset, and concurrently by many clients.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @11:04PM (#45309901)
Sounds pretty interesting.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nitishr on Friday September 19, 2025 @09:24PM (#45308953)
Are you keeping it single threaded?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @10:19PM (#45309584)
No, I wasn’t able to get it working with async io using io_uring/kqueue.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by maleldil on Friday September 19, 2025 @09:59PM (#45309397)
From the README:

> Memory safety with RAII patterns

I'm curious to see how they achieve RAII in Zig, which doesn't have destructors. If they mean defer + deinit methods, that's not the same thing.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by justinhj on Friday September 19, 2025 @10:31PM (#45309688)
Zig is all about making things explicit. Destructors are hidden code. I presume there will be an application level tracking of lifetime.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by maleldil on Saturday September 20, 2025 @12:39PM (#45314886)
Yes, which is why Zig can't have RAII. Zig initialisation and destruction are fundamentally different to how RAII works in other languages. That's not a negative point; it's just how Zig is. But it's not RAII.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by cakealert on Saturday September 20, 2025 @01:12PM (#45315179)
It's explicit opt in RAII, you opt in by using a defer.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by lenkite on Saturday September 20, 2025 @01:45PM (#45315501)
RAII, which stands for Resource Acquisition Is Initialization, is a programming technique in which a resource's lifetime is tied to an object's lifespan. An explicit defer does not fit this paradigm.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by ioasuncvinvaer on Saturday September 20, 2025 @01:30PM (#45315349)
free is an explicit opt-in garbage collector.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by justinhj on Saturday September 20, 2025 @01:08PM (#45315151)
You are right. It seems the developer agrees and has changed the README
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by teo_zero on Saturday September 20, 2025 @01:40AM (#45310719)
> If they mean defer + deinit methods, that's not the same thing.

No? It's the first thing that came to my mind when I've read RAII.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by rokob on Saturday September 20, 2025 @09:27AM (#45313193)
You have to call defer after initialization so you can’t technically call it RAII. As long as you remember to call it then it is effectively the same. Personally defer makes it so very similar to be a difference without a distinction but the “is initialization” part can’t be true if you need to do a second step.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by BiraIgnacio on Friday September 19, 2025 @10:05PM (#45309463)
cool stuff, keep at it!
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @11:12PM (#45309953)
Thanks! There are so many things to do still, authentication, glob-style keys search, json parsing.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by znpy on Friday September 19, 2025 @10:13PM (#45309534)
OT: Reminds me of the late 2000s when python was having its boom and it was a lot of pythis and pythat
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by barddoo on Friday September 19, 2025 @11:09PM (#45309930)
I just made it to learn Zig
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by znpy on Saturday September 20, 2025 @05:45AM (#45311851)
Oh yeah absolutely, i wasn’t bashing you in any way! Well done!
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by reenorap on Saturday September 20, 2025 @12:11AM (#45310286)
This is an interesting project but a poorly chosen name because it can easily be considered trademark infringement for being confusingly-similar to "Redis", especially since it's a self-admitted clone. I would change it now before you are forced to change your name and you lose time confusing people and wasting time renaming everything.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by saghm on Saturday September 20, 2025 @12:35AM (#45310415)
I don't think it's particularly confusing. I wouldn't expect something official to have a name that changes the first letter. Would you honestly be confused about whether a search engine called Boogle, a laptop called a Yacbook, or a browser called Tirefox was an official product by Google, Apple, or Mozilla?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by thewisenerd on Saturday September 20, 2025 @01:32AM (#45310671)
i think “$proj - implements the redis protocol” are going to be as ubiquitous as the things which claim to be “S3 compatible”

idk if redis labs (the organization aka big bad) are going to patent the “protocol” to disallow clones (or they’d be going after valkey first)

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by jiehong on Saturday September 20, 2025 @06:56AM (#45312207)
I’d see it in swift and then being called "Swedish" for giggles.

Naming is famously difficult in this world!

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by k_bx on Saturday September 20, 2025 @12:50AM (#45310497)
Sorry if somewhat off-topic, but might help with getting more users. Redis is actually good enough and easy to install for most projects, but it has downside that it's "memory-only" (needs to fit in ram), and if you're in a tight container/vm – you'd better not rely on it solely.

So, there's another project – called kvrocks https://github.com/apache/kvrocks , which is for people which don't need in-memory perf of redis but would like to use its protocol and be still very performant. However, its devs never packaged a release in deb and other formats.

So, if you were to implement something similar ^ which will implement the protocol, have ability to grow on disk, and be available in distro repos (ideally) – would definitely hold a niche of many little projects which benefit from redis-like thing I've done.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by Szpadel on Saturday September 20, 2025 @02:47AM (#45311050)
Redis is for high frequency cache, disk latencies would slow it too much. Maybe putting something that would normally be evicted to disk could be valid compromise.

another major drawbacks of Redis is that It is single threaded and sync. you need expensive high frequency CPU if you need more performance. something that could benefit from multi core system and if you would want to use disk cache async is a must. single threading also affects scripts running on Redis side, when they execute whole Redis is waiting and is unable to fulfil other requests.

another place for improvement would be proper easier to use HA, and maybe also auto scaling.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by k_bx on Saturday September 20, 2025 @03:02AM (#45311124)
Most projects need to start with something and know that they will "be good". Many will hit RAM limitations earlier than kvrocks latencies or single-threaded CPU limitations (if they will – usually author doesn't need advice). Most would benefit from "moving fast" (in terms of development).

Redis-compatible protocol guarantees that you can think about the things you've mentioned later. If project is successful – you'll find money to pay for RAM and move to pure Redis. If it's CPU-bound – you'll find multi-threaded alternatives.

So this is a pretty nice niche IMO actually.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by Karrot_Kream on Saturday September 20, 2025 @04:30AM (#45311537)
Why not use a managed Redis or a large memory instance and run Redis yourself then? They aren't that much more expensive if you need to move fast.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by k_bx on Saturday September 20, 2025 @05:48AM (#45311870)
Yes, but why pay for it if `sudo apt install zedis` works? Many use-cases for redis growing out of memory would actually be ok if it stores old values on disk for you and keeps hot items in cache (and does compression).
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by progbits on Saturday September 20, 2025 @06:05AM (#45311956)
The Redis HA story is horrendous. I wonder if Sentinel is intentionally just crap enough to get your application locked in but then force you to pay them for hosted option.

It regularly gets itself into messed up state and even with graceful shutdown for node updates the official client libraries throw errors for up to a minute.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by jasonjmcghee on Saturday September 20, 2025 @01:37AM (#45310703)
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by lyu07282 on Saturday September 20, 2025 @02:03AM (#45310837)
That just makes it durable, the entire dataset still has to fit in memory.
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by ncruces on Saturday September 20, 2025 @06:02AM (#45311944)
Redka may be interesting to you: https://github.com/nalgeon/redka
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by badLiveware on Saturday September 20, 2025 @08:46AM (#45312922)
Redis compatible projects with larger-than-memory support do exists, e.g. https://microsoft.github.io/garnet/docs/welcome/features#tie...
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by k_bx on Monday September 22, 2025 @01:06AM (#45329263)
No apt repo, C#.. kinda worse than kvrocks in that sense
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by mrsmrtss on Monday September 22, 2025 @01:18AM (#45329323)
Why C# makes it worse?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by nine_k on Saturday September 20, 2025 @12:36PM (#45314866)
If you're in a tight VM and are running Redis inside it, as opposed to a separate VM / cluster, you need an embedded DB, not Redis.

You can use the ancient BerkeleyDB which is supported everywhere for last like 30 years. Or a more recent LevelDB. Or even SQLite which is plenty fast on simple queries.

You'll have to tolerate the high latency of safely writing tings to a block device, compared to RAM. If your load is mostly reads, it should be OK.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by era37 on Saturday September 20, 2025 @01:27AM (#45310652)
Looks like a cool project; does the project aim to fix anything existing about Redis or is this just a fun side project? Thanks
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by didip on Saturday September 20, 2025 @02:36AM (#45310990)
What about calling it Zigdisk and make it save to disk?
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by mawadev on Saturday September 20, 2025 @02:49AM (#45311056)
This is a very cool project. I wish it could do the same stuff as RedisJson at some point!
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by montyanderson on Saturday September 20, 2025 @08:24AM (#45312745)
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by gkorland on Saturday September 20, 2025 @02:37PM (#45316026)
Did you try to run redis-benchmark? (Compared to Redis)
Re:Show HN: Zedis – A Redis clone I'm writing in Zig by destroycom on Saturday September 20, 2025 @03:05PM (#45316303)
> Written in Zig for optimal performance and memory safety

Ironic to see this, as even a cursory glance over the code shows a lot of memory bugs, such as dangling pointers, data races, some potential bugs like double free, etc.

It is good that the OP is learning things, but I would caution against relying on LLMs and taking on a bigger project like this, before the basics are well understood.

Personally, this is one of the reasons I dislike the LLM hype, people are enabled to produce much more code, code that they aren't qualified to support or even understand.

While the project linked is clearly designated as strictly for "learning purposes", the applications we will get in the large will be of no better quality.

The difference being, before LLMs, those, who didn't have qualification, wouldn't even approach problems like this, now they can vibecode something that works on a lucky run, but is otherwise completely inadequate.

Re:Show HN: Zedis – A Redis clone I'm writing in Zig by glouwbug on Sunday September 21, 2025 @11:56AM (#45323851)
I think this is the most apt summary of LLMs I’ve seen to date