Live data from Hacker News

Tuple Spaces (or, Good Ideas Don’t Always Win)

software-carpentry.org

21–23 of 23 posts

Re: Tuple Spaces (or, Good Ideas Don’t Always Win)

#21
post #9

Has anyone successfully used this for anything significant? As I post this there's only a couple of people posting about how either they tried but it didn't work out well enough, or they just played with it in school without any code. It strikes me as having the same problems as RDF storage; precisely because the model is so general, there's nothing for optimizations to grab on to and optimize on. Your database has t…

Yeah, I've used Rinda for load balancing across small numbers of machines before. It's a couple of screens of ruby in total to get that working, which I was astonished by.

Re: Tuple Spaces (or, Good Ideas Don’t Always Win)

#23
post #5

I tried it in Ruby in ~2006, and found that many operations in Rinda were O(n) in the size of the tuple space :(

Interesting. Could a better-than-O(n) parallelisable tuple space be implemented with something like skip lists?

Tuplespace is all about lookups/publish/subscribe on filters on the tuples. For the vast majority of the time, filters are of the form of (, , ...) or (, , ...) . You don't need to use skip lists (or binary trees generally) for that, you can use nested hash tables on the prefix/suffix of the tuples. Then you get O(len(filters)) instead of O(log(size of tuple space)). Trust me when I say that using hashes of filters is a lot faster.

Also, see my higher-ranked post about why I stopped using tuple spaces.

Post reply on HN