Hacker GitHub

← All repos

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

Mentions per year 165 mentions · busiest year 2018 (27)
20082026
  1. 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.…
  2. …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
  3. …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]
  4. …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
  5. 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
  6. …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
  7. …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
  8. …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]…
  9. It's the PC version of master/slave. See [0] for the original madness... [0] https://github.com/antirez/redis/issues/3185
  10. …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
  11. …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
  12. Try Redis: https://github.com/antirez/redis Or Lua: https://github.com/LuaDist/lua
  13. …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
  14. …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...
  15. …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
  16. Here are a few exceptions https://www.sqlite.org https://github.com/antirez/redis
  17. …https://github.com/torvalds/linux/search?q=goto https://github.com/FFmpeg/FFmpeg/search?q=goto https://github.com/antirez/redis/search?q=goto
  18. …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
  19. There are also lots of examples from Antirez himself in the source: https://github.com/antirez/redis/blob/unstable/src/modules/h...
  20. 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
  21. Direct link: https://github.com/antirez/redis/blob/unstable/src/modules/I...
    comment by ecesena · 2016-05-10 · in Redis modules
  22. …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…
  23. …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
  24. …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
  25. 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
  26. …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…
  27. …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
  28. 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?
  29. 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?
  30. …I'm currently integrating, refactoring and fixing the original code, in the context of this branch: https://github.com/antirez/redis/commits/geo So far the code was simplified and polished, fixed (it did not returned the right set of…
    comment by antirez · 2015-06-24 · in Redis Geo
  31. Follow along at home: https://github.com/antirez/redis/commits/geo
    comment by slowernet · 2015-06-24 · in Redis Geo
  32. …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
  33. 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
  34. …have a thousand engineers. [1] http://www.tgdaily.com/business-and-law-features/36436-tim-s... [2] https://github.com/antirez/redis/graphs/contributors
  35. …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
  36. 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…
  37. …(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' .
  38. Direct link: https://github.com/antirez/redis/ Prior discussion: https://news.ycombinator.com/item?id=6552680
  39. …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
  40. Then you'll love his code. Redis has some of the nicest C code I've ever seen: https://github.com/antirez/redis
  41. 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…
  42. This is awesome on so many different levels. Check out the implementation: https://github.com/antirez/redis/blob/unstable/src/hyperlogl...
  43. 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
  44. …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
  45. …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...
  46. …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
  47. …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
  48. …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
  49. 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 -…
  50. …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…