News for hackers. Stuff that matters.
Re:Redis site now implements interactive examples with embed... by antirez on Monday January 03, 2011 @07:16AM (#2062903)
Thanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing.

I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.

Re:Redis site now implements interactive examples with embed... by true_religion on Monday January 03, 2011 @08:16AM (#2063028)
It's a bit more difficult with programming languages where you can thrash the server its hosted on with simple commands.

Redis on the otherhand is designed for exactly this kind of insane throughput.

On another note, I'm loving that you are putting the time complexity of the commands right on the page.

Re:Redis site now implements interactive examples with embed... by nestlequ1k on Monday January 03, 2011 @08:08AM (#2063009)
amazing! thanks for that. curious, how is this implemented on the server? seems like each command is posted to /session/ url.
Re:Redis site now implements interactive examples with embed... by pietern on Monday January 03, 2011 @08:24AM (#2063043)
All keys are namespaced to a unique session identifier, so parallel sessions are isolated. You can check out the code for the interactive stuff here: https://github.com/antirez/redis-io/tree/master/lib/interact...
Re:Redis site now implements interactive examples with embed... by jcromartie on Monday January 03, 2011 @11:14AM (#2063551)
This is really incredible. I am showing this to people and they don't quite believe it. They think it's some kind of simulator or JavaScript trick.
Re:Redis site now implements interactive examples with embed... by magicseth on Monday January 03, 2011 @01:53PM (#2064190)
I just ran "MGET key1" and it returned "FOOBAR". Has this happened to anyone else?
Re:Redis site now implements interactive examples with embed... by pietern on Monday January 03, 2011 @02:36PM (#2064378)
Sorry about that, just deployed a fix to make it less likely for session identifiers to collide. Shouldn't happen again.