antirez/redis
View on GitHub ↗ ★ 168 C
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.
165 mentions on Hacker News by 142 people: 33 stories, 132 comments · first 2009-09-03 · latest 2020-06-30
20082026
-
Not a prep course, but for example Redis has a very good source code overview here https://github.com/antirez/redis#redis-internals More remarkable is the fact that antirez updated the documentation in response to a post in Reddit.…
comment by saurabhjha · 2017-03-09 · in CPython internals: A ten-hour codewalk through the Python interpreter (2015) -
…productive communities, making politically motivated and technically useless pull requests (e.g. https://github.com/antirez/redis/issues/3185 ) or institute political rules called things like "codes of conduct" that allow them to exclude…
comment by wyager · 2017-01-26 · in Abusing Contributors is not OK -
…Found this from the Redis code[1] (I was curious, too). [0]: https://arxiv.org/abs/1612.02284 [1]: https://github.com/antirez/redis/blob/87538cb7fe19b567118944...
comment by octernion · 2016-12-22 · in Cardinality Estimation (2011) [pdf] -
…elephant, take a look at its ActiveJob [7] sub-framework. 1: https://github.com/redis/redis-rb 2: https://github.com/antirez/redis 3: https://github.com/facebook/react 4: https://facebook.github.io/react/contributing/codebase-overv... 5:…
comment by mhink · 2016-12-19 · in One Way to Improve Your Coding -
Yes, that is correct. The code checks the encoding at runtime ( https://github.com/antirez/redis/blob/8444b46d20ef9c8de3f7e2... ) and converts between the structures as needed (see calls to `zsetConvert`). The alternative (for large zsets)…
comment by catwell · 2016-12-19 · in Skip Lists Done Right -
…or whatever - there is a config setting for that (-max-ziplist-entries and -max-ziplist-value). [1] https://github.com/antirez/redis/commit/5a86ab47995586f0a0ef...
comment by gtrubetskoy · 2016-12-19 · in Skip Lists Done Right -
…a "ziplist". The implementation (especially the format description at the top) is worth a read: https://github.com/antirez/redis/blob/90a6f7fc98df849a9890ab... For those who are familiar with pre-2.6 Redis code, there used to be something…
comment by catwell · 2016-12-19 · in Skip Lists Done Right -
…It was a pleasant surprise to find that this functionality is built right into Rust's compiler. [1] https://github.com/antirez/redis/blob/unstable/src/modules/I... [2] https://doc.rust-lang.org/book/ffi.html [3]…
comment by brandur · 2016-11-17 · in Show HN: Redis-cell, an API rate limiter as a Redis module, written in Rust -
It's the PC version of master/slave. See [0] for the original madness... [0] https://github.com/antirez/redis/issues/3185
comment by omginternets · 2016-10-25 · in Baidu File System – A distributed file system for real-time applications -
…complaint: https://www.drupal.org/node/2275877 https://github.com/rust-lang/rust-buildbot/issues/2 https://github.com/antirez/redis/issues/3185 I just mentioned it because I notice a greater sensitivity about language in the npm community,…
comment by dictum · 2016-10-23 · in NPM v4.0.0 -
…spirals of idiocy such as [0] and [1]. [0] - https://news.ycombinator.com/item?id=7801646 [1] - https://github.com/antirez/redis/issues/3185
comment by ominous · 2016-10-17 · in Peter Thiel, YC, and hard decisions -
Try Redis: https://github.com/antirez/redis Or Lua: https://github.com/LuaDist/lua
comment by slewis · 2016-09-17 · in Ask HN: What are some examples of well written C/C++ codebases? -
…tps://github.com/kubernetes/kubernetes/issues/27430 https://github.com/ardanlabs/gotraining/issues/75 https://github.com/antirez/redis/issues/3185 https://github.com/syl20bnr/spacemacs/pull/3484 https://github.com/TryGhost/Ghost/issues/5889…
comment by waterphone · 2016-09-05 · in Inclusivity Is a Joke -
…will modify a records. Copy-on-write mechanism simply prevents it. Redis save snapshot code: https://github.com/antirez/redis/blob/unstable/src/rdb.c#L99...
comment by kostyash · 2016-08-17 · in Fork() without exec() is dangerous in large programs -
…Redis Cluster could be added as a separate system. [1] https://aphyr.com/posts/283-jepsen-redis [2] https://github.com/antirez/redis/issues/2672
comment by DivineTraube · 2016-08-15 · in NoSQL Databases: A Survey and Decision Guidance -
Here are a few exceptions https://www.sqlite.org https://github.com/antirez/redis
comment by ontouchstart · 2016-08-07 · in Gary Kildall and Collegial Entrepreneurship (1997) -
…https://github.com/torvalds/linux/search?q=goto https://github.com/FFmpeg/FFmpeg/search?q=goto https://github.com/antirez/redis/search?q=goto
comment by rossy · 2016-07-21 · in Windows File System Proxy – FUSE-Like Capability for Windows -
…although I don't use Redis as much anymore and I have not looked at its code for a long time. [1] https://github.com/antirez/redis/pull/1232
comment by catwell · 2016-05-24 · in Programmers are not different, they need simple UIs -
There are also lots of examples from Antirez himself in the source: https://github.com/antirez/redis/blob/unstable/src/modules/h...
comment by bndw · 2016-05-11 · in Creating a Redis Module in 15 Lines of Code -
The docs explain the module system ( https://github.com/antirez/redis/blob/unstable/src/modules/I... ) but it doesn't quiet explain what the system is for. I couldn't quite get that from reading the blog post or the doc page. Specifically:…
comment by educar · 2016-05-11 · in Redis Loadable Modules System -
Direct link: https://github.com/antirez/redis/blob/unstable/src/modules/I...
comment by ecesena · 2016-05-10 · in Redis modules -
…I've been personally impressed with. I hope you don't mind a non-Github repo in there.. C - REDIS @ https://github.com/antirez/redis - Postgresql @ http://git.postgresql.org/gitweb/?p=postgresql.git;a=tree;f=src;hb=HEAD Java - Spring…
comment by phaas · 2016-05-01 · in Ask HN: What are examples of GitHub repositories with high code quality? -
…down the best C I've ever seen. And it's not just the code that's beautiful - the tests are too. https://github.com/antirez/redis/blob/unstable/src/dict.c
comment by danielvf · 2016-01-31 · in Ask HN: What's the most elegant piece of code you've seen? -
…branch, or if the master branch is not the branch that points to the last commit you made. i.e. https://github.com/antirez/redis
comment by zatkin · 2015-11-22 · in Show HN: First Commit – find the first commit of any GitHub project -
https://github.com/antirez/redis/blob/unstable/redis.conf#L4... # Command renaming. # It is possible to change the name of dangerous commands in a shared # environment. # For instance the CONFIG command may be renamed into something # hard…
comment by nnx · 2015-11-10 · in A few things about Redis security -
…tps://news.ycombinator.com/item?id=9558196 Rwasa: https://news.ycombinator.com/item?id=9948749 Redis: https://github.com/antirez/redis (e.g. changing it in order to call the DB operations directly from same-process, without doing…
comment by faragon · 2015-08-06 · in “The Dream of Internet Freedom Is Dying” -
…hub.com/sepeth/python-skiplist/commit/00ae7f94246... Redis's skiplist is also using the same feature: https://github.com/antirez/redis/blob/unstable/src/server.h#...
comment by sepeth · 2015-08-02 · in Strange C Syntax -
Redis' src is very clean and easy to dive into. https://github.com/antirez/redis
comment by lastofus · 2015-07-17 · in Ask HN: Good C codebases to read? -
I find https://github.com/antirez/redis one of the best C codebase to read.
comment by miguel250 · 2015-07-16 · in Ask HN: Good C codebases to read? -
…string" object encoding is and what workloads it helps with? The closest thing I can find is https://github.com/antirez/redis/issues/543 , which seems pretty old.
comment by simon_weber · 2015-04-01 · in Redis 3.0.0 is out -
On https://github.com/antirez/redis/tree/3.0 branch, it shows "This branch is 1004 commits ahead, 1252 commits behind unstable".
comment by devy · 2015-04-01 · in Redis 3.0.0 is out -
…have a thousand engineers. [1] http://www.tgdaily.com/business-and-law-features/36436-tim-s... [2] https://github.com/antirez/redis/graphs/contributors
comment by nemothekid · 2015-03-16 · in Programming is terrible – Lessons learned from a life wasted (2013) [video] -
…from Matt Stancliff, I wonder what the rationale was. Edit - particularly galling given this graph https://github.com/antirez/redis/graphs/contributors
comment by phpnode · 2015-03-10 · in Redis Conference 2015 Recap -
Read the code yourself here: https://github.com/antirez/redis/blob/unstable/src/dict.c (It's a classic hashmap.) JSON in binary format? You mean BSON? Just use MongoDB at that point, or PostgreSQL with JSON support. Redis has tables to an…
comment by striking · 2015-02-19 · in Ask HN: What internal data structures does redis use to make it so fast? -
…(which has lot's of good information). Also learn some Tcl by reading the redis test suite here, ` https://github.com/antirez/redis/tree/unstable/tests' .
comment by YAYERKA · 2015-02-12 · in I'm thinking of going full code-hipster and learning Tcl -
Direct link: https://github.com/antirez/redis/ Prior discussion: https://news.ycombinator.com/item?id=6552680
comment by rattray · 2014-12-23 · in Salvatore Sanfilippo, the author of Redis: from Sicily with talent and passion -
…way, so there is already a feature work in progress in order to support the Stripe-alike use case: https://github.com/antirez/redis/issues/2087
comment by antirez · 2014-10-28 · in Game day exercises at Stripe -
Then you'll love his code. Redis has some of the nicest C code I've ever seen: https://github.com/antirez/redis
comment by temuze · 2014-10-28 · in Diskless replication: a few design notes -
I've heard lots of people sing praises for Redis source - https://github.com/antirez/redis . A cursory look into the source shows a very well documented code-base. It's one of the top items in my to-read-some-day list. Salvatore is an…
comment by pcx · 2014-04-17 · in Ask HN: What source code is worth studying? -
This is awesome on so many different levels. Check out the implementation: https://github.com/antirez/redis/blob/unstable/src/hyperlogl...
comment by dscrd · 2014-04-01 · in Redis new data structure: the HyperLogLog -
For more context pieter's original pull request is here: https://github.com/antirez/redis/pull/579
comment by aitskovi · 2013-10-29 · in Finally Redis collections are iterable -
…If we counted normally, then on a shrink we would end up skipping parts of the old table. Lines https://github.com/antirez/redis/blob/unstable/src/dict.c#L7... explain it perfectly, now I understand it. Looking at the code, the increment…
comment by Robin_Message · 2013-10-29 · in Finally Redis collections are iterable -
…log/2012/01/12/flake-a-decentralized-k-... [5] https://blog.twitter.com/2010/announcing-snowflake [6] https://github.com/antirez/redis/pull/295#issuecomment-46734...
comment by klapinat0r · 2013-10-28 · in Best Practices for Designing a Pragmatic RESTful API -
…of shared memory used by whitedb, it could be that its pages are locked and immune to swapping. [1] https://github.com/antirez/redis/issues/1177
comment by yid · 2013-10-25 · in WhiteDB – Lightweight NoSQL database written in C, operating in main memory -
…for C code dating from past, say 2000. Also, one thing that made a negative impression on me is https://github.com/antirez/redis/blob/unstable/src/adlist.c : /* Free the whole list. * * This function can't fail. */ void listRelease(list…
comment by Someone · 2013-10-15 · in A quick look at the Redis source code -
…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
comment by rdtsc · 2013-10-15 · in A quick look at the Redis source code -
Redis - https://github.com/antirez/redis Edit: GitHub actually has a good list of trending repositories that you can filter by language. Most C projects seem to be libraries, but you might be able to glean something interesting -…
comment by nleach · 2013-09-19 · in The Architecture of Open Source Applications -
…them in a concise manner that omits structure overhead. Source: the source code of Redis itself https://github.com/antirez/redis/blob/unstable/src/ziplist.c , Redis documentation: http://redis.io/topics/memory-optimization , and/or my…
comment by DrJosiah · 2013-09-01 · in Save Redis memory with large list compression