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 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 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:
(Also, it is useful to bring anonymization to the masses)
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.
var Redis = {};
;)
s/;)/:trollface:/ ;)
https://github.com/meteor/miniredis
Using it as slave of a server side redis would be fun. :)