I want to create a little Clojure library that creates cached
relational systems in the style of Ben Moseley's "Out of the Tar
Pit" (http://web.mac.com/ben_moseley/frp/paper-v1_01.pdf), which is
something that I think would serve me better than just nested maps for
something. I'm at the planning stage right now, and I'm pondering two
questions:

- Should a relation's data be internally represented by:
  - A set of vector tuples, plus a vector of the tuples' attribute
names
  - A set of array maps
  - A set of struct maps (which may be replaced by deftyped maps)
  - (Each have their pros and cons for performance and elegance.)
  - (I've read 
http://groups.google.com/group/clojure/browse_thread/thread/e0823e1caaff3eed
    which is may be related to this, but the relations' guts are meant
to be
    off-limits by the API, so it doesn't really apply.)
- I also want to be able to use these relational systems as both
  immutable data and mutable data. Should a mutable
  relational system be:
  - A single ref containing the entire relational
    system data structure
  - A modified relational system data structure
    containing refs containing single relations

What do you think?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to