News for hackers. Stuff that matters.
Re:In-browser Redis by antirez on Monday February 09, 2015 @06:57AM (#9020714)
For me emscripten is today like the ZX Spectrum emulator for the C64 was when I was a child: I understand how it works, but this is not enough to stop the wow moment.
Re:In-browser Redis by fiatjaf on Monday February 09, 2015 @12:22PM (#9022326)
The best use of emscripten I've seen to this day is this compilation of the big complex piece of software that is GNUnet to the browser: https://github.com/amatus/gnunet-web

(Also, it is useful to bring anonymization to the masses)

Re:In-browser Redis by vinceyuan on Monday February 09, 2015 @08:28AM (#9021009)
It's cool. But why do we need to put redis in a browser (client side)? Just for fun?
Re:In-browser Redis by zimbatm on Monday February 09, 2015 @09:21AM (#9021224)
One application would be to embed redis with the online documentation. This would allow to not only show examples but make them executable as well. The user could play with them without having to install anything.

Most of these "try X" features need a user session, allocate a server-side component to that session and then manage recycling. It's much less expensive to stick a JS on a CDN, and also scales much easier horizontally.

Re:In-browser Redis by phpnode on Monday February 09, 2015 @01:05PM (#9022579)
Redis.io already does this fwiw
Re:In-browser Redis by al2o3cr on Monday February 09, 2015 @09:16AM (#9021200)
Simplest possible in-browser "Redis":

var Redis = {};

;)

Re:In-browser Redis by philsnow on Monday February 09, 2015 @10:47AM (#9021732)
So that implements what subset of http://redis.io/commands ?

s/;)/:trollface:/ ;)

Re:In-browser Redis by imslavko on Monday February 09, 2015 @11:53AM (#9022148)
Here is my implementation of an in-memory Redis based on JS objects that supports Lists, Strings and Hashes commands. This implementation is mostly used as an in-memory cache in the browser to sync state from the server in the Meteor framework:

https://github.com/meteor/miniredis

Re:In-browser Redis by fgribreau on Monday February 09, 2015 @08:02AM (#9020914)
Too bad it does not listen on a port (maybe using WebRTC), it would have been fun to connect it to Redsmin!
Re:In-browser Redis by alistairjcbrown on Monday February 09, 2015 @08:21AM (#9020985)
Does not support `flushdb` or `flushall` - I assume these had to be commented out?
Re:In-browser Redis by ende42 on Tuesday February 10, 2015 @04:21AM (#9026116)
Nice!

Using it as slave of a server side redis would be fun. :)