2

LMDB -- First version of Redis written in Tcl

 1 year ago
source link: https://gist.github.com/antirez/6ca04dd191bdb82aad9fb241013e88a8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

First version of Redis written in Tcl · GitHub

LMDB -- First version of Redis written in Tcl

Author

This was the first version of Redis... We used it inside our startup, with Fabio Pitrola. I found it while tweeting about the fact that now Fabio, the first user of Redis ever together with me, runs an icecream shop in Barcelona (you should try it btw, http://gelateriasiciliana.com/). Tried my luck with gmail and there was this email from 2009!

Note how in a 300 line so of code trow-away there was already most of Redis main ideas:

  1. Fork() to persist, even if this was an higher level language.
  2. Data structures: this version implements list pop/push primitives.
  3. The protocol is the Redis v1 protocol, it's no longer the same nowadays, but the prefixed-length idea + human readable is there.
  4. Many names and/or comments in the code even resemble the names of modern Redis parts / functions.

So from the POV of programming creation process, it looks like that a short trow-away can already have hints about how to perform future developments, by extending each part that can be, in the original throw away, just a comment.

Email date is: 4 Feb 2009.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK