Live data from Hacker News

Redis Loadable Modules System

antirez.com

1–10 of 62 posts

Re: Redis Loadable Modules System

#3
This looks interesting. I've only glanced at the docs, but it looks like this module system lets you define new commands but not necessarily new data structures (since you'd have to implement RDB/AOF serialization for those).

Are there plans for that? It's probably possible to do most of that with this module system but you'd have to serialize the data structure into a string and "type X" wouldn't return your custom data structure type.

Re: Redis Loadable Modules System

#4
There's been a lot of unusual features I've been hoping Redis will support but obviously given their edge-case nature it's unlikely that they'd ever be implemented.

This is great to see. Instead of cluttering up the core engine with junk people can mix in their own functionality.

Re: Redis Loadable Modules System

#6
post #3

This looks interesting. I've only glanced at the docs, but it looks like this module system lets you define new commands but not necessarily new data structures (since you'd have to implement RDB/AOF serialization for those). Are there plans for that? It's probably possible to do most of that with this module system but you'd have to serialize the data structure into a string and "type X" wouldn't return your custom…

Definitely plans to register new data types with serialize/deserialize callbacks! Thanks.

Re: Redis Loadable Modules System

#7
post #3

This looks interesting. I've only glanced at the docs, but it looks like this module system lets you define new commands but not necessarily new data structures (since you'd have to implement RDB/AOF serialization for those). Are there plans for that? It's probably possible to do most of that with this module system but you'd have to serialize the data structure into a string and "type X" wouldn't return your custom…

He mentioned in the keynote being able to do your own datastructures by raw access to the data and primitives like seeks and next/prev . Sounds like it's at least planned, if not roughed in.

Re: Redis Loadable Modules System

#8
I tried to read the article but I couldn't. It's all one big
 block. The word wrapping is wrong on input! Individual paragraphs are groups of individual lines and extra long lines that the browser wraps for you. So you end up with lines in the middle of paragraphs that only have one or two words.

Net result is it's very hard to read.

I tried Safari's reader mode, but that was even worse. Because all formatting comes from happenstance in the

 tag reader mode loses all formatting. The entire article (and code!) becomes one long block of text.

I'm continually amazed at people's attempts to reinvent text layout in the browser.

Post reply on HN