Live data from Hacker News

A quick look at the Redis source code

heychinaski.com

1–10 of 34 posts

Re: A quick look at the Redis source code

#4
Fun. This isn't really specific to Redis, but is a good introduction to the sort of thing that C programmers often get up to. You'll see this sort of function table in all sorts of C programs. Take a look at GNU stuff like make and you'll see the same format.

Congratulations on the exploring.

Re: A quick look at the Redis source code

#5
post #2

It's actually a quick tutorial describing how to add a new command to Redis, not an actual analysis of the source code as I expected.

Yeah, it's a pretty shallow introduction. I'd like to write more articles on the Redis code. The sorted set skiplist stuff is really interesting.

Re: A quick look at the Redis source code

#6
post #2

It's actually a quick tutorial describing how to add a new command to Redis, not an actual analysis of the source code as I expected.

You might be interested in one of these articles:

http://pauladamsmith.com/articles/redis-under-the-hood.html

http://blog.togo.io/how-to/adding-interval-sets-to-redis

They have both been discussed before though.

Re: A quick look at the Redis source code

#7
post #2

It's actually a quick tutorial describing how to add a new command to Redis, not an actual analysis of the source code as I expected.

Yeah, it's a pretty shallow introduction. I'd like to write more articles on the Redis code. The sorted set skiplist stuff is really interesting.

Write: How to write custom C commands ?

Re: A quick look at the Redis source code

#8
Redis is my favorite example of a very clean and beautiful example of C code, just the right amount of comments, good variable names. It is great work. You can tell Salvatore cares and has passion for what he does just by looking at his work.

https://github.com/antirez/redis/tree/unstable/src

Re: A quick look at the Redis source code

#10
I find it fascinating to compare H2 and Derby source code. First was written by single man, has more features, is more compact and faster. Second was 'designed by committee' and evolved over long period of time.

I would also post link to my project, which is sort of 'Redis in Java', but it would be probably spam.

Post reply on HN