News for hackers. Stuff that matters.
Re:An update on Redis and Lua by ryanpetrich on Friday May 13, 2011 @02:11PM (#2545552)
> My solution was to convert null (multi) bulk types into false, and the other way around, false returned from Ruby is turned as a null bulk reply.

should read:

> My solution was to convert null (multi) bulk types into false, and the other way around, false returned from Lua is turned as a null bulk reply.

Re:An update on Redis and Lua by deweller on Friday May 13, 2011 @12:43PM (#2545218)
This is an interesting turn for Redis.

In my mind, this is the lightweight, NoSQL analog to stored procedures.

Re:An update on Redis and Lua by Nycto on Friday May 13, 2011 @01:23PM (#2545379)
I'm sure you simply meant to make this comparison based on the fact that both implementations execute scripted functions on the data store server. However, I think there is a very important distinction that warrants a clarification: Stored procedures are saved on the server and then referenced by name. Redis scripting requires that the code be transmitted in each request.

Antirez goes over this in his original post, here: http://antirez.com/post/redis-and-scripting.html

Re:An update on Redis and Lua by simonw on Friday May 13, 2011 @03:20PM (#2545820)
"Redis scripting requires that the code be transmitted in each request."

Only until antirez implements the EVALSHA command.

Re:An update on Redis and Lua by antirez on Friday May 13, 2011 @04:03PM (#2545973)
Implemented ;)
Re:An update on Redis and Lua by a-priori on Friday May 13, 2011 @03:22PM (#2545826)
Redis scripting requires that the code be transmitted in each request.

For now, yes, but antirez has said that he's considering adding an EVALSHA command or something that will execute an existing script by the hash of the source code.

Re:An update on Redis and Lua by andrewvc on Friday May 13, 2011 @12:43PM (#2545214)
That's cool, but not nuts about JSON. They should include at least one space-efficient format, like messagepack (which is 100% compatible with JSON after encoding / decoding). Of course, this opens the floodgates...

Also, is zlib available?

Re:An update on Redis and Lua by kainosnoema on Friday May 13, 2011 @10:13PM (#2546965)
In recent benchmarks, Node's JSON implementation is almost twice as fast as messagepack. I think I'd rather have the more universally used format anyway.
Re:An update on Redis and Lua by andrewvc on Friday May 13, 2011 @11:31PM (#2547080)
It's not about speed, but space efficiency, msgpack is significantly smaller. That's useful for a mostly in memory database. As far as speed that's negligible.
Re:An update on Redis and Lua by antirez on Saturday May 14, 2011 @05:17AM (#2547395)
Hello, if you care about size, the best way is to just use Redis Hashes, that internally store fields and values into a binary very compact representation.
Re:An update on Redis and Lua by justincormack on Friday May 13, 2011 @02:55PM (#2545702)
Zlib is not shipped with Lua. I am sure more stuff will get added though as time goes on.