Hacker News new | ask | show | jobs
by tlrobinson 5330 days ago
Really interesting stuff.

The naming of the types is slightly confusing. If I understand correctly, a "feed" is kind of like an unordered set (if you ignore the IDs) or a hash (using the ID as a key), while a "sorted feed" is like an array?

1 comments

I agree. I'm unhappy with the names -- I'm trying to avoid naming things the same as Redis.

A feed is in publish order (not a set). Edited items are brought to the top.

A sorted_feed lets you publish at whatever end/index you want. You can also move items to a different index. Sorted feeds give you reposition events as well.

If nothing else, I'll fix this with documentation for 1.0.

Got it. Unrelated question: how would you compare Thoonk to Storm? Thoonk's "jobs" seem vaguely similar to Storm streams.

Also, I threw together a little REPL that makes it little easier to play around with Thoonk.js: https://gist.github.com/1378241